summaryrefslogtreecommitdiffstats
path: root/gobject/gobjectmodule.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 353039 – Failure in signal emission during do_set_property invoked ↵Gustavo J. A. M. Carneiro2006-08-271-5/+11
| | | | from constructor
* type registration fixGustavo J. A. M. Carneiro2006-08-261-2/+74
|
* fix interface registrationGustavo J. A. M. Carneiro2006-08-171-31/+31
|
* Add infrastructure for lazy type registration, fixes #Johan Dahlin2006-07-131-3/+5
| | | | | | | | | | | | | * gobject/gobjectmodule.c: (pyg_type_from_name), (get_type_name_for_class): * gobject/pygobject-private.h: * gobject/pygobject.c: (pygobject_new_with_interfaces), (pygobject_lookup_class), (pygobject_emit): * gobject/pygobject.h: * gobject/pygtype.c: (_wrap_g_type_from_name), (pyg_type_from_object), (pyg_type_register_custom_callback), (pyg_type_get_custom), (_pyg_type_from_name): Add infrastructure for lazy type registration, fixes #
* interface implementation fixGustavo J. A. M. Carneiro2006-07-091-10/+10
|
* missing iinfo.interface_data, needed for interface implementationGustavo J. A. M. Carneiro2006-07-091-1/+4
|
* gobject.filename_from_utf8Gustavo J. A. M. Carneiro2006-06-241-2/+27
|
* Bindings for g_filename_display_basename and g_filename_display_name;Gustavo J. A. M. Carneiro2006-06-241-4/+42
| | | | Add support for G_TYPE_GSTRING, at least in signals.
* Add support for retrieving signal and propertie info from interface types.John Finlay2006-06-231-42/+75
| | | | | | * gobject/gobjectmodule.c (pyg_object_class_list_properties) (pyg_signal_list_ids, pyg_signal_lookup, pyg_signal_query): Add support for retrieving signal and propertie info from interface types.
* Fix two leaks in error cases, found by Coverity.Johan Dahlin2006-06-041-0/+2
| | | | | | * gobject/gobjectmodule.c (pyg_spawn_async) (pyg_signal_new): Fix two leaks in error cases, found by Coverity.
* gobject.new fix for 'subsubtype' caseGustavo J. A. M. Carneiro2006-05-281-3/+3
|
* Add new pyg_add_warning_redirection and pyg_disable_warning_redirections ↵Gustavo J. A. M. Carneiro2006-05-071-12/+63
| | | | APIs (bug #323786 again).
* gobject.Pid.closeGustavo J. A. M. Carneiro2006-05-011-1/+14
|
* Bug 340160 – g_spawn wrapper thinks GPid is an intGustavo J. A. M. Carneiro2006-05-011-1/+71
|
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Johannes Hölzl2006-04-291-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-29 Johannes Hölzl <johannes.hoelzl@gmx.de> reviewed by: Johan Dahlin <jdahlin@async.com.br> * examples/Makefile.am: * examples/option.py: * gobject/Makefile.am: * gobject/gobjectmodule.c: (init_gobject): * gobject/option.py: * gobject/pygobject-private.h: * gobject/pygoptioncontext.c: (pyg_option_context_init), (pyg_option_context_dealloc), (pyg_option_context_parse), (pyg_option_context_set_help_enabled), (pyg_option_context_get_help_enabled), (pyg_option_context_set_ignore_unknown_options), (pyg_option_context_get_ignore_unknown_options), (pyg_option_context_set_main_group), (pyg_option_context_get_main_group), (pyg_option_context_add_group), (pyg_option_context_compare), (pyg_option_context_new): * gobject/pygoptiongroup.c: (check_if_owned), (destroy_g_group), (pyg_option_group_init), (pyg_option_group_dealloc), (arg_func), (pyg_option_group_add_entries), (pyg_option_group_set_translation_domain), (pyg_option_group_compare), (pyg_option_group_transfer_group), (pyg_option_group_new): * tests/test_option.py: Add support for GOption, fixes #163645
* wrap on 80 linesJohan Dahlin2006-04-111-54/+107
|
* Move over almost all GType constants from C to Python.Johan Dahlin2006-04-111-24/+2
| | | | | | * gobject/gobjectmodule.c (init_gobject): * gobject/__init__.py: Move over almost all GType constants from C to Python.
* Move GObjectMeta from C to python-landGustavo J. A. M. Carneiro2006-04-111-9/+14
|
* Turn gobject into a package; move _gobject to gobject._gobject andJohan Dahlin2006-04-111-2/+2
| | | | add gobject/__init__.py. Update macros and testsuite.
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Andy Wingo2006-04-111-1/+1
| | | | | | | | | | | 2006-04-11 Andy Wingo <wingo@pobox.com> reviewed by: Johan Dahlin <jdahlin@async.com.br> * gobject/gobjectmodule.c (create_property): Parse unsigned int64 constraints in param spec declaration using the "K" ParseTuple format unit, not L -- allows the full range of the datatype to be parsed. K format unit added in python 2.3.
* Bug 334318 – gtk.AboutDialog crashes with 'authors' parameter as string ↵Gustavo J. A. M. Carneiro2006-04-011-3/+5
| | | | instead of list
* Don't call g_value_init since the other *_to_gvalue methods expect anChristopher Aillon2006-01-151-1/+0
| | | | | | | | 2006-01-15 Christopher Aillon <caillon@redhat.com> * gobject/gobjectmodule.c (pyg_strv_to_gvalue): Don't call g_value_init since the other *_to_gvalue methods expect an already inited GValue
* Warn if io callback returns None: almost always this is an errorGustavo J. A. M. Carneiro2006-01-141-0/+6
|
* Add add/remove_emission_hook and tests. Fixes #325977Johan Dahlin2006-01-131-1/+138
| | | | | | | | | | * gobject/gobjectmodule.c: (pyg_io_add_watch), (marshal_emission_hook), (pyg_add_emission_hook), (pyg_remove_emission_hook): * gobject/pygobject.c: * tests/test_signal.py: Add add/remove_emission_hook and tests. Fixes #325977
* signal accumulatorsGustavo J. A. M. Carneiro2006-01-111-3/+97
|
* Split out PyGObject from PyGTK.Johan Dahlin2006-01-091-3/+7
|
* Remove deprecation warningJohan Dahlin2005-11-131-13/+1
|
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Manish Singh2005-11-031-0/+23
| | | | | | | | | | | | 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.
* 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-221-1/+3
| | | | | | | | | * 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
|
* [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
* 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-251-6/+9
|
* Added sources so gobject module will compile, fixed enable/disable threadPYGTK_2_7_4John Ehresman2005-08-241-0/+1
| | | | | | | | | | * 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
* 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-011-11/+2
| | | | | | | | | | | | | | | 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-311-1/+2
|
* 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
|
* Remove pre python 2.3.5 compatibility. Simplifies thread handling.Johan Dahlin2005-07-171-46/+2
| | | | | | | * 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-151-3/+15
| | | | | | | | | * 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
* Raise an exception if a construct only property is set after constructionJohan Dahlin2005-07-101-1/+3
| | | | | | | | | * 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-101-14/+39
| | | | | | | | | | | | | | | | | | * 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-091-4/+168
|