| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* tests/test_radiobutton.py (RadioButtonTest): New test.
* tests: Renamed *.py to test_*.py
|
|
|
|
|
|
|
|
|
|
|
|
| |
* .cvsignore:
* Makefile.am:
* configure.in:
* gtk/Makefile.am:
* pygtk-2.0.pc.in:
* setup.py:
* tests/common.py:
* tests/testhelpermodule.c: Make the build of
atk, pango and gtk conditional. Fixes bug #74144.
|
|
|
|
|
|
|
|
| |
* tests/Makefile.am:
* tests/common.py:
* tests/runtests.py:
* tests/test_thread.py: Make testsuite work and do things
the way they were supposed to be done from the beginning.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Makefile.am: Add pygtk_postinstall.py
* docs/random/missing-symbols: Updated
* gtk/__init__.py: Deprecate gtk.idle_add and friends.
* gtk/gtk.defs: Merge in 2.6 api, for GtkLabel functions,
thanks to Gian Mario Tagliaretti, fixes bug #163296
* tests/test_thread.py: Don't use gtk.idle_add
|
| |
|
|
|
|
|
|
|
|
| |
* gtk/gtk.override (_wrap_gtk_dialog_add_buttons): Use
PyTuple_GetSlice and PyArg_ParseTuple here, so we can get the same
behavior as in add_button. Reported by Maciej Katafiasz, fixes #156707
* tests/test_dialog.py: Add test for it
|
| |
|
|
|
|
|
|
| |
This is make threading usable for both users of the threading
module and users that requires interaction with threads from
other extension modules.
|
| |
|
|
|
|
|
|
| |
* tests/testhelpermodule.c:
* tests/test_thread.py: Add thread stuff, that emits stuff from
another thread and does some enum magic.
|
|
|
|
|
| |
* tests/common.py: catch ImportError if glade is not found
and set glade to None
|
|
|
|
|
|
|
| |
* tests/testhelper.c: Small c module to help testing
* tests/test_subtype.py: tests for this, use testhelper here
aswell
|
|
|
|
|
|
|
| |
* codegen/codegen.py (FileOutput.resetline): Revert parts of
Gustavos changes, so the size of interfaces are correct.
* tests/test_subtype.py: tests for this.
|
|
|
|
|
| |
* tests/test_signal.py: Move some tests from gtype and rename from
signal.py
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gobject/pygflags.c (pyg_flags_from_gtype): Don't comment out the
fallback, it break the test. (Wow, the testsuite caught another bug!)
* tests/enum.py: Additional tests.
* gobject/pygenum.c (pyg_enum_repr): Don't use g_enum_get_value,
use enum_class->values[n].value_name instead. Also check if the
value is NULL or not. This makes gtk.icon_size_register work a
little bit better.
|
|
|
|
|
| |
* codegen/codegen.py (Wrapper.write_methods): Use methflags
argument for defines instead of discarding it
|
|
|
|
|
|
|
|
| |
* tests/enum.py (EnumTest.testOutofBounds): New test.
* gobject/pygflags.c (pyg_flags_from_gtype):
* gobject/pygenum.c (pyg_enum_from_gtype): Don't segfault on
unknown values.
|
|
|
|
|
| |
* tests/gtype.py (GTypeTest.checkType): Use
gobject.type_name,type_from_name for testing instead of GtkListStore.
|
| |
|
|
|
|
|
|
|
|
| |
* gobject/pygenum.c (pyg_enum_compare):
* gobject/pygflags.c (pyg_flags_compare): Reverse operator
* tests/enum.py (FlagsTest.testComparision)
(FlagsTest.testComparision): New tests
|
| |
|
|
|
|
|
|
|
| |
* gobject/pygtype.c (pyg_type_from_object): If we're on python
2.3, also check for PyBool_Type.
* tests/gtype.py (GTypeTest.testBoolType): New test
|
|
|
|
|
|
|
|
|
|
|
| |
* gobject/pygflags.c (pyg_flags_get_first_value_name)
(pyg_flags_get_first_value_nick): Add, so Lorenzo can introspect
flags properly too
(pyg_flags_get_value_names, pyg_flags_get_value_nicks): Make this
a little bit more useful. All values can still be fetch
through __flags_values__
* tests/enum.py: Improve and extend to test most enum/flags operations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tests/enum.py (EnumTest.testWindowGetState): Fix, a window is
really WITHDRAWN if it's not SHOWN and not ICONIFIED...
* tests/common.py: Add .. and ../gobject when distcheck isn't ran
* gobject/pygenum.c: Use a dict instead of a tuple for
__enum_values__, so we can handle negative enum values (eg: GDK_NOTHING)
* gobject/pyflags.c: Ditto for __flag_values__
* gobject/pygparamspec.c (pyg_param_spec_getattr): reference count fixing
|
|
|
|
|
|
|
|
|
|
|
| |
* gobject/Makefile.am:
* setup.py:
* makefile.msc: Update, why do I even bother to update 3 different
build systems?
* gobject/: Split out GParamSpec, GMainLoop, GMainContext and
GPointer to separate files. Also remove *.h files and go back to
the old scheme (everything in pygobject.h)
|
|
|
|
|
|
| |
* description.py: Remove, out of date since 0.6.x!
* tests/Makefile.am, tests/common.py: Make distcheck pass
|
|
|
|
|
|
| |
* tests/enum.py: add, forgot it in last commit
* gobject/: Move gobject source files in here.
|