| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
from constructor
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 #
|
| |
|
| |
|
| |
|
|
|
|
| |
Add support for G_TYPE_GSTRING, at least in signals.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* gobject/gobjectmodule.c (pyg_spawn_async)
(pyg_signal_new): Fix two leaks in error cases, found by
Coverity.
|
| |
|
|
|
|
| |
APIs (bug #323786 again).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
* gobject/gobjectmodule.c (init_gobject):
* gobject/__init__.py:
Move over almost all GType constants from C to Python.
|
| |
|
|
|
|
| |
add gobject/__init__.py. Update macros and testsuite.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
instead of list
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
* gobject/gobjectmodule.c: (pyg_signal_list_names):
Also include interfaces, fixes #315038
|
|
|
|
|
|
|
| |
* gobject/gobjectmodule.c (pyg_signal_list_ids): Refactor to
allow us to list signals on interfaces.
* tests/test_signal.py (TestList): Two new tests.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
gobjectmodule.c
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
register a class that is already registered
|
|
|
|
|
| |
* gobject/gobjectmodule.c (initgobject): Don't register PyObject
unconditionally, fixes #303797 (Yevgen Muntyan)
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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.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.
|
| |
|