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 318407 - missing lookup_entry() method for Gtk::AccelMap
missing lookup_entry() method for Gtk::AccelMap
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2005-10-10 01:46 UTC by Paul Davis
Modified: 2005-11-30 09:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul Davis 2005-10-10 01:46:13 UTC
Distribution/Version: FC(n)

read the GTK+ documentation, note presence of gtk_accel_map_lookup_entry().

then read the gtkmm header file and source file for accelmap. the lookup_entry()
method is missing.
Comment 1 Paul Davis 2005-10-10 02:13:39 UTC
this is an implementation of the function:

bool lookup_entry (const Glib::ustring accel_path, Gtk::AccelKey& key)
{
	GtkAccelKey gkey;
	bool known = gtk_accel_map_lookup_entry (accel_path.c_str(), &gkey);
	
	if (known) {
		key = AccelKey (gkey.accel_key, Gdk::ModifierType (gkey.accel_mods));
	} else {
		key = AccelKey (GDK_VoidSymbol, Gdk::ModifierType (0));
	}

	return known;
}
Comment 2 Murray Cumming 2005-11-10 08:11:10 UTC
Yeah, I can't find an equivalent for this. I'll add it soon. Thanks. I prefer to
have actual patches, though this is 99% there.
Comment 3 Murray Cumming 2005-11-30 09:53:14 UTC
Done in HEAD in cvs. Thanks.