| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/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.
|
|
|
|
|
| |
* tests/common.py (importModule): Include original exception
string in the raised SystemExit.
|
|
|
|
| |
add gobject/__init__.py. Update macros and testsuite.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* tests/Makefile.am (tests):
* tests/test_gdk.py: Add test
* gtk/gdk.defs (pixmap_create_from_data)
(bitmap_create_from_data): use guchar* instead of gchar,
fixes #318874 (Bob Gibbs)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* gobject/gobjectmodule.c (pyg_signal_list_ids): Refactor to
allow us to list signals on interfaces.
* tests/test_signal.py (TestList): Two new tests.
|
|
|
|
|
|
|
|
|
|
|
| |
2005-08-24 Johan Dahlin <jdahlin@async.com.br>
* tests/test_conversion.py (Tests.testUIntArg): Add test for
Table.attach which takes uint arguments.
* codegen/argtypes.py (UIntArg.write_param):
One more take on fixing #300012, this time unsigned int conversion,
patch by Gustavo.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* tests/test_radiobutton.py (RadioToolButtonTest): Re-enable
* tests/test_dialog.py (MessageDialogTest.testSubclass): Add tests, for
#311226.
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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: (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: (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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-05-09 Mark McLoughlin <mark@skynet.ie>
Fix for bug #303573 - "exceptions raised in a child watch
handler are silently swallowed"
* gobject/gobjectmodule.c:
(child_watch_func),
(_pyg_spawn_async_callback): if PyObject_CallFunction()
returns NULL, print a traceback of the exception.
* tests/test_mainloop.py: add testcase.
* tests/Makefile.am: add test_mainloop.py
Reviewed by Johan Dahlin <johan@gnome.org>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* gtk/gtktreeview.override (_wrap_gtk_list_store_insert):
Regression, allow the second argument to be unspecified, fixes
#171027 (Ulrik Svensson)
* tests/test_liststore.py: Add 2 new tests
|