Re: Is there any way to match a key event against key binding rules for GtkTextView class without creating a GtkTextView object?

2009-07-27 Thread Tristan Van Berkom
On Sun, Jul 26, 2009 at 11:21 PM, Zhe Sujames...@gmail.com wrote: Can anybody give me some suggestions about this issue? Im not sure exactly how the keybindings are defined in the theme, but my guess is that you need to derive your custom object from GtkTextView if you want to inherit the

Re: Is there any way to match a key event against key binding rules for GtkTextView class without creating a GtkTextView object?

2009-07-27 Thread Zhe Su
Thanks. I'll try this approach. Regards James Su On Mon, Jul 27, 2009 at 2:28 PM, Tristan Van Berkom t...@gnome.org wrote: On Sun, Jul 26, 2009 at 11:21 PM, Zhe Sujames...@gmail.com wrote: Can anybody give me some suggestions about this issue? Im not sure exactly how the keybindings are

Re: Is there any way to match a key event against key binding rules for GtkTextView class without creating a GtkTextView object?

2009-07-26 Thread Zhe Su
Can anybody give me some suggestions about this issue? On Fri, Jul 24, 2009 at 5:16 PM, Zhe Su james...@gmail.com wrote: Hi, GtkTextView widget can use key binding rules defined in gtkrc file. For example, when Emacs key theme is selected, ctrl-w will be mapped to cut-clipboard signal.

Is there any way to match a key event against key binding rules for GtkTextView class without creating a GtkTextView object?

2009-07-24 Thread Zhe Su
Hi, GtkTextView widget can use key binding rules defined in gtkrc file. For example, when Emacs key theme is selected, ctrl-w will be mapped to cut-clipboard signal. Now, I'm developing a custom widget and want to handle those key bindings supported by GtkTextView. After reading the source code