summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 160595: pyg_value_from_pyobject() sometimes sets a Python exception, ↵Gustavo J. A. M. Carneiro2005-01-091-2/+6
| | | | sometimes not
* gobject.child_add_watch and gobject.spawn_asyncGustavo J. A. M. Carneiro2005-01-093-1/+267
|
* misc API additions, threadingGustavo J. A. M. Carneiro2005-01-093-28/+22
|
* #154974: Interface implementation supportGustavo J. A. M. Carneiro2005-01-092-0/+43
|
* Add test script for bug #162874.Adam Hooper2005-01-091-0/+127
|
* Add pygtk_postinstall.py Updated Deprecate gtk.idle_add and friends. MergeJohan Dahlin2005-01-081-2/+2
| | | | | | | | | * 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
* [Bug 145314] Overriding GTK+ virtual methodsGustavo J. A. M. Carneiro2005-01-082-1/+43
|
* Reviewed by: Johan Dahlin <johan@gnome.org>PYGTK_2_5_1Johan Dahlin2004-12-231-5/+34
| | | | | | | | | | | | | | | | Fixes #150616 * dsextras.py: Added InstallData class. Changed template options to ${prefix}/include|lib|bin|share. Added get_m4_define function to parse pygtk version strings in configure.in. * setup.py: Added pygtk_postinstall bdist_wininst option. distutils now uses InstallData as install_data class. pygtk-2.0.pc and pygtk-codegen-2.0 are installed as data instead of lib/extensions. This fixes a bdist_wininst installer on win32. * pygtk_postinstall.py: Initial release.
* Change PY_HEXVERSION to PY_VERSION_HEXJohn Ehresman2004-12-101-1/+1
| | | | | | 2004-12-10 John Ehresman <jpe@wingide.com> * gobject/pygobject.h: Change PY_HEXVERSION to PY_VERSION_HEX
* 2.5.0PYGTK_2_5_0Johan Dahlin2004-11-291-1/+1
|
* Unbreak buildJohan Dahlin2004-11-271-1/+3
|
* Make sure type is a type and sinkfunc isn't NULL.Johan Dahlin2004-11-231-1/+4
| | | | | * gobject/pygobject.c (pygobject_register_sinkfunc): Make sure type is a type and sinkfunc isn't NULL.
* Print long int value if enum string not found. Fixes #158417. (modifedJohn Finlay2004-11-161-2/+6
| | | | | * gobject/pygflags.c (pyg_flags_repr): Print long int value if enum string not found. Fixes #158417. (modifed patch from Tim Evans)
* Add signal introspection functionsJohn Finlay2004-11-121-3/+190
| | | | | | * gobject/gobjectmodule.c (pyg_signal_list_ids) (pyg_signal_lookup, pyg_signal_name, pyg_signal_query): Add signal introspection functions
* gobject/gobjectmodule.c (_pyg_strv_from_gvalue) Avoid segfault when argvJohn Finlay2004-11-081-2/+5
| | | | | * gobject/gobjectmodule.c (_pyg_strv_from_gvalue) Avoid segfault when argv is NULL.
* updated - pygtk is working fine with msvc (but requiresHans Breuer2004-11-061-7/+17
| | | | | | | | 2004-11-06 Hans Breuer <hans@breuer.org> * config.h.win32 makefile.msc gobject/makefile.msc gtk/makefile.msc : updated - pygtk is working fine with msvc (but requires -DDISABLE_THREADING), Thanks!
* Use PyTuple_GetSlice and PyArg_ParseTuple here, so we can get the samepygtk-2-4-anchorPYGTK_2_4_1Johan Dahlin2004-11-042-1/+17
| | | | | | | | * 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
* Add tests for dynamic/unknown objects and interfacesJohan Dahlin2004-11-048-115/+247
|
* Bug 155304: pygobject.h cannot be included in C++ programsGustavo J. A. M. Carneiro2004-10-131-2/+6
|
* Allow gtk_main to be invoked from a thread created by the threading modulePYGTK_2_4_0John Ehresman2004-09-291-1/+3
| | | | | | * gobject/gobjectmodule.c (pyg_enable_threads): Allow gtk_main to be invoked from a thread created by the threading module by requiring the GIL be held when pyg_enable_threads is invoked.
* Apply slighly modified fix from bug 149845PYGTK_2_3_97Johan Dahlin2004-09-285-51/+43
| | | | | | This is make threading usable for both users of the threading module and users that requires interaction with threads from other extension modules.
* Forgot to commit this yesterdayJohan Dahlin2004-09-281-0/+24
|
* Add thread stuff, that emits stuff from another thread and does some enumJohan Dahlin2004-09-272-6/+135
| | | | | | * tests/testhelpermodule.c: * tests/test_thread.py: Add thread stuff, that emits stuff from another thread and does some enum magic.
* New functions exposed through _PyGObject_Functions to work around bugs inJohn Ehresman2004-09-273-5/+102
| | | | | | | | | | | | * gobject/gobjectmodule.c: New functions exposed through _PyGObject_Functions to work around bugs in the PyGILState api's * gobject/pygobject.h: idem * gobject/pygobject-private.h: idem * gtk/gtk.override (_wrap_gtk_main): add pyg_enable_threads() call to ensure thread state for thread invoking this function is remembered. Only call pyg_enable_threads() here if threads were previously enabled
* catch ImportError if glade is not found and set glade to NoneJohn Ehresman2004-09-271-1/+4
| | | | | * tests/common.py: catch ImportError if glade is not found and set glade to None
* Small c module to help testingJohan Dahlin2004-09-274-8/+59
| | | | | | | * tests/testhelper.c: Small c module to help testing * tests/test_subtype.py: tests for this, use testhelper here aswell
* Revert parts of Gustavos changes, so the size of interfaces are correct.Johan Dahlin2004-09-272-1/+15
| | | | | | | * codegen/codegen.py (FileOutput.resetline): Revert parts of Gustavos changes, so the size of interfaces are correct. * tests/test_subtype.py: tests for this.
* Make PyGClosure semi-publicGustavo J. A. M. Carneiro2004-09-262-8/+9
|
* Move some tests from gtype and rename from signal.pyJohan Dahlin2004-09-253-7/+30
| | | | | * tests/test_signal.py: Move some tests from gtype and rename from signal.py
* Bug 153718: exception in overriden gsignals causes ref count problemsGustavo J. A. M. Carneiro2004-09-252-5/+7
|
* Tests for GdkColor constructionJohn Ehresman2004-09-221-0/+16
|
* Filter out 0 valuesJohan Dahlin2004-09-171-1/+7
| | | | | | | * gobject/pygflags.c: Filter out 0 values * Makefile.am: * docs/Makefile.am: Revert documentation changes
* allow override of some more slotsGustavo J. A. M. Carneiro2004-08-201-7/+0
|
* gobject/pygenum.c (pyg_enum_repr) Match enum values to avoid segfaultsJohn Finlay2004-08-151-1/+5
| | | | | | * gobject/pygenum.c (pyg_enum_repr) Match enum values to avoid segfaults when enum minimum isn't 0 and values aren't a continuous sequence.
* gobject/pygflags.c (pyg_flags_add) Return NULL when no stub.John Finlay2004-08-081-0/+1
| | | | * gobject/pygflags.c (pyg_flags_add) Return NULL when no stub.
* Don't comment out the fallback, it break the test. (Wow, the testsuitePYGTK_2_3_96Johan Dahlin2004-08-063-15/+23
| | | | | | | | | | | | * 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.
* Use methflags argument for defines instead of discarding itJohan Dahlin2004-08-061-1/+1
| | | | | * codegen/codegen.py (Wrapper.write_methods): Use methflags argument for defines instead of discarding it
* New test.Johan Dahlin2004-08-043-2/+13
| | | | | | | | * 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.
* make threading runtime optionalGustavo J. A. M. Carneiro2004-08-0411-70/+122
|
* GdkModifierType is flags not an enum.Johan Dahlin2004-08-042-2/+8
| | | | | | | | | | | * gtk/gtk.override (_wrap_gtk_accel_map_lookup_entry): GdkModifierType is flags not an enum. * gobject/pygenum.c (pyg_enum_from_gtype): Don't crash if its not an enum * gobject/pygflags.c (pyg_flags_from_gtype): Don't crash if its not flags
* Urgh. more threading 'fixes'Johan Dahlin2004-08-032-20/+17
|
* remove unused variableGustavo J. A. M. Carneiro2004-08-031-1/+0
|
* More minor threading fixesJohan Dahlin2004-08-033-16/+4
|
* Create a new GType on the fly if there isn't one for the GType.Johan Dahlin2004-08-031-18/+22
| | | | | | * gobject/pygenum.c (pyg_enum_from_gtype): Create a new GType on the fly if there isn't one for the GType. (pyg_enum_add): Allow module to be NULL.
* Add better support for boolean type now when we can require 2.3. Fixes bugJohan Dahlin2004-08-036-33/+9
| | | | | | | | | | | | | | | | | * codegen/argtypes.py: * gobject/gobjectmodule.c: (pyg_source_remove): * gobject/pygmaincontext.c: (_wrap_g_main_context_iteration), (_wrap_g_main_context_pending): * gobject/pygmainloop.c: (_wrap_g_main_loop_is_running): * gobject/pygobject.c: (pygobject_handler_is_connected): * gobject/pygparamspec.c: (pyg_param_spec_getattr): * gobject/pygtype.c: (pyg_value_as_pyobject): * gtk/gdk.override: * gtk/gtk.override: * gtk/gtktextview.override: * gtk/gtkwidget.override: * pango.override: Add better support for boolean type now when we can require 2.3. Fixes bug 149121
* Clean up most functions here to have only one return path.Johan Dahlin2004-08-037-57/+73
| | | | | | | | | | | | | | | | | | * gtk/pygtktreemodel.c: Clean up most functions here to have only one return path. * gobject/pygobject.c (pygobject_emit): Protect g_value_unset by UNBLOCK/BLOCK_THREADS since it might call pygobject_free which will result in a deadlock. * gobject/gobjectmodule.c (pyg_thread_init): New function, move thread initalization stuff in here. * All over the place: Kill pyg_block/unblock_threads and use PyGILState and Py_BEGIN/END_ALLOW_THREADS. unblock [code] block calls are replaced by Py_BEGIN/END and block [code] unblock calls are replaced by PyGILState.
* Call PyEval_InitThreads. Perhaps its something that always should bePYGTK_2_3_95Johan Dahlin2004-08-026-16/+51
| | | | | | | | | | | | | | | | * gobject/gobjectmodule.c (initgobject): Call PyEval_InitThreads. Perhaps its something that always should be called. * README (Author): Add a requirements section * configure.in: Require Python 2.3 * setup.py (version): Ditto * gobject/pygtype.c, gobject/pygobject.h: Remove 2.2 compat. * All over the place: Add support for PyGILState.
* Added small PYTHONPATH noteJohan Dahlin2004-07-291-1/+2
|
* Use gobject.type_name,type_from_name for testing instead of GtkListStore.Johan Dahlin2004-07-292-11/+11
| | | | | * tests/gtype.py (GTypeTest.checkType): Use gobject.type_name,type_from_name for testing instead of GtkListStore.
* s/e/enumJohan Dahlin2004-07-281-13/+13
|