summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* === PyGTK 1.99.15 ===PYGTK_1_99_15Johan Dahlin2003-02-094-2/+18
| | | | | | | | | | | | | | | | 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.
* Added.Johan Dahlin2003-02-084-10/+63
| | | | | | | | * pygtk-2.0.pc.in (codegendir): Added. * setup.py: Added Numeric and gtkgl support (gtkgl untested). * dsextras.py: Updated.
* Add PyErr_Clear() here. Since PyMapping_GetItemString will raise anJohan Dahlin2003-02-082-0/+7
| | | | | | * gtk/libglade.override (connect_many): Add PyErr_Clear() here. Since PyMapping_GetItemString will raise an AttributeError if the handler can't be found.
* add implementation. (_wrap_gdk_draw_rgb_32_image): add implementation.James Henstridge2003-01-312-31/+140
| | | | | | | | | | | 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.
* Only call import_array if we HAVE_NUMPY.Jon Trowbridge2003-01-302-0/+6
| | | | | | 2003-01-30 Jon Trowbridge <trow@ximian.com> * gtk/gdk.override: Only call import_array if we HAVE_NUMPY.
* add wrapper that returns a NumPy array.James Henstridge2003-01-304-14/+69
| | | | | | | | | | | | | | 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 ...
* bin_windowGustavo J. A. M. Carneiro2003-01-302-0/+7
|
* Fix template bustage.Johan Dahlin2003-01-242-1/+3
| | | | * dsextras.py (InstallLib.add_template_option): Fix template bustage.
* Allow NULL here too. This definitly fixes #103559Johan Dahlin2003-01-242-3/+8
| | | | | * gtk/gtk.defs (set_from_image, set_from_file, set_from_pixbuf): Allow NULL here too. This definitly fixes #103559
* Added a timeout that calls python_do_pending_calls every 100 ms.Johan Dahlin2003-01-242-1/+21
| | | | | | | * 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
* Import codegen here instead, needs to be fixed in the future though.Johan Dahlin2003-01-213-4/+20
| | | | | | | * dsextras.py (Template.generate): Import codegen here instead, needs to be fixed in the future though. * Makefile.am (EXTRA_DIST): Added dsextras.py
* Add GMainContext bindings and complete the GMainLoop bindings. FixesJohan Dahlin2003-01-215-24/+349
| | | | | * gobjectmodule.c: Add GMainContext bindings and complete the GMainLoop bindings. Fixes #102362.
* Splitted out from setup.py. It should be reusable for gnome-python andJohan Dahlin2003-01-213-228/+258
| | | | | | * dsextras.py: Splitted out from setup.py. It should be reusable for gnome-python and other extensions that uses pygtk. Fixes #103615
* Added to here, was generated before. This version handle threads better.Johan Dahlin2003-01-212-0/+22
| | | | | | * gtk/gtk.override (quit_handler_marshal): Added to here, was generated before. This version handle threads better. Patch from John Finlay, Fixes #103851.
* Added correct __members__ to all different kind of GdkEvent's. This fixesJohan Dahlin2003-01-212-7/+85
| | | | | | * 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
* Check if a directory is empty before adding it to the path. Also added aJohan Dahlin2003-01-192-2/+16
| | | | | | * 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).
* Null is okay here. Fixes #103559 (John Finlay)Johan Dahlin2003-01-182-2/+5
| | | | | * gtk/gtk.defs (drag_source_set_icon, set_from_pixmap): Null is okay here. Fixes #103559 (John Finlay)
* Add default values. Fixes #103443 (John Finlay)Johan Dahlin2003-01-182-3/+6
| | | | | * gtk/gtk.defs (begins_tag, ends_tag, toggles_tag): Add default values. Fixes #103443 (John Finlay)
* Change data parameter from const-gchar to const-guchar. Fixes #103616Johan Dahlin2003-01-182-2/+5
| | | | | * gtk/gdk.defs (bitmap_create_from_data): Change data parameter from const-gchar to const-guchar. Fixes #103616 (Eddie Kohler)
* use os.path.join in a few more placesJohan Dahlin2003-01-186-15/+238
| | | | | | | | | | | * 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
* Check for the python version (Template.generate): Use codegen directlyJohan Dahlin2003-01-182-9/+29
| | | | | * setup.py: Check for the python version (Template.generate): Use codegen directly instead of os.system()
* In my fix for bug #102756 on 2003-01-08, I should have used calls toJon Trowbridge2003-01-174-20/+35
| | | | | | | | | | | | | | | | | 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.
* Don't limit to PyDict_Type.Johan Dahlin2003-01-162-9/+20
| | | | | | | | | | 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: ----------------------------------------------------------------------
* Wrap. The width and height are returned as a tuple.Joe Shaw2003-01-102-0/+27
| | | | | | | 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.
* Added. Wraps the gtk_file_selection_get_selections() call which has aJoe Shaw2003-01-092-0/+28
| | | | | | | | 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.
* Make building with threading work (again).Johan Dahlin2003-01-082-1/+5
| | | | * setup.py: Make building with threading work (again).
* Wrap Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call toJon Trowbridge2003-01-085-16/+68
| | | | | | | | | | | | | | | | | | | | | 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.
* Doh! Paper bagJohan Dahlin2003-01-081-3/+5
|
* Rewrite using glob.glob, with python2.2 glob uses fnmatch.filter with isJohan Dahlin2003-01-072-10/+20
| | | | | | | * 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.
* Reverted patch from David I Lehn (#98380) since it caused troubles forJohan Dahlin2003-01-072-19/+16
| | | | | | * gtk/gdk.override (pygdk_block_threads, pygdk_unblock_threads): Reverted patch from David I Lehn (#98380) since it caused troubles for other people.
* Add default paramter.Johan Dahlin2003-01-074-9/+72
| | | | | | | | | | | | | | | | * 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
* Added distutils supportJohan Dahlin2003-01-075-2/+418
| | | | | | | | | | 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
* pyg_unblock_threads was being called twice.Jon Trowbridge2003-01-062-1/+5
| | | | | | | 2003-01-06 Jon Trowbridge <trow@ximian.com> * gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path): pyg_unblock_threads was being called twice.
* protect config.h by an ifdef.Johan Dahlin2003-01-052-0/+6
| | | | | | 2003-01-05 Johan Dahlin <jdahlin@async.com.br> * gtk/libglade.override: protect config.h by an ifdef.
* FixelifixJohan Dahlin2003-01-011-3/+3
|
* (_wrap_gtk_text_buffer_get_selection_bounds): Remove unusedJohan Dahlin2003-01-012-4/+5
| | | | keyword argument and not up-to-date comment.
* Wrap, so you don't have to specify the length of the string. ForJohan Dahlin2003-01-012-0/+110
| | | | | | | | | | | * 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.
* Add default values.Johan Dahlin2003-01-014-8/+44
| | | | | | | | | | | | | | 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
* Set default parameters.Johan Dahlin2002-12-302-2/+6
| | | | * gtk/gtk.defs (set_cursor): Set default parameters.
* Improve threading support by adding pyg_thread_block/unblock around allJohan Dahlin2002-12-286-29/+130
| | | | | | | | * 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.
* Add.Johan Dahlin2002-12-283-0/+42
| | | | | | | * gtk/gdk-types.defs (ColorSpace): Add. * gtk/gdk.defs (GdkRectangle.intersect, GdkRectangle.union, gdk.atom_intern): Add
* Impl. (_wrap_gdk_rectangle_union): Impl. (doesn't follow the GDK api toJohan Dahlin2002-12-282-0/+54
| | | | | | * 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)
* codegen/codegen.py (GObjectWrapper.get_initial_constructor_substdict)$Jeremy Katz2002-12-282-0/+8
| | | | | | | | 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.
* Added -1 as default to second parameter, patch by John Finlay, fixesJohan Dahlin2002-12-282-1/+6
| | | | | * gtk/gtk.defs: Added -1 as default to second parameter, patch by John Finlay, fixes 102083.
* Update and fixesJohan Dahlin2002-12-281-2/+7
|
* get rid of len argument all together. The first argument knows its length.James Henstridge2002-12-282-2/+7
| | | | | | | 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.
* add news items.PYGTK_1_99_14James Henstridge2002-12-274-8/+39
| | | | | | | | | | | | | 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.
* this should have been calling on_get_path(), rather thanJames Henstridge2002-12-262-4/+10
| | | | | | | | 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().
* caller owns return. (GtkRcStyle.copy): same. (GtkIconSet.copy): same.James Henstridge2002-12-252-0/+25
| | | | | | | | | | | | | | | | | 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.
* don't return NULL if user asks to register zero stock items.James Henstridge2002-12-252-4/+9
| | | | | | | 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.