| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
| |
* 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-12 Christopher Aillon <caillon@redhat.com>
* gobject/pygtype.c:
pyg_flags_get_value () should accept longs as input
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.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.
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
* gobject/pygobject.c (pygobject_new_with_interfaces): Fix
typo in documentation string. Fixes #171910 (Tuure Laurinolli
and Gian Mario Tagliaretti)
|
|
|
|
|
|
|
| |
2005-06-09 Manish Singh <yosh@gimp.org>
* gobject/pygobject.h
* gtk/pygtk.h: Use G_STMT_START/END for init_ defines.
|
| |
|
| |
|
|
|
|
|
|
|
| |
2005-05-28 Manish Singh <yosh@gimp.org>
* gobject/pygiochannel.c (pyg_iowatch_marshal): Pass the GIOCondition
to PyObject_CallFunction.
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
| |
2005-05-25 Manish Singh <yosh@gimp.org>
* gobject/pygiochannel.c: Pass gsize to GIOChannel functions that
expect them.
|
|
|
|
| |
* Bug fixes
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
2005-05-17 Manish Singh <yosh@gimp.org>
* gobject/pygparamspec.c (pyg_param_spec_getattr): make it build
again (missing })
|
|
|
|
|
|
| |
* gobject/pygparamspec.c: (pygenum_from_pspec),
(pygflags_from_pspec): Improve GParamSpec wrapping, fixes
bug #170614
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|