| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
preparation for py3k support
|
|
|
|
| |
http://bugzilla.gnome.org/show_bug.cgi?id=607674
|
|
|
|
|
|
|
|
|
|
| |
At instance creation for boxed and pointers, at lookup for objects,
when the gtype has no wrapper yet, a wrapper may be imported from pygi.
The feature is turned on at configure time by --enable-pygi.
Because we couldn't create a circular build dependency, PyGI's import function and
API definition had to be copied in this tree.
|
|
|
|
| |
Solves bug 560591.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-29 Tobias Mueller <tobiasmue@gnome.org>
Update the address of the FSF, by replacing old bits of the address
with new ones.
Fixes bug 577134
* ltihooks.py:
* pygtk.py:
* COPYING:
* gobject/pygparamspec.h:
* gobject/pygpointer.c:
* gobject/ffi-marshaller.h:
* gobject/pygtype.c:
* gobject/__init__.py:
* gobject/pygpointer.h:
* gobject/pygtype.h:
* gobject/pygflags.c:
* gobject/pyginterface.c:
* gobject/pygflags.h:
* gobject/pygboxed.c:
* gobject/gobjectmodule.c:
* gobject/pygenum.c:
* gobject/pyginterface.h:
* gobject/pygboxed.h:
* gobject/pygobject.c:
* gobject/constants.py.in:
* gobject/pygenum.h:
* gobject/propertyhelper.py:
* gobject/pygparamspec.c:
* gobject/ffi-marshaller.c:
* glib/pygmainloop.c:
* glib/pygoptioncontext.h:
* glib/pygmainloop.h:
* glib/pyglib-private.h:
* glib/__init__.py:
* glib/pygoptiongroup.c:
* glib/pygspawn.c:
* glib/pygmaincontext.c:
* glib/pygoptiongroup.h:
* glib/pygspawn.h:
* glib/pygmaincontext.h:
* glib/option.py:
* glib/pygsource.c:
* glib/glibmodule.c:
* glib/pygiochannel.h:
* glib/pygsource.h:
* glib/pyglib.c:
* glib/pyglib.h:
* glib/pyglib-python-compat.h:
* glib/pygoptioncontext.c:
* gio/gfileinfo.override:
* gio/gappinfo.override:
* gio/__init__.py:
* gio/gfileattribute.override:
* gio/gvolume.override:
* gio/gio.override:
* gio/ginputstream.override:
* gio/goutputstream.override:
* gio/unix.override:
* gio/gfile.override:
* gio/gvolumemonitor.override:
* gio/gapplaunchcontext.override:
* gio/giomodule.c:
* gio/gfileenumerator.override:
* gio/pygio-utils.c:
* gio/unixmodule.c:
* gio/pygio-utils.h:
* gio/gicon.override:
svn path=/trunk/; revision=1038
|
|
|
|
| |
svn path=/trunk/; revision=1002
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-09-10 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 530935 – pygobject_set_properties doesnt release the GIL
* gobject/pygobject.c (pygobject_set_properties): Reuse
set_property_from_pspec() which release GIL for us. Also make
sure that g_object_thaw_notify() is called even after error.
svn path=/trunk/; revision=970
|
|
|
|
|
|
|
|
|
| |
* glib/pyglib.h: * gobject/pygobject.c: Fix memory problems
reported by valgrind due to invalid tp_basicsize in
PyGPropsDescr_Type. Closes #549945.
svn path=/trunk/; revision=956
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-11 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 547104 – improve type wrapper creation
* gobject/pygobject.c (pygobject_register_class): Use new
pygobject_inherit_slots() to propagate custom slots in normal
types too.
(pygobject_inherit_slots): New function, break out of
pygobject_new_with_interfaces() and rewrite a bit.
(pygobject_find_slot_for): Add new argument that can forbid
overriding non-NULL slots.
* gio/gicon.override (pygio_do_icon_richcompare): Remove, the code
is now directly in _wrap_g_icon_tp_richcompare().
(_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash)
(_wrap_g_themed_icon_tp_richcompare, _wrap_g_themed_icon_tp_hash):
Remove, duplicating code in this way is not needed anymore.
svn path=/trunk/; revision=940
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-10 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 547104 – improve runtime type wrapper creation
* gobject/pygobject.c (pygobject_new_with_interfaces): Use new
pygobject_find_slot_for() for `tp_richcompare', `tp_compare`,
`tp_hash', `tp_iter', `tp_repr', `tp_str' and `tp_print'.
(pygobject_find_slot_for): New static function.
svn path=/trunk/; revision=938
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-27 Johan Dahlin <johan@gnome.org>
* glib/pyglib-python-compat.h:
* gobject/gobjectmodule.c (pyg_object_new),
(pyg__install_metaclass):
* gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_init),
(pyg_register_boxed):
* gobject/pygenum.c (pyg_enum_reduce):
* gobject/pyginterface.c (pyg_interface_init),
(pyg_register_interface):
* gobject/pygobject.c (pygobject_get_inst_data),
(pygobject_register_class), (pygobject_new_with_interfaces),
(pygobject_dealloc), (pygobject_repr), (pygobject_emit),
(pygobject_chain_from_overridden), (pygobject_weak_ref_notify):
* gobject/pygparamspec.c (pygobject_paramspec_register_types):
* gobject/pygpointer.c (pyg_pointer_dealloc), (pyg_pointer_init),
(pyg_register_pointer):
* gobject/pygtype.c (pyg_type_from_object),
(pyg_value_array_from_pyobject), (pyg_value_from_pyobject),
(pyg_object_descr_doc_get):
Use the Py_TYPE macro everywhere.
svn path=/trunk/; revision=886
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-27 Johan Dahlin <johan@gnome.org>
* gobject/gobjectmodule.c (pyg_param_spec_from_object),
(add_properties), (pyg_signal_new), (pyg_signal_list_ids),
(pyg_signal_lookup), (pyg_signal_query):
* gobject/pygenum.c (pyg_enum_richcompare), (pyg_enum_new),
(pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_reduce),
(pygobject_enum_register_types):
* gobject/pygflags.c (pyg_flags_richcompare), (pyg_flags_new),
(pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and),
(pyg_flags_or), (pyg_flags_xor), (pygobject_flags_register_types):
* gobject/pygobject-private.h:
* gobject/pygobject.c (pygobject_disconnect_by_func),
(pygobject_handler_block_by_func),
(pygobject_handler_unblock_by_func), (pygobject_get_refcount):
* gobject/pygparamspec.c (pyg_param_spec_getattr):
* gobject/pygtype.c (_wrap_g_type_wrapper__get_depth),
(pyg_type_from_object), (pyg_enum_get_value),
(pyg_flags_get_value), (pyg_value_from_pyobject),
(pyg_value_as_pyobject):
Use _PyLong macros.
svn path=/trunk/; revision=884
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-27 Johan Dahlin <johan@gnome.org>
* gobject/pygboxed.c (pygobject_boxed_register_types):
* gobject/pygenum.c (pygobject_enum_register_types):
* gobject/pygflags.c (pygobject_flags_register_types):
* gobject/pygobject.c (pygobject_object_register_types):
* gobject/pygparamspec.c (pygobject_paramspec_register_types):
* gobject/pygpointer.c (pygobject_pointer_register_types):
* gobject/pygtype.c (pygobject_type_register_types):
Use PYGLIB_DEFINE_TYPE macro and move struct field initialization
to the registration methods.
svn path=/trunk/; revision=883
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-27 Johan Dahlin <johan@gnome.org>
* glib/pyglib-python-compat.h:
Add _PyUnicode_Type macro
* gobject/gobjectmodule.c (pyg_type_name), (pyg_type_from_name),
(_pyg_signal_accumulator), (add_signals), (add_properties),
(get_type_name_for_class), (pyg_signal_list_names),
(pyg_signal_name), (pyg_signal_query), (pyg_object_new),
(pyg_add_emission_hook), (pyg_remove_emission_hook):
* gobject/pygboxed.c (pyg_boxed_repr):
* gobject/pygenum.c (pyg_enum_repr), (pyg_enum_add),
(pyg_enum_get_value_name), (pyg_enum_get_value_nick):
* gobject/pygflags.c (pyg_flags_repr), (pyg_flags_add),
(pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick),
(pyg_flags_get_value_names), (pyg_flags_get_value_nicks):
* gobject/pygobject.c (build_parameter_list), (PyGProps_getattro),
(PyGProps_setattro), (pygobject_register_class), (pygobject_repr),
(pygobject_init), (pygobject_get_properties),
(pygobject_set_properties), (pygobject_connect),
(pygobject_connect_after), (pygobject_connect_object),
(pygobject_connect_object_after), (pygobject_emit),
(pygobject_stop_emission), (pygobject_disconnect_by_func),
(pygobject_handler_block_by_func),
(pygobject_handler_unblock_by_func),
(pygobject_object_register_types):
* gobject/pygparamspec.c (pyg_param_spec_repr),
(pyg_param_spec_getattr):
* gobject/pygpointer.c (pyg_pointer_repr):
* gobject/pygtype.c (pyg_type_wrapper_repr),
(_wrap_g_type_wrapper__get_name), (pyg_type_from_object),
(pyg_enum_get_value), (pyg_flags_get_value),
(pyg_value_from_pyobject), (pyg_value_as_pyobject),
(object_doc_descr_get), (_pyg_strv_from_gvalue),
(_pyg_strv_to_gvalue):
Use _PyUnicode_* macros in the gobject module
svn path=/trunk/; revision=882
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-27 Johan Dahlin <johan@gnome.org>
* gobject/Makefile.am:
* gobject/gobjectmodule.c (pygobject_register_api),
(pygobject_register_constants), (pygobject_register_features),
(pygobject_register_version_tuples), (pygobject_register_warnings),
(init_gobject):
* gobject/pygobject-private.h:
* gobject/pygobject.c (pyobject_copy), (pyobject_free),
(pygobject_object_register_types):
* gobject/pygtype.c (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue),
(pygobject_type_register_types):
* gobject/pygtype.h:
Move off a bit more to separate functions, cleaning up the init_glib
a bit more.
svn path=/trunk/; revision=879
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-27 Johan Dahlin <johan@gnome.org>
* gobject/Makefile.am:
* gobject/gobjectmodule.c (init_gobject):
* gobject/pygobject-private.h:
* gobject/pygobject.c:
* gobject/pygparamspec.c (pygobject_paramspec_register_types):
* gobject/pygparamspec.h:
* gobject/pygtype.c:
Move paramspec registration to a separate file, add a header
for the internal API.
svn path=/trunk/; revision=878
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-26 Johan Dahlin <johan@gnome.org>
reviewed by: <delete if not using a buddy>
* glib/pyglib-python-compat.h:
* glib/pyglib.h:
Make a few macros public
* gobject/Makefile.am:
* gobject/gobjectmodule.c (init_gobject):
* gobject/pyginterface.c (pyg_interface_init),
(pyg_interface_free), (pyg_register_interface),
(pyg_register_interface_info), (pyg_lookup_interface_info),
(pygobject_interface_register_types):
* gobject/pyginterface.h:
* gobject/pygobject-private.h:
* gobject/pygobject.c:
Move GInterface wrapper into its own file
svn path=/trunk/; revision=875
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-20 Johan Dahlin <johan@gnome.org>
* glib/Makefile.am:
* glib/glibmodule.c (pyglib_main_context_default), (init_glib):
* glib/pyglib.c (pyglib_init), (pyglib_threads_enabled),
(pyglib_main_context_new):
* glib/pyglib.h:
* glib/pygmaincontext.c (_wrap_g_main_context_iteration),
(pyglib_maincontext_register_types):
* glib/pygmaincontext.h:
* glib/pygmainloop.c (pyg_signal_watch_prepare),
(pyg_signal_watch_check), (pyg_main_loop_new),
(_wrap_g_main_loop_get_context), (_wrap_g_main_loop_run),
(pyglib_mainloop_register_types):
* glib/pygmainloop.h:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/gobjectmodule.c (pyg_destroy_notify), (pyobject_free),
(pyg_object_set_property), (pyg_object_get_property),
(_pyg_signal_accumulator), (pygobject__g_instance_init),
(pyg_handler_marshal), (pygobject_gil_state_ensure),
(pygobject_gil_state_release), (marshal_emission_hook),
(_log_func), (init_gobject):
* gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_new):
* gobject/pygenum.c (pyg_enum_add):
* gobject/pygflags.c (pyg_flags_add):
* gobject/pygiochannel.c (pyg_iowatch_marshal):
* gobject/pygmaincontext.c:
* gobject/pygmainloop.c:
* gobject/pygobject-private.h:
* gobject/pygobject.c (pygobject_data_free), (pyg_toggle_notify),
(pygobject_new_with_interfaces), (pygobject_weak_ref_notify):
* gobject/pygobject.h:
* gobject/pygoptiongroup.c (destroy_g_group), (arg_func):
* gobject/pygpointer.c (pyg_pointer_new):
* gobject/pygsource.c (pyg_source_get_context),
(pyg_source_prepare), (pyg_source_check), (pyg_source_dispatch),
(pyg_source_finalize):
* gobject/pygtype.c (pyg_closure_invalidate),
(pyg_closure_marshal), (pyg_signal_class_closure_marshal):
* tests/common.py:
Move maincontext and mainloop over to glib.
Update the threadstate api to use the variant in glib.
svn path=/trunk/; revision=843
|
|
|
|
|
|
|
|
|
|
| |
2008-06-09 Paul Pogonyshev <pogonyshev@gmx.net>
* gobject/pygobject.c (pygobject_copy, pygobject_deepcopy): New
functions, unconditionally raise TypeError.
(pygobject_methods): Hook them up. (bug #482370)
svn path=/trunk/; revision=787
|
|
|
|
|
|
| |
results
svn path=/trunk/; revision=694
|
|
|
|
| |
svn path=/trunk/; revision=684
|
|
|
|
| |
svn path=/trunk/; revision=683
|
|
|
|
|
|
|
|
|
|
|
| |
2007-07-04 Murray Cumming <murrayc@murrayc.com>
* gobject/pygobject.c: (pygobject_switch_to_toggle_ref):
* gobject/pygobject.h: Rename the private struct field to
private_flags, because private is a C++ keyword, so this broke
builds of some C++ applications, such as Glom.
svn path=/trunk/; revision=679
|
|
|
|
|
|
| |
subclassing
svn path=/trunk/; revision=677
|
|
|
|
| |
svn path=/trunk/; revision=658
|
|
|
|
| |
svn path=/trunk/; revision=646
|
|
|
|
| |
svn path=/trunk/; revision=642
|
|
|
|
| |
svn path=/trunk/; revision=640
|
|
|
|
|
|
|
|
|
| |
* gobject/pygobject.c: (set_property_from_pspec):
Release the GIL when calling g_object_set_property, since setting a
property might trigger some code that might come back in python land.
Fixes #395048
svn path=/trunk/; revision=638
|
|
|
|
|
| |
* gobject/pygobject.c (pygobject_register_class): set __module__ on
gobject derived types, fixes #376099
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 #
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gobject/pygtype.c (gclosure_from_pyfunc):
* gobject/pygobject.c (pygobject_disconnect_by_func)
(pygobject_handler_block_by_func)
(pygobject_handler_unblock_by_func):
* tests/test_signal.py (TestEmissionHook._callback):
Fix #154845, add tests and a private method.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* gobject/pygobject.c (pygobject_new_with_interfaces): We always
need to free interfaces since its a null terminated array.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gobject/pygobject.c: (PyGProps_length):
* gtk/gdk.defs:
* gtk/gdk.override:
* gtk/gtk.defs:
* gtk/gtk.override:
Fix gcc 4.0 warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* gobject/pygobject.c (pygobjectmeta_register): Remove unneeded
g_strdup.
|