summaryrefslogtreecommitdiffstats
path: root/gobject
Commit message (Collapse)AuthorAgeFilesLines
...
* reorder more nicely information presented in docstring about signals and ↵Gustavo J. A. M. Carneiro2006-01-111-11/+15
| | | | properties
* Split out PyGObject from PyGTK.Johan Dahlin2006-01-091-3/+7
|
* fix pygflags registration with module == NULLGustavo J. A. M. Carneiro2005-12-241-12/+15
|
* We always need to free interfaces since its a null terminated array.Johan Dahlin2005-11-151-1/+1
| | | | | * gobject/pygobject.c (pygobject_new_with_interfaces): We always need to free interfaces since its a null terminated array.
* Remove deprecation warningJohan Dahlin2005-11-131-13/+1
|
* plug leak; add glade test; fix warning messageGustavo J. A. M. Carneiro2005-11-092-5/+5
|
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Manish Singh2005-11-034-29/+54
| | | | | | | | | | | | 2005-11-03 Manish Singh <yosh@gimp.org> reviewed by: Johan Dahlin <jdahlin@async.com.br> * gobject/gobjectmodule.c: (pyg_integer_richcompare): * gobject/pygenum.c: (pyg_enum_richcompare): * gobject/pygflags.c: (pyg_flags_richcompare): * gobject/pygobject-private.h: Prepare for Python 2.5 richcompare changes, fixes #320455.
* Use GIL state instead of block/unblock. Fixes crasher found by Ole AndrePYGTK_2_8_2Johan Dahlin2005-10-091-2/+5
| | | | | | * gobject/pygiochannel.c: (pyg_iowatch_marshal): Use GIL state instead of block/unblock. Fixes crasher found by Ole Andre Valda Ravnås.
* Fix gcc 4.0 warnings.PYGTK_2_8_1Johan Dahlin2005-10-031-2/+2
| | | | | | | | | * gobject/pygobject.c: (PyGProps_length): * gtk/gdk.defs: * gtk/gdk.override: * gtk/gtk.defs: * gtk/gtk.override: Fix gcc 4.0 warnings.
* Check if the gobject is initialized, partly fixes #96658Johan Dahlin2005-10-031-1/+59
| | | | | | | | | | | | | * gobject/pygobject.c: (pygobject_get_property), (pygobject_set_property), (pygobject_freeze_notify), (pygobject_notify), (pygobject_thaw_notify), (pygobject_get_data), (pygobject_set_data), (pygobject_connect), (pygobject_connect_after), (pygobject_connect_object), (pygobject_connect_object_after), (pygobject_disconnect), (pygobject_handler_is_connected), (pygobject_handler_block), (pygobject_emit), (pygobject_stop_emission), (pygobject_chain_from_overridden): Check if the gobject is initialized, partly fixes #96658
* guint64 property fixGustavo J. A. M. Carneiro2005-10-021-9/+9
|
* fix segfaul on error return in gobject.newGustavo J. A. M. Carneiro2005-10-011-4/+4
|
* Undeprecate for now.Johan Dahlin2005-09-291-10/+12
| | | | | | * gobject/gobjectmodule.c: (pyg_type_name), (pyg_type_from_name), (pyg_type_parent), (pyg_type_is_a), (pyg_type_children), (pyg_type_interfaces): Undeprecate for now.
* Include the object and the name of the signal in TypeErrorsJohan Dahlin2005-09-222-7/+21
| | | | | | | | | * gobject/gobjectmodule.c: (pyg_type_from_name): * gobject/pygobject.c: (pygobject_connect), (pygobject_connect_after), (pygobject_connect_object), (pygobject_connect_object_after), (pygobject_emit), (pygobject_stop_emission): Include the object and the name of the signal in TypeErrors
* Add gobject.Warning Warning subclass and redirect all g_log messages forJohn Ehresman2005-09-161-0/+26
| | | | | | | | | | | | | | | | | | | 2005-09-16 John Ehresman <jpe@wingware.com> * gobjectmodule.c (initgobject): Add gobject.Warning Warning subclass and redirect all g_log messages for the "GLib", "Glib-GObject", and "GThread" domains to the python warning system * pangomodule.c (initpango): Add pango.Warning Warning subclass and redirect all g_log messages for the "Pango" domain to the python warning system * gtkmodule.c (initgtk): Move gtk Warning subclass from the gdk module to the gtk module and added redirections for g_log messages for the "Gdk" and "GdkPixbuf" domains to the python warning system * gtk/__init__.py: Set gdk.Warning = gtk.Warning for backward compatibility
* better error messages when registering propertiesGustavo J. A. M. Carneiro2005-09-131-0/+10
|
* Sort all attributes alphabetically, like python does. Set default value toJohan Dahlin2005-09-021-57/+60
| | | | | | | * gobject/pygparamspec.c (pyg_param_spec_getattr): Sort all attributes alphabetically, like python does. Set default value to None (pyg_param_spec_getattr): Add default_values fallback, for backwards compatibility.
* [Bug 315100] gobject.type_register if parameter is not a typeGustavo J. A. M. Carneiro2005-09-021-1/+1
|
* Also include interfaces, fixes #315038Johan Dahlin2005-09-021-2/+8
| | | | | * gobject/gobjectmodule.c: (pyg_signal_list_names): Also include interfaces, fixes #315038
* Remove old .msc files, which are outdated and unused.Johan Dahlin2005-09-021-92/+0
| | | | | | | | | * Makefile.am: * gobject/makefile.msc: * gtk/Makefile.am: * gtk/makefile.msc: * makefile.msc: Remove old .msc files, which are outdated and unused.
* Remove unneeded g_strdup.PYGTK_2_8_0John Ehresman2005-08-291-3/+2
| | | | | * gobject/pygobject.c (pygobjectmeta_register): Remove unneeded g_strdup.
* Refactor to allow us to list signals on interfaces.Johan Dahlin2005-08-261-18/+18
| | | | | | | * gobject/gobjectmodule.c (pyg_signal_list_ids): Refactor to allow us to list signals on interfaces. * tests/test_signal.py (TestList): Two new tests.
* some memory fixes in type registrationGustavo J. A. M. Carneiro2005-08-253-11/+19
|
* In the meta-class __init__ method, register a class as a gtype iffJohn Ehresman2005-08-241-15/+11
| | | | | | * gobject/pygobject.c: In the meta-class __init__ method, register a class as a gtype iff __gsignals__, __gproperties__, or __gtype_name__ is defined in the leaf class's tp_dict.
* Added sources so gobject module will compile, fixed enable/disable threadPYGTK_2_7_4John Ehresman2005-08-242-1/+2
| | | | | | | | | | * setup.py: Added sources so gobject module will compile, fixed enable/disable thread support, and changed default so thread support is enabled unless --disable-threading is specified * gobject/gobjectmodule.c, gobject/pygobject.c: Set PyGObject_MetaType.tp_base in module initialization to keep VC++ happy
* Update distutils for 2.7.x. Bump requirements. Fix a minor bug in ↵Johan Dahlin2005-08-241-1/+1
| | | | gobjectmodule.c
* pyg_flags_get_value () should accept longs as inputChristopher Aillon2005-08-121-1/+4
| | | | | | | 2005-08-12 Christopher Aillon <caillon@redhat.com> * gobject/pygtype.c: pyg_flags_get_value () should accept longs as input
* Use the generic setattr protocol instead of getting the module'sPYGTK_2_7_3Andy Wingo2005-08-091-3/+2
| | | | | | | | 2005-08-09 Andy Wingo <wingo@pobox.com> * gobject/pygobject.c (pygobject_new_with_interfaces): Use the generic setattr protocol instead of getting the module's dictionary and using setitem. Fixes bug #312999.
* Fixes bug #312337PYGTK_2_7_2Mark McLoughlin2005-08-021-2/+6
| | | | | | | | | | 2005-08-02 Mark McLoughlin <mark@skynet.ie> Fixes bug #312337 * gobject/gobjectmodule.c: (_wrap_pyg_type_register): Make the "already registered" warning a deprecation warning with a more detailed hint on what it means.
* gobject/pygobject-private.h Add a convenience functionManish Singh2005-08-015-32/+29
| | | | | | | | | | | | | | | 2005-08-01 Manish Singh <yosh@gimp.org> * gobject/pygobject-private.h * gobject/pygmaincontext.c: Add a convenience function (pyg_main_context_new) to create a PyGMainContext from a GMainContext. Takes care of refing the supplied GMainContext as well. * gobject/gobjectmodule.c (pyg_main_context_default) * gobject/pygmainloop.c (_wrap_g_main_loop_get_context) * gobject/pygsource.c (pyg_source_get_context): use the new convenience function here. This fixes bug #312259.
* Fix reference count of gtk.Window's from gobject.newGustavo J. A. M. Carneiro2005-07-313-5/+16
|
* don't deprecate gobject.type_register, just give a warning if trying to ↵Gustavo J. A. M. Carneiro2005-07-301-12/+12
| | | | register a class that is already registered
* Don't register PyObject unconditionally, fixes #303797 (Yevgen Muntyan)Johan Dahlin2005-07-301-3/+4
| | | | | * gobject/gobjectmodule.c (initgobject): Don't register PyObject unconditionally, fixes #303797 (Yevgen Muntyan)
* Fixes Bug 311309: subclassing gtk.Bin reports...Gustavo J. A. M. Carneiro2005-07-301-4/+1
|
* Bug 311226: Metaclass registration causes breakage with old constructorsGustavo J. A. M. Carneiro2005-07-221-0/+6
|
* We have atomic ref counting in glib now, remove block/unblocking aroundJohan Dahlin2005-07-171-6/+0
| | | | | | | | | | | | | | * gobject/pygobject.c: (pygobject_new_full), (pygobject_dealloc), (pygobject_clear): * gtk/gdk.override: * gtk/gtk-types.c: (_pygtk_style_helper_new), (pygtk_style_helper_dealloc), (pygtk_style_helper_setitem), (pygtk_tree_model_row_dealloc), (pygtk_tree_model_row_iter_dealloc): * gtk/gtk.override: * gtk/gtkwidget.override: We have atomic ref counting in glib now, remove block/unblocking around reference counting.
* Remove pre python 2.3.5 compatibility. Simplifies thread handling.Johan Dahlin2005-07-172-53/+10
| | | | | | | * gobject/pygobject.h: * gobject/gobjectmodule.c (pyg_gil_state_ensure_py23) (pyg_gil_state_release_py23): Remove pre python 2.3.5 compatibility. Simplifies thread handling.
* Allow enums to be specified in the constructor Return flags or enum objectJohan Dahlin2005-07-152-15/+39
| | | | | | | | | * gobject/gobjectmodule.c: (create_property): Allow enums to be specified in the constructor * gobject/pygparamspec.c: (pyg_param_spec_getattr): Return flags or enum object for pspec.default_value * tests/test_enum.py: Remove usage of assert statement, add default_value test, both for flags and enum
* make iochannel api use new PyGPollFD type instead of tuplesGustavo J. A. M. Carneiro2005-07-103-17/+20
|
* Raise an exception if a construct only property is set after constructionJohan Dahlin2005-07-102-30/+43
| | | | | | | | | * gobject/pygobject.c: (PyGProps_setattro), (pygobject_set_property): * tests/test_properties.py: Raise an exception if a construct only property is set after construction time. Refactor property setting code and add some more tests.
* gobject/pygobject-private.h gobject/gobjectmodule.c gobject/Makefile.amManish Singh2005-07-105-15/+913
| | | | | | | | | | | | | | | | | | * gobject/pygobject-private.h * gobject/gobjectmodule.c * gobject/Makefile.am * gobject/pygsource.c: GSource wrapper, allows for pure python GSource implementations, as well as objectifying Idle and Timeout sources. * tests/Makefile.am * tests/test_source.py: Add test for the above. * gobject/gobjectmodule.c: timeout_add should take an explicit unsigned value. Also wrap g_get_current_time and g_main_depth. * gobject/pygiochannel.c (py_io_channel_write_chars): fix thread unblock/block logic.
* Bug 161177: Allow creation of python classes from g_object_newGustavo J. A. M. Carneiro2005-07-094-14/+202
|
* correct PyGProps[Iter] sizesGustavo J. A. M. Carneiro2005-07-091-3/+3
|
* Add GObject support, patch mostly based on Iñaki and Gustavos work.Johan Dahlin2005-07-083-1/+360
| | | | | | | | | | | | | * gobject/gobjectmodule.c: (initgobject): * gobject/pygobject-private.h: * gobject/pygobject.c: (pyg_props_iter_dealloc), (pygobject_props_iter_next), (PyGProps_dealloc), (build_parameter_list), (PyGProps_getattro), (PyGProps_setattro), (pygobject_props_traverse), (pygobject_props_get_iter), (PyGProps_length), (pyg_props_descr_descr_get): * tests/Makefile.am: Add GObject support, patch mostly based on Iñaki and Gustavos work. Unittests added, fixes #81879
* Rename pyg_register_boxed_custom to pyg_register_gtype_custom. Add noteJohan Dahlin2005-07-074-32/+61
| | | | | | | | | | | | * gobject/gobjectmodule.c: (initgobject): * gobject/pygobject-private.h: * gobject/pygobject.h: * gobject/pygtype.c: (pyg_type_lookup), (pyg_register_gtype_custom), (pyg_value_from_pyobject), (pyg_value_as_pyobject): Rename pyg_register_boxed_custom to pyg_register_gtype_custom. Add note about private fields in exported API structure. Based on patch by Edward Hervey, fixes #309625
* Add GType.is_a and deprecate gobject.type_* Update tests and makeJohan Dahlin2005-07-052-7/+75
| | | | | | | | | | | | | * gobject/gobjectmodule.c: (pyg_type_name), (pyg_type_from_name), (pyg_type_parent), (pyg_type_is_a), (pyg_type_children), (pyg_type_interfaces), (get_type_name_for_class), (initgobject): * gobject/pygtype.c: (_wrap_g_type_is_a), (pyg_type_wrapper_init): * tests/test_enum.py: * tests/test_gtype.py: * tests/test_unknown.py: Add GType.is_a and deprecate gobject.type_* Update tests and make GType.is_a/gobject.type_is_a return a bool instead of int
* Add support for specifying name for a GObject subclass, usingJohan Dahlin2005-07-053-45/+79
| | | | | | | | | | | * gobject/gobjectmodule.c: (_wrap_pyg_type_register), (get_type_name_for_class), (pyg_type_register): * gobject/pygobject-private.h: * gobject/pygobject.c: (pygobjectmeta_register), (pygobjectmeta_init): * tests/test_gtype.py: Add support for specifying name for a GObject subclass, using __gtype_name__. Add a unittest. Fixes #169498
* 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-041-1/+2
| | | | | | | | * 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.