Window Managers Key Combinations and Accelerators

2009-12-09 Thread dhk
How can I prevent all or some window manager key combinations in my gtk
application?


To prevent the default F10 behavior I already use the following.
  GtkSettings *gtk_settings;
  gtk_settings=gtk_settings_get_for_screen(gdk_screen_get_default());
  g_object_set(gtk_settings, gtk-menu-bar-accel, NULL, NULL);

The gtk-menu-bar-accel string was something given from other
questions.  Is there a list of other strings I can use in this place?

Two things I would like to do is override the default Tab key press
behavior and the Ctrl-Alt-Del behavior.

I'm using the GtkUIManager to set accelerator keys, but some keys like
the Tab key don't seem to work.  I figured in my GtkActionEntry array I
could use tab, but that doesn't have any affect.  I'm guessing it's
the Window Manager overriding it.  Is this correct or is it something
else?  Also, is there a place I can find the mapping of the keys to
their string value?

Thanks,

dhk
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Window Managers Key Combinations and Accelerators

2009-12-09 Thread Liam R E Quin
On Wed, 2009-12-09 at 08:10 -0500, dhk wrote:

 Two things I would like to do is override the default Tab key press
 behavior and the Ctrl-Alt-Del behavior.

Tab is usually used by gtk+ (not the window manager) to move between
items e.g. in a dialogue box. Shift-tab does the same but in the
opposite direction.

Gnome-terminal overrides this, so you could look there.

Control-alt-del is interpreted (on Linux at least) by the X server,
depending on the value of the DontZap option in /etc/X11/xorg.conf,
and I think cannot easily be overridden by an application.

Liam




-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list