After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337011 - Add more gtk.accel_map functions
Add more gtk.accel_map functions
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gtk
2.8.x
Other All
: Normal enhancement
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-03 10:28 UTC by Sebastian Pölsterl
Modified: 2006-07-13 22:55 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Sebastian Pölsterl 2006-04-03 10:28:13 UTC
Hi!

I just wondered why some functions in conjunction with accelerator maps are missing.

These functions are:
gtk_accel_map_foreach
gtk_accel_map_foreach_unfiltered
gtk_accel_map_get

Source: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Accelerator-Maps.html

Would be very nice, if you add those functions in the next release.
Comment 1 Gustavo Carneiro 2006-07-13 17:45:51 UTC
   GtkAccelMap *gtk_accel_map_get      (void);

This function is useless; the returned object is opaque and not used in any other API.

The other two might be useful...
Comment 2 John Finlay 2006-07-13 20:32:06 UTC
gtk_accel_map_get() would only be useful for connecting to the "changed" signal of the global accel map if a GtkAccelMap type was added to PyGTK.
Comment 3 John Finlay 2006-07-13 22:55:36 UTC
Fixed.
	* gtk/gtk-base-types.defs (AccelMap): Add. #337011 (Sebastian Pölsterl)

	* gtk/gtk.override (_wrap_gtk_accel_map_foreach)
	(_wrap_gtk_accel_map_foreach_unfiltered): Add.
	Fixes #337011 (Sebastian Pölsterl)

Checking in gtk/gtk-base-types.defs;
/cvs/gnome/pygtk/gtk/gtk-base-types.defs,v  <--  gtk-base-types.defs
new revision: 1.2; previous revision: 1.1
done
Checking in gtk/gtk.override;
/cvs/gnome/pygtk/gtk/gtk.override,v  <--  gtk.override
new revision: 1.396; previous revision: 1.395
done