summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add GType to gobject namespace Wrap a number of GType utility functionsJohan Dahlin2005-07-042-3/+158
| | | | | | | | | | | | | | | | | | * gobject/gobjectmodule.c: (initgobject): Add GType to gobject namespace * gobject/pygtype.c: (_wrap_g_type_wrapper__get_pytype), (_wrap_g_type_wrapper__get_name), (_wrap_g_type_wrapper__get_parent), (_wrap_g_type_wrapper__get_fundamental), (_wrap_g_type_wrapper__get_children), (_wrap_g_type_wrapper__get_interfaces), (_wrap_g_type_wrapper__get_depth), (_wrap_g_type_is_interface), (_wrap_g_type_is_classed), (_wrap_g_type_is_instantiatable), (_wrap_g_type_is_derivable), (_wrap_g_type_is_deep_derivable), (_wrap_g_type_is_abstract), (_wrap_g_type_is_value_abstract), (_wrap_g_type_is_value_type), (_wrap_g_type_has_value_table), (_wrap_g_type_from_name): Wrap a number of GType utility functions
* fix docstring typoJohan Dahlin2005-07-041-1/+1
|
* Use pyg_param_gvalue_from_pyobject in gobject.new, fixes unicharJohan Dahlin2005-07-042-48/+63
| | | | | | | | * gobject/gobjectmodule.c: (pyg_object_new): * tests/test_conversion.py: Use pyg_param_gvalue_from_pyobject in gobject.new, fixes unichar parameters specified from the constructor. Added unittests.
* unref the underlying GMainContext upon object destruction. Some minorPDT 2005 Manish Singh2005-07-021-33/+44
| | | | | | | Fri Jul 1 18:51:15 PDT 2005 Manish Singh <yosh@gimp.org> * gobject/pygmaincontext.c: unref the underlying GMainContext upon object destruction. Some minor cleanups as well.
* Extend to add some new fields, add a getter for GType.type, which pointsJohan Dahlin2005-07-012-2/+31
| | | | | | | | | * gobject/pygtype.c: Extend to add some new fields, add a getter for GType.type, which points to the python registered type of a PyGTypeWrapper. * gobject/gobjectmodule.c (initgobject): And register PyGTypeWrapper, a side effect is that dir(gtype) also works now.
* Try to register unknown enums and flags on the fly. Fixes #308536, patchJohan Dahlin2005-06-212-3/+6
| | | | | | | | | 2005-06-21 Johan Dahlin <jdahlin@async.com.br> * gobject/pygparamspec.c: (pygenum_from_pspec), (pygflags_from_pspec): Try to register unknown enums and flags on the fly. Fixes #308536, patch by Edward Hervey * gobject/pygflags.c: (pyg_flags_add): Make module optional.
* Bug 308097: Overriden realize gets called twiceGustavo J. A. M. Carneiro2005-06-201-8/+32
|
* Fix typo in documentation string. Fixes #171910 (Tuure Laurinolli and GianJohan Dahlin2005-06-201-1/+1
| | | | | | * gobject/pygobject.c (pygobject_new_with_interfaces): Fix typo in documentation string. Fixes #171910 (Tuure Laurinolli and Gian Mario Tagliaretti)
* file pygiargument.c was initially added on branch pygtk-introspection.Gustavo J. A. M. Carneiro2005-06-190-0/+0
|
* file pygifunction.c was initially added on branch pygtk-introspection.Gustavo J. A. M. Carneiro2005-06-190-0/+0
|
* gobject/pygobject.h Use G_STMT_START/END for init_ defines.Manish Singh2005-06-101-2/+2
| | | | | | | 2005-06-09 Manish Singh <yosh@gimp.org> * gobject/pygobject.h * gtk/pygtk.h: Use G_STMT_START/END for init_ defines.
* fix registration of already registered types through the gobject metaclassGustavo J. A. M. Carneiro2005-05-291-1/+8
|
* blahJohan Dahlin2005-05-281-1/+1
|
* Pass the GIOCondition to PyObject_CallFunction.Manish Singh2005-05-281-2/+3
| | | | | | | 2005-05-28 Manish Singh <yosh@gimp.org> * gobject/pygiochannel.c (pyg_iowatch_marshal): Pass the GIOCondition to PyObject_CallFunction.
* Sort quark names. Rename pyg_boxed_marshal_key to pygboxed_marshal_key.Johan Dahlin2005-05-283-15/+13
| | | | | | | | * gobject/gobjectmodule.c: (initgobject): * gobject/pygobject-private.h: * gobject/pygtype.c: (pyg_register_boxed_custom): Sort quark names. Rename pyg_boxed_marshal_key to pygboxed_marshal_key. Don't set the keys twice
* gquark initialization cleanupGustavo J. A. M. Carneiro2005-05-289-62/+41
|
* Pass gsize to GIOChannel functions that expect them.Manish Singh2005-05-251-4/+4
| | | | | | | 2005-05-25 Manish Singh <yosh@gimp.org> * gobject/pygiochannel.c: Pass gsize to GIOChannel functions that expect them.
* Bug fixesJohn Finlay2005-05-221-2/+2
| | | | * Bug fixes
* Bug 128765: GObject metaclassGustavo J. A. M. Carneiro2005-05-225-37/+130
|
* Bug 164665: g_markup_escape_text needs bindingGustavo J. A. M. Carneiro2005-05-221-0/+20
|
* Bug 139176: GIOChannel wrapperGustavo J. A. M. Carneiro2005-05-224-2/+828
|
* revert accidental commitGustavo J. A. M. Carneiro2005-05-221-39/+1
|
* Bug 165373: crash due to extra Py_XDECREF in gtk.TreeView.map_expanded_rowsGustavo J. A. M. Carneiro2005-05-221-1/+39
|
* make it build again (missing })Manish Singh2005-05-171-0/+1
| | | | | | | 2005-05-17 Manish Singh <yosh@gimp.org> * gobject/pygparamspec.c (pyg_param_spec_getattr): make it build again (missing })
* Improve GParamSpec wrapping, fixes bug #170614Johan Dahlin2005-05-171-99/+251
| | | | | | * gobject/pygparamspec.c: (pygenum_from_pspec), (pygflags_from_pspec): Improve GParamSpec wrapping, fixes bug #170614
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Benjamin Otte2005-05-171-5/+17
| | | | | | | | | | 2005-05-17 Benjamin Otte <in7y118@public.uni-hamburg.de> reviewed by: Johan Dahlin <jdahlin@async.com.br> * gobject/gobjectmodule.c: (pyg_register_class_init), (pyg_run_class_init): Allow multiple calls to pyg_register_class_init, fixes #304353
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Benjamin Otte2005-05-174-5/+45
| | | | | | | | | | | | | 2005-05-17 Benjamin Otte <in7y118@public.uni-hamburg.de> reviewed by: Johan Dahlin <jdahlin@async.com.br> * gobject/gobjectmodule.c: * gobject/pygobject-private.h: * gobject/pygobject.h: * gobject/pygtype.c: (pyg_closure_marshal), (pyg_closure_set_exception_handler): Adds exception handling support to closures, fixes #304357
* Complain if ret is NULL, Fixes #303524.pygtk-2-6-anchorPYGTK_2_6_2Johan Dahlin2005-05-092-2/+6
| | | | | | | | * gobject/pygenum.c (pyg_enum_new): Complain if ret is NULL, Fixes #303524. * gobject/pygflags.c (pyg_flags_new): Change exception format to be consistent with the one in enum
* Add some commentsJohan Dahlin2005-05-091-14/+20
|
* Allow None to be passed in to: set_group for RadioAction.set_group(),Johan Dahlin2005-05-091-15/+76
| | | | | | | | | * gtk/gtk.override: Allow None to be passed in to: set_group for RadioAction.set_group(), RadioToolButton.set_group() and RadioMenuItem.set_group(). * tests/test_radiobutton.py: Refactor and add unittests for RadioAction, RadioToolButton and RadioMenuItem.
* And the testJohan Dahlin2005-05-091-0/+53
|
* Fix for bug #303573 - "exceptions raised in a child watch handler areMark McLoughlin2005-05-092-2/+11
| | | | | | | | | | | | | | | | | | 2005-05-09 Mark McLoughlin <mark@skynet.ie> Fix for bug #303573 - "exceptions raised in a child watch handler are silently swallowed" * gobject/gobjectmodule.c: (child_watch_func), (_pyg_spawn_async_callback): if PyObject_CallFunction() returns NULL, print a traceback of the exception. * tests/test_mainloop.py: add testcase. * tests/Makefile.am: add test_mainloop.py Reviewed by Johan Dahlin <johan@gnome.org>
* Clean up unused importsJohan Dahlin2005-05-091-3/+0
|
* Bug 302622: Assignment to gtk.gdk.Event.window is buggyGustavo J. A. M. Carneiro2005-05-022-0/+26
|
* fix make checkGustavo J. A. M. Carneiro2005-04-121-11/+10
|
* Regression, allow the second argument to be unspecified, fixes #171027Johan Dahlin2005-03-201-0/+24
| | | | | | | | * gtk/gtktreeview.override (_wrap_gtk_list_store_insert): Regression, allow the second argument to be unspecified, fixes #171027 (Ulrik Svensson) * tests/test_liststore.py: Add 2 new tests
* New test.Johan Dahlin2005-03-166-6/+51
| | | | | | * tests/test_radiobutton.py (RadioButtonTest): New test. * tests: Renamed *.py to test_*.py
* In case the enum is not registered, set enum_class or flag_class to NonePYGTK_2_6_1Johan Dahlin2005-03-141-7/+18
| | | | | * gobject/pygparamspec.c (pyg_param_spec_getattr): In case the enum is not registered, set enum_class or flag_class to None
* Use G_CONST_RETURN with a gchar* return value.PYGTK_2_6_0Cedric Gustin2005-02-231-1/+1
| | | | | | | 2005-02-23 Cedric Gustin <cedric.gustin@swing.be> * gobject/pygtype.c (add_property_docs): Use G_CONST_RETURN with a gchar* return value.
* Move the install_template call for pygobject-2.0.pc.in to the right placePYGTK_2_5_4Cedric Gustin2005-02-231-2/+7
| | | | | | | | | | | | | | | | | 2005-02-23 Cedric Gustin <cedric.gustin@swing.be> * setup.py: Move the install_template call for pygobject-2.0.pc.in to the right place in the script. Also define PLATFORM_WIN32 on win32. Fixes bug #150616. * codegen/codegen.py: Do not write the 'pygtk class init' function for objects whose type is explicitly ignored (like GtkPlug and GtkSocket on win32). Otherwise, it generates glib-warnings related to calls to g_object_set_qdata with a NULL 'node'. * gobject/pygtype.c: Do not use g_string_append_printf with a NULL argument, as it crashes on win32. Fixes bug #166546. * gtk/gtk.override: Add GtkSocket__proxy_do_plug_added, GtkSocket__proxy_do_plug_removed and GtkPlug__proxy_do_embedded to the ignore-win32 list.
* don't pass a NULL value to PyThread_set_key_value() - causes an assertionMark McLoughlin2005-02-101-1/+2
| | | | | | | | 2005-02-10 Mark McLoughlin <mark@skynet.ie> * gobject/pygmainloop.c: (pyg_restore_current_main_loop): don't pass a NULL value to PyThread_set_key_value() - causes an assertion failure with python 2.4.
* Fix for bug #154779 - Python signal handlers don't get executed whileMark McLoughlin2005-02-093-2/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-09 Mark McLoughlin <mark@skynet.ie> Fix for bug #154779 - Python signal handlers don't get executed while you're sitting in the main loop. * gobject/pygmainloop.c: (pyg_save_current_main_loop), (pyg_restore_current_main_loop), (pyg_get_current_main_loop): functions for keeping track of the currently running main loop. A version using TLS and another using a global variable, depending on whether DISABLE_THREADING is defined (pyg_signal_watch_prepare), (pyg_signal_watch_check), (pyg_signal_watch_dispatch), (pyg_signal_watch_new): a GSource which runs the python signal handlers whenever the mainloop is interrupted by signal delivery. (pyg_main_loop_new), (pyg_main_loop_dealloc): add and remove the source. (_wrap_g_main_loop_run): push/pop the currently running main loop. * gobject/pygobject-private.h: add a pointer for the source to PyGMainLoop. * gobject/Makefile.am: add -DPLATFORM_WIN32 to cflags if building on Windows.
* [Bug 154372] New: - Calling an enumeration type causes an assertion failurePYGTK_2_5_3Gustavo J. A. M. Carneiro2005-01-222-12/+24
|
* Bug 164441: leak in gobject.type_register(); patch by Mark McLoughlinGustavo J. A. M. Carneiro2005-01-221-1/+4
|
* interface implementation fixesGustavo J. A. M. Carneiro2005-01-161-1/+1
|
* interface implementation fixesGustavo J. A. M. Carneiro2005-01-161-4/+8
|
* Bug 163612: segmentation fault on pygtk-demoGustavo J. A. M. Carneiro2005-01-102-20/+26
|
* Make the build of atk, pango and gtk conditional. Fixes bug #74144.PYGTK_2_5_2Johan Dahlin2005-01-102-2/+7
| | | | | | | | | | | | * .cvsignore: * Makefile.am: * configure.in: * gtk/Makefile.am: * pygtk-2.0.pc.in: * setup.py: * tests/common.py: * tests/testhelpermodule.c: Make the build of atk, pango and gtk conditional. Fixes bug #74144.
* Make testsuite work and do things the way they were supposed to be doneJohan Dahlin2005-01-104-25/+75
| | | | | | | | * tests/Makefile.am: * tests/common.py: * tests/runtests.py: * tests/test_thread.py: Make testsuite work and do things the way they were supposed to be done from the beginning.
* Bug 160452: pyg_value_from_pyobject() does not handle sequence -> ↵Gustavo J. A. M. Carneiro2005-01-091-0/+70
| | | | GValueArray conversion