Wireshark mailing list archives
Re: GTK question
From: Stephen Fisher <steve () stephen-fisher com>
Date: Thu, 30 Sep 2010 15:03:31 -0600
On Thu, Sep 30, 2010 at 10:39:46PM +0200, Sake Blok wrote:
I'm implementing something new for which I would to use "<ctrl>+[" and "<ctrl>+]" as accelerator keys. But I can't figure out what to put in gtk/menus.c.
After digging through the GTK documentation, it looks like the character name needs to be used and not the character itself. The include file gdk/gdkkeysyms.h is generated from the X.org distribution and it's called "bracketleft" in there, so you would use <bracketleft> presumabily. How I found it: http://git.gnome.org/browse/gtk+/tree/gdk/gdkkeysyms.h http://library.gnome.org/devel/gdk/stable/gdk-Keyboard-Handling.html#gdk-keyval-from-name http://library.gnome.org/devel/gtk/stable/gtk-Keyboard-Accelerators.html#gtk-accelerator-parse http://library.gnome.org/devel/gtk/stable/GtkActionGroup.html#gtk-action-group-add-action-with-accel ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- GTK question Sake Blok (Sep 30)
- Re: GTK question Stephen Fisher (Sep 30)
- Re: GTK question Sake Blok (Sep 30)
- Re: GTK question Stephen Fisher (Sep 30)