summaryrefslogtreecommitdiffstats
path: root/gobject
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 128765: GObject metaclassGustavo J. A. M. Carneiro2005-05-223-20/+113
|
* 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
* Fix for bug #303573 - "exceptions raised in a child watch handler areMark McLoughlin2005-05-091-2/+10
| | | | | | | | | | | | | | | | | | 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>
* In case the enum is not registered, set enum_class or flag_class to NonePYGTK_2_6_1Johan Dahlin2005-03-141-7/+18
| | | | | * gobject/pygparamspec.c (pyg_param_spec_getattr): In case the enum is not registered, set enum_class or flag_class to None
* Use G_CONST_RETURN with a gchar* return value.PYGTK_2_6_0Cedric Gustin2005-02-231-1/+1
| | | | | | | 2005-02-23 Cedric Gustin <cedric.gustin@swing.be> * gobject/pygtype.c (add_property_docs): Use G_CONST_RETURN with a gchar* return value.
* Move the install_template call for pygobject-2.0.pc.in to the right placePYGTK_2_5_4Cedric Gustin2005-02-231-2/+7
| | | | | | | | | | | | | | | | | 2005-02-23 Cedric Gustin <cedric.gustin@swing.be> * setup.py: Move the install_template call for pygobject-2.0.pc.in to the right place in the script. Also define PLATFORM_WIN32 on win32. Fixes bug #150616. * codegen/codegen.py: Do not write the 'pygtk class init' function for objects whose type is explicitly ignored (like GtkPlug and GtkSocket on win32). Otherwise, it generates glib-warnings related to calls to g_object_set_qdata with a NULL 'node'. * gobject/pygtype.c: Do not use g_string_append_printf with a NULL argument, as it crashes on win32. Fixes bug #166546. * gtk/gtk.override: Add GtkSocket__proxy_do_plug_added, GtkSocket__proxy_do_plug_removed and GtkPlug__proxy_do_embedded to the ignore-win32 list.
* don't pass a NULL value to PyThread_set_key_value() - causes an assertionMark McLoughlin2005-02-101-1/+2
| | | | | | | | 2005-02-10 Mark McLoughlin <mark@skynet.ie> * gobject/pygmainloop.c: (pyg_restore_current_main_loop): don't pass a NULL value to PyThread_set_key_value() - causes an assertion failure with python 2.4.
* Fix for bug #154779 - Python signal handlers don't get executed whileMark McLoughlin2005-02-093-2/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-09 Mark McLoughlin <mark@skynet.ie> Fix for bug #154779 - Python signal handlers don't get executed while you're sitting in the main loop. * gobject/pygmainloop.c: (pyg_save_current_main_loop), (pyg_restore_current_main_loop), (pyg_get_current_main_loop): functions for keeping track of the currently running main loop. A version using TLS and another using a global variable, depending on whether DISABLE_THREADING is defined (pyg_signal_watch_prepare), (pyg_signal_watch_check), (pyg_signal_watch_dispatch), (pyg_signal_watch_new): a GSource which runs the python signal handlers whenever the mainloop is interrupted by signal delivery. (pyg_main_loop_new), (pyg_main_loop_dealloc): add and remove the source. (_wrap_g_main_loop_run): push/pop the currently running main loop. * gobject/pygobject-private.h: add a pointer for the source to PyGMainLoop. * gobject/Makefile.am: add -DPLATFORM_WIN32 to cflags if building on Windows.
* [Bug 154372] New: - Calling an enumeration type causes an assertion failurePYGTK_2_5_3Gustavo J. A. M. Carneiro2005-01-222-12/+24
|
* Bug 164441: leak in gobject.type_register(); patch by Mark McLoughlinGustavo J. A. M. Carneiro2005-01-221-1/+4
|
* interface implementation fixesGustavo J. A. M. Carneiro2005-01-161-1/+1
|
* interface implementation fixesGustavo J. A. M. Carneiro2005-01-161-4/+8
|
* Bug 163612: segmentation fault on pygtk-demoGustavo J. A. M. Carneiro2005-01-102-20/+26
|
* Bug 160452: pyg_value_from_pyobject() does not handle sequence -> ↵Gustavo J. A. M. Carneiro2005-01-091-0/+70
| | | | GValueArray conversion
* 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-091-1/+240
|
* misc API additions, threadingGustavo J. A. M. Carneiro2005-01-093-28/+22
|
* #154974: Interface implementation supportGustavo J. A. M. Carneiro2005-01-092-0/+43
|
* [Bug 145314] Overriding GTK+ virtual methodsGustavo J. A. M. Carneiro2005-01-082-1/+43
|
* 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
* 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!
* 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-283-50/+38
| | | | | | This is make threading usable for both users of the threading module and users that requires interaction with threads from other extension modules.
* 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
* Make PyGClosure semi-publicGustavo J. A. M. Carneiro2004-09-262-8/+9
|
* Bug 153718: exception in overriden gsignals causes ref count problemsGustavo J. A. M. Carneiro2004-09-251-4/+0
|
* 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-062-13/+14
| | | | | | | | | | | | * 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.
* New test.Johan Dahlin2004-08-042-2/+10
| | | | | | | | * 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
|