summaryrefslogtreecommitdiff
path: root/gtk/gdk.override
Commit message (Collapse)AuthorAgeFilesLines
* apply Elliot Lee's threading patch. Still need to fix the remainingJames Henstridge2003-07-261-19/+28
| | | | | | | 2003-07-26 James Henstridge <james@daa.com.au> * gtk/gdk.override: apply Elliot Lee's threading patch. Still need to fix the remaining threading problems.
* gtk/gdk.override (gdk_window_new) Wrap gdk_window_new as a constructor forJohn Finlay2003-07-201-0/+71
| | | | | * gtk/gdk.override (gdk_window_new) Wrap gdk_window_new as a constructor for gtk.gdk.Window(). Fixes #117860.
* Add functions. Fixes #115046.John Finlay2003-07-011-0/+54
| | | | | * gtk/gdk.override (_wrap_gdk_window_get_toplevels) (_wrap_gdk_list_visuals): Add functions. Fixes #115046.
* Add method. Fixes #114821.John Finlay2003-07-011-0/+11
| | | | | * gtk/gdk.override (gdk_window_get_decorations): Add method. Fixes #114821.
* Return a GdkRectangle. Fixes #114817.John Finlay2003-07-011-0/+11
| | | | | * gtk/gdk.override (_wrap_gdk_window_get_frame_extents): Return a GdkRectangle. Fixes #114817.
* Add deprecation warnings. Fixes #110663.John Finlay2003-07-011-20/+121
| | | | | | | | | | | | | | | | | | | * gtk/gtk.override (_wrap_gtk_button_box_get_child_size) (_wrap_gtk_button_box_get_child_ipadding): Add deprecation warnings. Fixes #110663. * gtk/gdk.override (_wrap_gdk_pixbuf_animation_get_iter) (_wrap_gdk_pixbuf_animation_iter_advance): Add methods. Fixes #114616. * gtk/gdk.defs (gdk_pixmap_create_from_data): Allow NULL window arg. Fixes #114661. * gtk/gdk.defs (gdk_rectangle_new): Add GdkRectangle constructor. Partial fix for #114743. * gtk/gdk.override (_wrap_gdk_rectangle_union) (_wrap_gdk_rectangle_intersect): Add keyword args and allow 4-tuple as rectangle spec. Fixes #114743.
* Add optional args background and foreground (GdkColor) default to NULL.John Finlay2003-06-281-0/+38
| | | | | * gtk/gdk.override (_wrap_gdk_draw_layout): Add optional args background and foreground (GdkColor) default to NULL. Fixes 113954.
* add copyright notices, and update to LGPL 2.1.James Henstridge2003-06-261-1/+21
| | | | | | 2003-06-26 James Henstridge <james@daa.com.au> * (lots of stuff): add copyright notices, and update to LGPL 2.1.
* fix bug 114619 (the #define we were using was private).James Henstridge2003-06-181-1/+1
| | | | | | | 2003-06-18 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_drawable__get_handle): fix bug 114619 (the #define we were using was private).
* Fix an invalid python format string.Joe Shaw2003-06-121-1/+1
| | | | | | | 2003-06-12 Joe Shaw <joe@ximian.com> * gtk/gdk.override (_wrap_gdk_pixbuf_loader_write): Fix an invalid python format string.
* Allow allocating a color using an unallocated gdk.Color. Patch by JohnJohan Dahlin2003-06-061-8/+27
| | | | | | * gtk/gdk.override (_wrap_gdk_colormap_alloc_color): Allow allocating a color using an unallocated gdk.Color. Patch by John Finlay, fixes #113858
* (_wrap_gdk_gc_set_values, _wrap_gdk_gc_set_values): Impl. Patch byJohan Dahlin2003-06-061-0/+259
| | | | John Finlay, fixes #114449
* Make last argument optional. (_wrap_gdk_pixbuf_loader_new_with_type): MakeJohan Dahlin2003-06-061-1058/+1124
| | | | | | | * gtk/gdk.override (_wrap_gdk_pixbuf_loader_write): Make last argument optional. (_wrap_gdk_pixbuf_loader_new_with_type): Make first argument optional, so we can open without specifying a type. Fixes #114206.
* Add xid and handle attributes.Johan Dahlin2003-06-061-0/+32
| | | | | | | | * gtk/gdk-types.defs (Drawable): Add xid and handle attributes. * gtk/gdk.override (_wrap_gdk_drawable__get_xid) (_wrap_gdk_drawable__get_xid): Implement for X11 and win32. Patch by jkluebs@luebsphoto.com, fixes #109105
* use short and long instead of gint16 and gint32, so we don't break on 64James Henstridge2003-06-021-47/+97
| | | | | | | | | | | | | | | 2003-06-02 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_property_change): use short and long instead of gint16 and gint32, so we don't break on 64 bit platforms (Xlib uses those types, even though they don't match the sizes). If format==32 test if the type is ATOM or ATOM_PAIR, and if so marshal the data into a (GdkAtom *) array instead of (long *). Based on patch in bug 113860. (_wrap_gdk_property_get): make similar changes to property_get. (_wrap_gdk_property_get): the returned length is the length in bytes, not number of elements.
* Impl. Patch by John Finlay, fixes #113919.Johan Dahlin2003-05-301-0/+18
| | | | | * gtk/gdk.override (_wrap_gdk_devices_list): Impl. Patch by John Finlay, fixes #113919.
* Backwards compatibility, based on patch by Jonathan Blandford, fixesJohan Dahlin2003-05-301-0/+17
| | | | | | | | | | | | | * gtk/gtk.override (_wrap_gtk_text_buffer_set_text) (_wrap_gtk_text_buffer_insert) (_wrap_gtk_text_buffer_insert_at_cursor) (_wrap_gtk_text_buffer_insert_interactive) (_wrap_gtk_text_buffer_insert_interactive_at_cursor): * gtk/gdk.defs (gc_new): * gtk/gdk.override (_wrap_gdk_gc_new2): Backwards compatibility, based on patch by Jonathan Blandford, fixes #113861
* New placeholder function (gc_new): Set as constructor for GdkGCJohan Dahlin2003-03-081-1/+53
| | | | | | | | * gtk/gdk.defs (gdk_color_new): New placeholder function (gc_new): Set as constructor for GdkGC * gtk/gdk.override (_wrap_gdk_color_tp_setattr) (_wrap_gdk_color_new): Impl
* Null is okay here. Fixes #106295 (John Finlay).Johan Dahlin2003-02-271-0/+37
| | | | | | | | | | | | | | | | * gtk/gdk.defs (invalidate_rect): Null is okay here. Fixes #106295 (John Finlay). * gtk/gdk.override (_wrap_gdk_pixbuf_new_from_xpm_data): Impl. Fixes #106292 (John Finlay) * pango.override (_wrap_pango_layout_set_text): Impl. Fixes #106280 (John Finlay) * gtk/gtk.override: Added get implements for all TextAttribute fields. Fixes #106279 (John Finlay). * gtk/gtk-types.defs (TextAttributes): Added fields.
* add implementation. (_wrap_gdk_draw_rgb_32_image): add implementation.James Henstridge2003-01-311-31/+131
| | | | | | | | | | | 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-301-0/+2
| | | | | | 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-301-0/+36
| | | | | | | | | | | | | | 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 ...
* Added correct __members__ to all different kind of GdkEvent's. This fixesJohan Dahlin2003-01-211-7/+79
| | | | | | * 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
* Wrap Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call toJon Trowbridge2003-01-081-12/+19
| | | | | | | | | | | | | | | | | | | | | 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.
* Reverted patch from David I Lehn (#98380) since it caused troubles forJohan Dahlin2003-01-071-19/+12
| | | | | | * gtk/gdk.override (pygdk_block_threads, pygdk_unblock_threads): Reverted patch from David I Lehn (#98380) since it caused troubles for other people.
* Impl. (_wrap_gdk_rectangle_union): Impl. (doesn't follow the GDK api toJohan Dahlin2002-12-281-0/+48
| | | | | | * 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)
* Integrate patch by David I. Lehn, improves threading support, fixesJohan Dahlin2002-12-201-12/+19
| | | | | * gtk/gdk.override: Integrate patch by David I. Lehn, improves threading support, fixes #98380.
* Don't raise an exception when leaving this function, instead look inJohan Dahlin2002-12-081-2/+48
| | | | | | | | * gtk/gdk.override (_wrap_gdk_event_get_axis): Don't raise an exception when leaving this function, instead look in _PyGdkEvent_methods. (which raises an exception if it's not found) (_wrap_gdk_event_get_axis, _wrap_gdk_event_get_coords) (_wrap_gdk_event_get_root_coords): Impl.
* fix up ParseTuple call arguments (bug 99400).James Henstridge2002-11-241-12/+5
| | | | | | | | | | 2002-11-24 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_pixmap_create_from_xpm_d): fix up ParseTuple call arguments (bug 99400). * gtk/gtk.defs (create_mark): allow None to be passed for mark_name argument (bug 99391).
* From patch on bug #96950James Henstridge2002-11-161-0/+55
| | | | | | | | | | | | | | | 2002-11-16 James Henstridge <james@daa.com.au> From patch on bug #96950 * gtk/gdk.override (_wrap_gdk_pixbuf_save): wrapper for GdkPixbuf.save() * codegen/argtypes.py (GdkRectanglePtrArg.write_param): handle GdkRectangle args with (null-ok) set. * gtk/gtk.defs (gtk.Style.paint_*): allow passing None for area, widget and detail arguments.
* mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>:James Henstridge2002-08-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | 2002-08-24 James Henstridge <james@daa.com.au> mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>: * gtk/gtk.override: ignore more socket/plug functions on win32. * gtk/gdk.override: gdk_pixmap_lookup is not implemented on win32. * gtk/Makefile.am (common_ldflags): and here. * pango.override (PyPangoAttribute_Type): initialise tp_alloc and tp_new in the init() function, rather than in the structure definition itself. * Makefile.am (common_ldflags): pass -no-undefined if we are on windows. * configure.in: turn on win32 DLL support, and add OS_WIN32 and PLATFORM_WIN32 conditionals for use in makefiles.
* return a boxed type for gdk.Event.area for expose events.James Henstridge2002-07-071-5/+2
| | | | | | | | | | | | | | | | | | | 2002-07-07 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_event_tp_getattr): return a boxed type for gdk.Event.area for expose events. * gtk/gtk.override (_wrap_gtk_widget_intersect): use pygdk_rectangle_from_pyobject. * codegen/argtypes.py (arg): register GdkRectanglePtrArg handler for "GtkAllocation*". * gtk/gtk.override (_wrap_gtk_paint_polygon): use pygdk_rectangle_from_pyboejct to read rectangle argument. (_wrap_gtk_widget_draw): remove overrides. Should be handled by code generator. (_wrap_gtk_widget_size_allocate): remove this override too.
* fix definition, as reported by Thomas Leonard <tal00r@ecs.soton.ac.uk>James Henstridge2002-06-241-4/+4
| | | | | | | 2002-06-24 James Henstridge <james@daa.com.au> * gtk/gtk.defs (drag_source_set_icon_pixbuf): fix definition, as reported by Thomas Leonard <tal00r@ecs.soton.ac.uk>
* constructors return ints.James Henstridge2002-06-181-0/+2
| | | | | | | | | | | | | 2002-06-18 James Henstridge <james@daa.com.au> * gtk/gtkgl.override (_wrap_gtk_gl_area_share_new): constructors return ints. * gtk/gdk.override, gtk/gtk.override: ignore all _ref() or _unref() functions. * codegen/argtypes.py (BoxedArg.write_return): fix up handling of ownsreturn for Boxed return types.
* don't allow setting attributes on GdkGC instances. Simplifies things aJames Henstridge2002-04-221-44/+56
| | | | | | | 2002-04-22 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_gc_tp_setattr): don't allow setting attributes on GdkGC instances. Simplifies things a bit.
* added parameter --errorfilename to allow redirection of stderr even withHans Breuer2002-04-211-0/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-21 Hans Breuer <hans@breuer.org> * codegen/codegen.py : added parameter --errorfilename to allow redirection of stderr even with clumsy windoze shell * codegen/override.py : extended to allow 'sys.platform' specific ignores * examples/pygtk-demo/demos/colorsel.py : use color = gtk.gdk.color_parse("blue") to get the initial color * examples/pygtk-demo/demos/draw.py : (new file) demonstrating some simple drawing operations. It is using the gtk.GC interface additions below. * gtk/gdk.override : implement GdkGC.tp_getattr, GdkGC.tp_setattr and gdk_gc_set_dashes (ported from #if 0'ed code in gtk/gtk-types.c (should be removed there ?) * gtk/gtk.override : ignore-win32 GTK_TYPE_PLUG GTK_TYPE_SOCKET gtk_socket_new (the TYPE ignores do not work yet) * config.h.win32 makefile.msc pygtk/makefile.msc : new files to build pygtk on windoze using the established glib/build/win32 infrastructure * pygtk/gtk/gtk-fake-win32.c : (new file) implementing gtk_plug_get_type() and gtk_socket_get_type(). It could vanish if codegen/codegen.py has learned something like 'ignore-class-$(sys.platform) or my GtkPlug/GtkSocket patch gets accepted with Gtk. * gtk/gtkmodule.c : added a g_assert() to ensure importing pygobject did work.
* updates to match final gtk 2.0 APIs.James Henstridge2002-04-161-0/+1
| | | | | | 2002-04-17 James Henstridge <james@daa.com.au> * gtk/gtk.defs, gdk/gdk.defs: updates to match final gtk 2.0 APIs.
* ignore the GtkMenu append, insert and prepend methods (they are deprecatedJames Henstridge2002-03-171-0/+21
| | | | | | | | | | | | | | | | 2002-03-17 James Henstridge <james@daa.com.au> * gtk/gtk.override (ignore): ignore the GtkMenu append, insert and prepend methods (they are deprecated and shadow the methods you should use ...). (_wrap_gtk_image_menu_item_new): add wrapper for GtkImageMenuItem constructor (from bug 71893). * gtk/gdk.override (_wrap_gdk_pixbuf_get_pixels): implement get_pixels to return the pixels as a string. * codegen/argtypes.py (GdkRectangleArg.write_return): fix up problem with return type found by Peter Kese.
* fix up property listing.James Henstridge2002-03-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * pygtype.c (add_property_docs): fix up property listing. * gtk/libglade.override: add modulename directive. * gtk/gdk.override: add modulename directive. * gtk/gtk.override: add modulename directive. * atk.override: add modulename directive. * pango.override: add modulename directive. * codegen/codegen.py (write_class): if override.modulename is set, put it into the classname. (write_interface): same here. (write_boxed): same here. (write_pointer): same here. * codegen/override.py (Overrides.__parse_override): add support for a "modulename" directive for overrides files.
* add module name to type name, and remove the commented out obsoleteJames Henstridge2002-03-161-0/+115
| | | | | | | | | | | | | | | | | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * gtk/gtk-types.c (PyGtkStyleHelper_Type): add module name to type name, and remove the commented out obsolete GdkColormap implementation. * gtk/gtk.override (_wrap_gtk_widget_get_pointer): return a GdkRectangle instance. * gtk/gdk.override: implement setters for GdkRectangle attributes. * codegen/codegen.py (write_getsets): allow people to override the setter without having to override the getter too. (write_boxed_getsets): same here. * gtk/gdk.override: implement sequence behaviour for GdkRectangle wrapper. * gtk/gdk-types.defs (Rectangle): add a GdkRectangle boxed type definition.
* remove unused variable.James Henstridge2002-03-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * atk.override (_wrap_atk_relation_new): remove unused variable. * gtk/gtk-types.defs (Window): transient_parent field is a GtkWindow, rather than a GtkWidget. * gtk/gtk.override (_wrap_gtk_ctree_node_tp_getattr): same here. * gtk/gdk.override (_wrap_gdk_event_tp_getattr): change to "override-slot". * codegen/codegen.py (slots_list): a list of slots that we allow overriding of. (typetmpl): add extra substs for some slots. (write_class): add code that sets up the slot substitutions. (interfacetypetmpl): add slot substitutions. (boxedtmpl): add slot substitutions. (write_interface): add code to set slots. (write_interface): add code to set slots, and get rid of the old getattr handling. * codegen/override.py (Overrides.__parse_override): add support for an "override-slot" section to overrides file for overriding a slot in the PyTypeObject vtable. * gtk/gtk.override (_wrap_gtk_selection_data_get_text): add an override for this -- it was the only one correctly making use of * codegen/argtypes.py (UCharArg.write_param): unimplement. (guchar *) does not mean unicode, and often uchar returns are just date (eg. pixbuf data). gtk_selection_data_get_text is the exception.
* new function to allocate colours. (_wrap_gdk_color_alloc): new wrapperJames Henstridge2002-03-151-6/+48
| | | | | | | | | 2002-03-15 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_colormap_alloc_color): new function to allocate colours. (_wrap_gdk_color_alloc): new wrapper that shows a deprecation warning, and calls alloc_color.
* get rid of g_thread_init() call -- this occurs in gobjectmodule now.James Henstridge2002-01-071-7/+5
| | | | | | | | | | | | 2002-01-07 James Henstridge <james@daa.com.au> * gtk/gtkmodule.c (init_gtk): get rid of g_thread_init() call -- this occurs in gobjectmodule now. * gtk/gdk.override (pygdk_unblock_threads): give the function the right name (duh). * configure.in (AM_PATH_GLIB_2_0): add $extra_mods
* add overriden implementation that allows threads while waiting, so someJames Henstridge2002-01-071-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-07 James Henstridge <james@daa.com.au> * gtk/gdk.override (_wrap_gdk_threads_enter): add overriden implementation that allows threads while waiting, so some other thread has a chance to give up the gdk lock. * gtk/gtkmodule.c (functions): remove stuff. * gtk/pygtk-private.h: remove definitions here as well. * gtk/pygtk.h (_PyGtk_FunctionStruct): remove destroy notify and thread block stuff. * gtk/gtkobject-support.c: remove pygtk_destroy_notify. * gtk/gtk.override (pygtk_tree_foreach_marshal): move this function here from gtkobject-support.c, and don't bother blocking threads. (_wrap_gtk_tree_selection_selected_foreach): same here -- don't need to unblock threads. (pygtk_tree_selection_marshal): move this function here from gtkobject-support.c. Convert to use pyg_block_threads. (_wrap_gtk_dialog_run): add overriden implementation that unblocks threads. (_wrap_gtk_main): use pyg_block_threads (_wrap_gtk_main_iteration): same. (_wrap_gtk_item_factory_create_items): same here. (_wrap_gtk_menu_popup): same here. (_wrap_gtk_clist_set_row_data): use pyg_destroy_notify (_wrap_gtk_timeout_add): same here. (_wrap_gtk_idle_add): same here. (_wrap_gtk_quit_add): same here. (_wrap_gtk_input_add_full): same here. (_wrap_gtk_ctree_node_set_row_data): same here. * gtk/gtkobject-support.c: remove PyGTK_BLOCK_THREADS and PyGTK_UNBLOCK_THREADS macros. (pygtk_destroy_notify): use pyg_block_threads. (pygtk_custom_destroy_notify): same. (pygtk_handler_marshal): same. (pygtk_input_marshal): same. * gtk/gdk.override (_wrap_gdk_threads_init): register gdk lock based recursive threads block/unblock functions. If threading was disabled at compile time, then this function will error out. * gtk/gdk.defs (threads_enter, threads_leave, threads_leave): add functions. * gobjectmodule.c (functions): add destroy_notify here as well. * pygobject.h: add destroy_notify to the PyGObject_Functions vtable.
* split it get_varlist into get_varlist and get_kwlist to avoid unusedMatt Wilson2001-12-051-32/+16
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-05 Matt Wilson <msw@redhat.com> * codegen/argtypes.py (WrapperInfo): split it get_varlist into get_varlist and get_kwlist to avoid unused kwlists when generating noarg functions. * codegen/codegen.py (write_boxed, write_functions, write_class, write_interface): check to see if override function wants no args, use METH_NOARGS if so. Also get the method flags from the various function writers so they can ask to have noargs placed in their flags (write_function, write_method, write_boxed_method): write out the parse args and keywords only if there are parameters to parse. Return METH_NOARGS if we don't accept arguments, METH_VARARGS|METH_KEYWORDS otherwise. * codegen/override.py (Overrides.is_overriden): keep a dictionary of overrides that have the 'noargs' key in them. * gtk/gtkgl.override, gtk/gtk.override, gtk/gdk.override): removed argument parsing from functions/methods that take no arguments, mark them as noarg
* use new forward search API with flags enum in CVS.Matt Wilson2001-10-231-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-23 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_text_iter_forward_search): use new forward search API with flags enum in CVS. (_wrap_gtk_text_buffer_create_tag): likewise. (_wrap_gtk_selection_data_set): likewise. (_wrap_gtk_selection_add_targets): likewise. * gtk/pygtk-private.h (pygdk_atom_from_pyobject): added declaration. * gtk/gtk.defs (GtkTextIter.forward_search): use new flags enum (GtkTextIter.backward_search): likewise. * gtk/gdk.override (_wrap_gdk_gc_new_with_values): s/GPOINTER_TO_INT/GDK_POINTER_TO_ATOM/ (_wrap_gdk_property_get): use pygdk_atom_from_pyobject (_wrap_gdk_property_change): likewise. * codegen/argtypes.py (AtomArg.write_param): use pygdk_atom_from_pyobject when getting atom args * gtk/gtk-types.defs (TextSearchFlags): added new enum. * gtk/gtk-types.c (pygdk_atom_from_pyobject): implemented a function to get a GdkAtom from a Python object (PyGdkWindow_PropertyGet): use pygdk_atom_from_pyobject to get atoms from args, not this two-try ParseTuple. (PyGdkWindow_PropertyChange): likewise. (PyGdkWindow_PropertyDelete): likewise. * gtk/gdk-types.defs (Selection): removed, no longer an enum (Target): Likewise. (SelectionType): Likewise. 2001-10-22 Matt Wilson <msw@redhat.com> * gtk/gtk-types.c (pygdk_atom_number): remove numeric bits, GdkAtom is now opaque. * gtk/gtk.defs (GtkTreeModelSort.set_model): removed, is static now. (GtkTreeModelSort.convert_path): rename to GtkTreeMOdelSort.convert_path_to_child_path
* comment out, as it is only for use by engines.James Henstridge2001-10-081-43/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-08 James Henstridge <james@daa.com.au> * pango.defs (pango_font_metrics_new): comment out, as it is only for use by engines. * gtk/libglade.override: same here. * gtk/gdk.override: same here. * gtk/gtk.override: use import section here. * pango.override: use the new import stuff to get the reference to the GObject type. * codegen/codegen.py (write_source): write out code based on the import statements in the overrides file. Most modules have some code like this, and this helps reduce the boilerplate code that needs to be entered in. * codegen/override.py (Overrides.get_imports): add handlers for "import" sections of the overrides file, which are used to get references to the types in other modules.
* Added.Johan Dahlin2001-10-021-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-02 Johan Dahlin <zilch.am@home.se> * gtk/gdk.override (_wrap_gdk_color_parse): Added. * gtk/gtk.override (_wrap_gtk_label_get_selection_bounds): (_wrap_gtk_label_get_layout_offsets): (_wrap_gtk_button_box_get_child_size): (_wrap_gtk_button_box_get_child_ipadding): Added. * gtk/gtk.defs GtkAccelGroup.activate, attach, detach, groups_activate, add, remove: s/GtkObject/GObject/ (gtk_adjustment_new) (GtkAdjustment.clamp_page): s/gfloat/gdouble/ (GtkAdjustment.get_value): Added (GtkBin.get_child): Added (GtkBox.get_homogeneous): Added (GtkCellRenderer.event): Removed (GtkCellRenderer.activate): Added (GtkCellRenderer.start_editing): Added (GtkCellRenderer.set_fixed_size): Added (GtkCellRenderer.get_fixed_size): Added (GtkCheckMenuItem.get_activate): Added (gtk_color_selection_get_type): Added (gtk_color_selection_new): Added Removed old functions from gtkbindings.h.
* use pyg_type_from_object instead. Based on patch from Elliot.James Henstridge2001-09-281-53/+61
| | | | | | | | | | | | 2001-09-29 James Henstridge <james@daa.com.au> * gtk/pygtktreemodel.c (pygtk_tree_model_get_column_type): use pyg_type_from_object instead. Based on patch from Elliot. * gtk/gtk.override (_wrap_gtk_selection_data__get_data): convert getter to a function to match codegen changes. * : merge in python22-branch (see changelog entries below).
* implemented GdkPixbuf.render_pixmap_and_mask.Matt Wilson2001-09-251-0/+39
| | | | | | | | | | | | | | | | 2001-09-24 Matt Wilson <msw@redhat.com> * gtk/gdk.override (_wrap_gdk_pixbuf_render_pixmap_and_mask): implemented GdkPixbuf.render_pixmap_and_mask. * gtk/gdk.defs (GdkPixbuf.render_pixmap_and_mask): set alpha_threshold default to 127 * gtk/gtk.override (ignore): added gtk_entry_new to the big list of ignores. * gtk/gtk.defs (gtk_entry_new_with_max_length): bound (GtkCList.set_pixmap): default mask to NULL