| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-02-08 Johan Dahlin <jdahlin@async.com.br>
* configure.in, setup.py: Upped version number
* pygtk-2.0.pc.in (codegendir): Added.
* setup.py: Added Numeric and gtkgl support (gtkgl untested).
* dsextras.py: Updated.
* gtk/libglade.override (connect_many): Add PyErr_Clear()
here. Since PyMapping_GetItemString will raise an AttributeError
if the handler can't be found.
|
| |
|
|
|
|
|
|
| |
* pygtk-2.0.pc.in (codegendir): Added.
* setup.py: Added Numeric and gtkgl support (gtkgl untested).
* dsextras.py: Updated.
|
| |
|
|
|
|
| |
* gtk/libglade.override (connect_many): Add PyErr_Clear()
here. Since PyMapping_GetItemString will raise an AttributeError
if the handler can't be found.
|
| |
|
|
|
|
|
|
|
|
|
| |
2003-01-31 James Henstridge <james@daa.com.au>
* gtk/gdk.override (_wrap_gdk_draw_rgb_image): add implementation.
(_wrap_gdk_draw_rgb_32_image): add implementation.
(_wrap_gdk_draw_gray_image): add
(_wrap_gdk_draw_rgb_image, _wrap_gdk_draw_rgb_32_image): add xdith
and ydith optional arguments, providing the functionality of the
_dithalign variants.
|
| |
|
|
|
|
| |
2003-01-30 Jon Trowbridge <trow@ximian.com>
* gtk/gdk.override: Only call import_array if we HAVE_NUMPY.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-01-30 James Henstridge <james@daa.com.au>
* gtk/gdk.override (_wrap_gdk_pixbuf__get_pixel_array): add
wrapper that returns a NumPy array.
* gtk/gdk-types.defs (Pixbuf): add a "pixel_array" member to
pixbuf object.
* configure.in (enable_numpy): get rid of code detecting which
directory Numeric's arrayobject.h header is in. No point in
supporting ancient versions ...
|
| | |
|
| |
|
|
| |
* dsextras.py (InstallLib.add_template_option): Fix template bustage.
|
| |
|
|
|
| |
* gtk/gtk.defs (set_from_image, set_from_file, set_from_pixbuf):
Allow NULL here too. This definitly fixes #103559
|
| |
|
|
|
|
|
| |
* gtk/gtkmodule.c (init_gtk): Added a timeout that calls
python_do_pending_calls every 100 ms.
(python_do_pending_calls): Call PyErr_CheckSignals, so Ctrl-C
works as expected inside of gtk_main(). Fixes #72333
|
| |
|
|
|
|
|
| |
* dsextras.py (Template.generate): Import codegen here instead,
needs to be fixed in the future though.
* Makefile.am (EXTRA_DIST): Added dsextras.py
|
| |
|
|
|
| |
* gobjectmodule.c: Add GMainContext bindings and complete the
GMainLoop bindings. Fixes #102362.
|
| |
|
|
|
|
| |
* dsextras.py: Splitted out from setup.py. It should be reusable
for gnome-python and other extensions that uses pygtk.
Fixes #103615
|
| |
|
|
|
|
| |
* gtk/gtk.override (quit_handler_marshal): Added to here, was
generated before. This version handle threads better. Patch from
John Finlay, Fixes #103851.
|
| |
|
|
|
|
| |
* gtk/gdk.override (_wrap_gdk_event_tp_getattr): Added correct
__members__ to all different kind of GdkEvent's. This fixes the
dir() output, also reported as #103979
|
| |
|
|
|
|
| |
* pygtk.py (_get_available_versions): Check if a directory is
empty before adding it to the path. Also added a few comments.
Fixes #103876 (Ross Burton).
|
| |
|
|
|
| |
* gtk/gtk.defs (drag_source_set_icon, set_from_pixmap): Null is
okay here. Fixes #103559 (John Finlay)
|
| |
|
|
|
| |
* gtk/gtk.defs (begins_tag, ends_tag, toggles_tag): Add default
values. Fixes #103443 (John Finlay)
|
| |
|
|
|
| |
* gtk/gdk.defs (bitmap_create_from_data): Change data parameter
from const-gchar to const-guchar. Fixes #103616 (Eddie Kohler)
|
| |
|
|
|
|
|
|
|
|
|
| |
* setup.py: use os.path.join in a few more places
* pygobject-private.h: Add PyGMainLoop struct and type
* gobjectmodule.c (_wrap_g_main_loop_new, _wrap_g_main_loop_quit)
(_wrap_g_main_loop_is_running, _wrap_g_main_loop_run): Added
GMainLoop wrapper.
(initgobject): Register wrapper in gobject.MainLoop
|
| |
|
|
|
| |
* setup.py: Check for the python version
(Template.generate): Use codegen directly instead of os.system()
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-01-17 Jon Trowbridge <trow@ximian.com>
* pygobject.c (pygobject_dealloc): In my fix for bug #102756 on
2003-01-08, I should have used calls to pyg_unblock_threads()/
pyg_block_threads() instead of directly calling the
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS macros. The macros
don't update our local thread lock counts, causing problems in
cases where the finalization of one object triggers the
finalization of another. (When I say "problems", I of course mean
"horrible crashes and mysterious race conditions".)
* gtk/gtk-types.c (pygtk_style_helper_dealloc,
pygtk_style_helper_setitem, pygtk_tree_model_row_dealloc,
pygtk_tree_model_row_iter_dealloc): See above.
|
| |
|
|
|
|
|
|
|
|
| |
2003-01-16 Johan Dahlin <jdahlin@async.com.br>
* gtk/libglade.override (connect_many) Use PyObject_GetAttrString
as a fallback. Remove warning.
(_wrap_glade_xml_signal_autoconnect): Don't limit to PyDict_Type.
S: ----------------------------------------------------------------------
|
| |
|
|
|
|
|
| |
2002-01-09 Joe Shaw <joe@ximian.com>
* gtk/gtk.override (_wrap_gtk_icon_size_lookup): Wrap. The width
and height are returned as a tuple.
|
| |
|
|
|
|
|
|
| |
2003-01-09 Joe Shaw <joe@ximian.com>
* gtk/gtk.override (_wrap_gtk_file_selection_get_selections):
Added. Wraps the gtk_file_selection_get_selections() call which
has a gchar ** return type, so it wasn't being wrapped.
|
| |
|
|
| |
* setup.py: Make building with threading work (again).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-01-08 Jon Trowbridge <trow@ximian.com>
* pygobject.c (pygobject_dealloc): Wrap
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call to
g_object_unref. We need to do this because the object finalizers
might trigger other code that has to acquire the interpreter lock,
causing a deadlock. Fixes #102756.
* gtk/gtk-types.c (pygtk_style_helper_dealloc): Wrap the call to
g_object_unref in Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS.
This should let us avoid other instances of bug #102756.
(pygtk_style_helper_setitem): Ditto.
(pygtk_tree_model_row_dealloc): Ditto.
(pygtk_tree_model_row_iter_dealloc): Ditto.
* gtk/gdk.override (pygdk_unblock_threads, pygdk_unblock_threads):
Restored David I Lehn's patch (#98380). His patch was fine ---
it just caused bug #102756 to emerge.
|
| | |
|
| |
|
|
|
|
|
| |
* pygtk.py (_get_available_versions): Rewrite using glob.glob,
with python2.2 glob uses fnmatch.filter with is an optimized
version of what we did before. _get_available_versions is now
roughly 5 times faster.
|
| |
|
|
|
|
| |
* gtk/gdk.override (pygdk_block_threads, pygdk_unblock_threads):
Reverted patch from David I Lehn (#98380) since it caused troubles
for other people.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gtk/gtk.defs (gtk_text_tag_new): Add default paramter.
* pangomodule.c (initpango): Added SCALE_* constants, patch by
John Finlay, fixes #102731.
* gtk/gtk.override (_wrap_gtk_text_buffer_create_tag): Modify to
accept keyword parameters, largely based upon patch by John
Finlay, fixes #102628
* gtk/gtk.defs (GtkTextBuffer.get_slice): default last parameter
to TRUE. #102607
(GtkTextBuffer.get_text): ditto. #102607
(GtkTextBuffer.create_mark): Default last param. to FALSE. #102627
|
| |
|
|
|
|
|
|
|
|
| |
2003-01-07 Johan Dahlin <jdahlin@async.com.br>
* setup.py, MANIFEST.in: Added distutils support
* Makefile.am (EXTRA_DIST): Added setup.py and MANIFEST.in here.
* .cvsignore: Add build/dist/MANIFEST here
|
| |
|
|
|
|
|
| |
2003-01-06 Jon Trowbridge <trow@ximian.com>
* gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path):
pyg_unblock_threads was being called twice.
|
| |
|
|
|
|
| |
2003-01-05 Johan Dahlin <jdahlin@async.com.br>
* gtk/libglade.override: protect config.h by an ifdef.
|
| | |
|
| |
|
|
| |
keyword argument and not up-to-date comment.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gtk/gtk.override (_wrap_gtk_text_buffer_insert_at_cursor)
(_wrap_gtk_text_buffer_insert_at_cursor)
(_wrap_gtk_text_buffer_insert_interactive)
(_wrap_gtk_text_buffer_insert_interactive_at_cursor): Wrap, so you
don't have to specify the length of the string. For
consistency. (It's not slower since Python does always store the
length inside the PyStringObject struct). Patch (mostly) by
John Finlay, fixes #102186.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-01-01 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk.defs (GtkTreeView.scroll_to_cell): Add default values.
* gtk/gtk.override (_wrap_gtk_tree_selection_get_selected): Check
the mode before calling gtk_tree_selection_get_selected, this
avoids an abort() in gtk+.
* pygtk.py: Updated to fix #102180, so .require() can be called
twice and won't do anything the second time (eg, not raise an
error) based upon patch by warner-gnome.bugzilla@lothar.com
|
| |
|
|
| |
* gtk/gtk.defs (set_cursor): Set default parameters.
|
| |
|
|
|
|
|
|
| |
* gobjectmodule.c, gtk/gtk.override, gtk/pygtkcellrenderer.c,
gtk/pygtktreemodel: Improve threading support by adding
pyg_thread_block/unblock around all PyObject_Call* and
g_object_refs.
Based upon patch by Jon Trowbridge. Fixes #99102.
|
| |
|
|
|
|
|
| |
* gtk/gdk-types.defs (ColorSpace): Add.
* gtk/gdk.defs (GdkRectangle.intersect, GdkRectangle.union,
gdk.atom_intern): Add
|
| |
|
|
|
|
| |
* gtk/gdk.override (_wrap_gdk_rectangle_intersect): Impl.
(_wrap_gdk_rectangle_union): Impl. (doesn't follow the GDK api to
100%, but this is much nicer from a python point of view)
|
| |
|
|
|
|
|
|
| |
2002-12-28 Jeremy Katz <katzj@redhat.com>
* codegen/codegen.py (GObjectWrapper.get_initial_constructor_substdict)$
GtkInvisible is a toplevel like GtkWindow and needs to be handled
similarly for reference counting.
|
| |
|
|
|
| |
* gtk/gtk.defs: Added -1 as default to second parameter, patch by
John Finlay, fixes 102083.
|
| | |
|
| |
|
|
|
|
|
| |
2002-12-28 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_text_buffer_set_text): get rid of
len argument all together. The first argument knows its length.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
2002-12-27 James Henstridge <james@daa.com.au>
* NEWS: add news items.
* gtk/__init__.py: if True and False constants don't exist in
__builtins__, add them. This way I can rely on them existing.
Define gtk.TRUE and gtk.FALSE to True and False.
(input_add_full): add extra compatibility name.
* configure.in: increment version number.
|
| |
|
|
|
|
|
|
| |
2002-12-26 James Henstridge <james@daa.com.au>
* gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path): this
should have been calling on_get_path(), rather than
on_get_tree_path().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-12-25 James Henstridge <james@daa.com.au>
* gtk/gtk.defs (GtkStyle.copy): caller owns return.
(GtkRcStyle.copy): same.
(GtkIconSet.copy): same.
(GtkIconSource.copy): same.
(GtkSelectionData.copy): same.
(GtkStockItem.copy): same.
(GtkBorder.copy): same.
(GtkTextIter.copy): same.
(GtkTextAttributes.copy): same.
(GtkTreePath.copy): same.
(GtkTreeIter.copy): same.
(GtkRequisition.copy): same.
|
| |
|
|
|
|
|
| |
2002-12-25 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_layout_get_size): don't return NULL
if user asks to register zero stock items.
|