| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
* gobject/pygparamspec.c (pyg_param_spec_getattr): In case the
enum is not registered, set enum_class or flag_class to None
|
|
|
|
|
|
|
| |
2005-02-23 Cedric Gustin <cedric.gustin@swing.be>
* gobject/pygtype.c (add_property_docs): Use G_CONST_RETURN with a
gchar* return value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
GValueArray conversion
|
|
|
|
| |
sometimes not
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
2004-12-10 John Ehresman <jpe@wingide.com>
* gobject/pygobject.h: Change PY_HEXVERSION to PY_VERSION_HEX
|
| |
|
|
|
|
|
| |
* gobject/pygobject.c (pygobject_register_sinkfunc): Make sure
type is a type and sinkfunc isn't NULL.
|
|
|
|
|
| |
* gobject/pygflags.c (pyg_flags_repr): Print long int value if enum
string not found. Fixes #158417. (modifed patch from Tim Evans)
|
|
|
|
|
|
| |
* 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 argv is NULL.
|
|
|
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
This is make threading usable for both users of the threading
module and users that requires interaction with threads from
other extension modules.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
|
|
|
|
|
|
| |
* gobject/pygflags.c: Filter out 0 values
* Makefile.am:
* docs/Makefile.am: Revert documentation changes
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
| |
* 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
|