GtkText and specials accelerators



Hello,

I work on a simple text editor, but I need to add more keybindings (à la emacs). I found how to do for add an accelerator. I do it with the "C-y", which paste the clipboard:

I create an accel group, I add an accelerator on the GtkText with the good args and the signal "paste-clipboard". This works correctly.

But I need to add other keybindings, like "C-space" and "C-w". For theses keys, I need to create some functions (mark-set, and cut from mark-set) I created accelerator with personal signal (for example: "mark_set"), and connected this signal with my function, but it doesn't work.

How can I create keybindings for a personal function ?


Thanks.

Pierre-Yann




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]