summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes Bug 311309: subclassing gtk.Bin reports...Gustavo J. A. M. Carneiro2005-07-302-4/+13
|
* Clean up tests, we don't need a C binding to access tp_basicsize, clean upJohan Dahlin2005-07-252-115/+55
| | | | | | | | * tests/test_subtype.py: * tests/testhelpermodule.c: (test_type_get_type), (_wrap_get_unknown), (_wrap_test_g_object_new), (inittesthelper): Clean up tests, we don't need a C binding to access tp_basicsize, clean up the C tests, quite a bit aswell.
* Re-enablePYGTK_2_7_1Johan Dahlin2005-07-222-16/+24
| | | | | | | * tests/test_radiobutton.py (RadioToolButtonTest): Re-enable * tests/test_dialog.py (MessageDialogTest.testSubclass): Add tests, for #311226.
* 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-153-119/+184
| | | | | | | | | * 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
* Impl. Patch by Gustavo, fixes #155679PYGTK_2_7_0Johan Dahlin2005-07-101-2/+36
| | | | | | | | | * gtk/gtkwidget.override (_wrap_gtk_widget_set_set_scroll_adjustments_signal) (_wrap_gtk_widget_set_set_scroll_adjustments_signal): Impl. Patch by Gustavo, fixes #155679 * tests/test_signal.py (TestOldStyleOverride): Add unittests. Lazy Gustavo.
* 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-103-59/+96
| | | | | | | | | * 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-107-16/+981
| | | | | | | | | | | | | | | | | | * 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.
* Remove gtk_ prefix on a couple of (unwrapped) functionsJohan Dahlin2005-07-091-15/+13
| | | | | | | | | | | | | | | | * gtk/gtk.defs: Remove gtk_ prefix on a couple of (unwrapped) functions * gtk/gtk-types.defs: (IconViewDropPosition, PackDirection): Add. * gtk/gtkiconview.override: (_wrap_gtk_icon_view_enable_model_drag_dest) (_wrap_gtk_icon_view_enable_model_drag_source) (_wrap_gtk_icon_view_get_dest_item_at_pos) (_wrap_gtk_icon_view_get_drag_dest_item) (_wrap_gtk_icon_view_get_cursor) (_wrap_gtk_icon_view_get_visible_range) (_wrap_gtk_icon_view_get_item_at_pos): Impl.
* Bug 161177: Allow creation of python classes from g_object_newGustavo J. A. M. Carneiro2005-07-0910-25/+347
|
* correct PyGProps[Iter] sizesGustavo J. A. M. Carneiro2005-07-091-3/+3
|
* Merge new Gdk & Gtk API. pango.Renderer and functions/methods also added.Johan Dahlin2005-07-083-2/+5
| | | | | | | | | | | | | * configure.in: * gtk/Makefile.am: * gtk/gdk-types.defs: * gtk/gdk.defs: * gtk/gdk.override: * gtk/gtk.defs: * pango-types.defs: * pango.defs: Merge new Gdk & Gtk API. pango.Renderer and functions/methods also added. Bump required glib,gtk & pango versions.
* And unittest..Johan Dahlin2005-07-081-0/+54
|
* Add GObject support, patch mostly based on Iņaki and Gustavos work.Johan Dahlin2005-07-084-1/+361
| | | | | | | | | | | | | * 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-055-32/+102
| | | | | | | | | | | | | * 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-054-46/+87
| | | | | | | | | | | * 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-042-48/+63
| | | | | | | | * 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.
* unref the underlying GMainContext upon object destruction. Some minorPDT 2005 Manish Singh2005-07-021-33/+44
| | | | | | | 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.
* Extend to add some new fields, add a getter for GType.type, which pointsJohan Dahlin2005-07-012-2/+31
| | | | | | | | | * 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.
* Try to register unknown enums and flags on the fly. Fixes #308536, patchJohan Dahlin2005-06-212-3/+6
| | | | | | | | | 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.
* Bug 308097: Overriden realize gets called twiceGustavo J. A. M. Carneiro2005-06-201-8/+32
|
* Fix typo in documentation string. Fixes #171910 (Tuure Laurinolli and GianJohan Dahlin2005-06-201-1/+1
| | | | | | * gobject/pygobject.c (pygobject_new_with_interfaces): Fix typo in documentation string. Fixes #171910 (Tuure Laurinolli and Gian Mario Tagliaretti)
* file pygiargument.c was initially added on branch pygtk-introspection.Gustavo J. A. M. Carneiro2005-06-190-0/+0
|
* file pygifunction.c was initially added on branch pygtk-introspection.Gustavo J. A. M. Carneiro2005-06-190-0/+0
|
* gobject/pygobject.h Use G_STMT_START/END for init_ defines.Manish Singh2005-06-101-2/+2
| | | | | | | 2005-06-09 Manish Singh <yosh@gimp.org> * gobject/pygobject.h * gtk/pygtk.h: Use G_STMT_START/END for init_ defines.
* fix registration of already registered types through the gobject metaclassGustavo J. A. M. Carneiro2005-05-291-1/+8
|
* blahJohan Dahlin2005-05-281-1/+1
|
* Pass the GIOCondition to PyObject_CallFunction.Manish Singh2005-05-281-2/+3
| | | | | | | 2005-05-28 Manish Singh <yosh@gimp.org> * gobject/pygiochannel.c (pyg_iowatch_marshal): Pass the GIOCondition to PyObject_CallFunction.
* Sort quark names. Rename pyg_boxed_marshal_key to pygboxed_marshal_key.Johan Dahlin2005-05-283-15/+13
| | | | | | | | * 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
* gquark initialization cleanupGustavo J. A. M. Carneiro2005-05-289-62/+41
|
* Pass gsize to GIOChannel functions that expect them.Manish Singh2005-05-251-4/+4
| | | | | | | 2005-05-25 Manish Singh <yosh@gimp.org> * gobject/pygiochannel.c: Pass gsize to GIOChannel functions that expect them.
* Bug fixesJohn Finlay2005-05-221-2/+2
| | | | * Bug fixes
* Bug 128765: GObject metaclassGustavo J. A. M. Carneiro2005-05-225-37/+130
|
* Bug 164665: g_markup_escape_text needs bindingGustavo J. A. M. Carneiro2005-05-221-0/+20
|
* Bug 139176: GIOChannel wrapperGustavo J. A. M. Carneiro2005-05-224-2/+828
|
* revert accidental commitGustavo J. A. M. Carneiro2005-05-221-39/+1
|
* Bug 165373: crash due to extra Py_XDECREF in gtk.TreeView.map_expanded_rowsGustavo J. A. M. Carneiro2005-05-221-1/+39
|
* make it build again (missing })Manish Singh2005-05-171-0/+1
| | | | | | | 2005-05-17 Manish Singh <yosh@gimp.org> * gobject/pygparamspec.c (pyg_param_spec_getattr): make it build again (missing })
* Improve GParamSpec wrapping, fixes bug #170614Johan Dahlin2005-05-171-99/+251
| | | | | | * gobject/pygparamspec.c: (pygenum_from_pspec), (pygflags_from_pspec): Improve GParamSpec wrapping, fixes bug #170614
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Benjamin Otte2005-05-171-5/+17
| | | | | | | | | | 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
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Benjamin Otte2005-05-174-5/+45
| | | | | | | | | | | | | 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
* Complain if ret is NULL, Fixes #303524.pygtk-2-6-anchorPYGTK_2_6_2Johan Dahlin2005-05-092-2/+6
| | | | | | | | * gobject/pygenum.c (pyg_enum_new): Complain if ret is NULL, Fixes #303524. * gobject/pygflags.c (pyg_flags_new): Change exception format to be consistent with the one in enum
* Add some commentsJohan Dahlin2005-05-091-14/+20
|
* Allow None to be passed in to: set_group for RadioAction.set_group(),Johan Dahlin2005-05-091-15/+76
| | | | | | | | | * gtk/gtk.override: Allow None to be passed in to: set_group for RadioAction.set_group(), RadioToolButton.set_group() and RadioMenuItem.set_group(). * tests/test_radiobutton.py: Refactor and add unittests for RadioAction, RadioToolButton and RadioMenuItem.