Re: Keybindings

2011-10-18 Thread Dong Luo
Please check references for gtk and gdk. I just did that and came with a simple example showing the keyBindings. Please note that it's not tested as I currently don't have gtk installed on my machine. static gboolean keyBindings( GtkWidget *widget,   GdkEvent  *event

Re: Keybindings

2011-10-18 Thread Neil Munro
Thanks, that's gotten me on the right track now. Neil On 18 October 2011 17:04, Dong Luo us...@yahoo.com wrote: Please check references for gtk and gdk. I just did that and came with a simple example showing the keyBindings. Please note that it's not tested as I currently don't have gtk

Re: Keybindings

2011-10-18 Thread Bernhard Schuster
I think this is what you want, though I am not 100% sure: http://developer.gnome.org/gtk3/stable/gtk3-Keyboard-Accelerators.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Keybindings

2011-10-17 Thread Neil Munro
On 17 October 2011 15:54, Dong Luo us...@yahoo.com wrote: Hi, I did not use gtk recently. But I figure you can just let the toplevel widget response to the signal of key-press-event and do what ever Keybindings you want there. Dong Could you show me an example as I have figured out

Keybindings

2011-10-16 Thread Neil Munro
Hi all I want to simply press a keybinding and run a function that shows hidden widgets is this possible and if so, how? It strikes me as something not too difficult, but I am a self taught C programmer so I may simply not know what such a thing would be called. I have already used an

Re: Disable ALL keybindings for a specific widgit? [SOLVED]

2007-06-16 Thread Justin Stallard
to unbind all the keybindings associated with a particular widgit. Is there? What I want to have is this: A GtkEntry that does not respond to Left, Right, Insert, or any other keybindings or key presses so that I can handle them myself as key_press_events. Well, if you connect

Re: Disable ALL keybindings for a specific widgit?

2007-06-15 Thread Eduardo M KALINOWSKI
On 6/14/07, Justin Stallard [EMAIL PROTECTED] wrote: Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular widgit. Is there? What I want to have is this: A GtkEntry

Re: Disable ALL keybindings for a specific widgit?

2007-06-15 Thread Justin Stallard
On 6/15/07, Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: On 6/14/07, Justin Stallard [EMAIL PROTECTED] wrote: Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular

Disable ALL keybindings for a specific widgit?

2007-06-14 Thread Justin Stallard
Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular widgit. Is there? What I want to have is this: A GtkEntry that does not respond to Left, Right, Insert, or any other

Re: Keybindings?!

2006-06-20 Thread blythe2
Check this out: http://www.gtk.org/tutorial/x201.html, connect the right signal and you're on your way. Thank you very much! I was caught up looking through all the keybinding information, which appears on the surface to be what I was looking for. This works perfectly. -Nate

Keybindings?!

2006-06-19 Thread blythe2
Does anyone know of a tutorial (or even documentation with comments) that explains how to connect key presses to functions? The API has a short list of functions, but I'm not having much luck figuring out what to do with them. Any help is appreciated!

Re: Keybindings?!

2006-06-19 Thread Kenneth Østby
Hi. On 6/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anyone know of a tutorial (or even documentation with comments) that explains how to connect key presses to functions? Check this out: http://www.gtk.org/tutorial/x201.html, connect the right signal and you're on your way.

Re: Changing (default) keybindings

2006-05-18 Thread Calum Benson
On Tue, 2006-05-16 at 21:59 +0200, Enrico Tröger wrote: Users of my app asked for changeable keys, so I thought I make all changeable. Now I'm convinced, I make only these changeable, which my app itself defines, and I will let all stock items on their default. gtk+ menu shortcuts (but not

Re: Changing (default) keybindings

2006-05-16 Thread Eduardo M KALINOWSKI
Enrico Tröger wrote: On Sun, 14 May 2006 18:59:35 +0200, Enrico Tröger [EMAIL PROTECTED] wrote: Hi, is there an easy way of changing the default keybindings of stock items? For example in a file menu, a menu item with the stock id gtk-open gets (on my system) CTRL-O. Can this be changed

Changing (default) keybindings

2006-05-14 Thread Enrico Tröger
Hi, is there an easy way of changing the default keybindings of stock items? For example in a file menu, a menu item with the stock id gtk-open gets (on my system) CTRL-O. Can this be changed and if how? I read a bit through the API, but didn't find a way. Thanks. Enrico -- Get my GPG key from