GtkAccelGroup and [Tab]



Hi,

I have a problem getting accelerator that use [Tab], I have such portion
of code :

/---\
GtkAccelGroup *accgroup = gtk_accel_group_new();

GClosure *accgroupclosure =
g_cclosure_new(G_CALLBACK(on_press_tab),NULL,NULL);

window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

gtk_accel_group_connect(accgroup, GDK_Tab,
GDK_CONTROL_MASK,GTK_ACCEL_VISIBLE, accgroupclosure);

gtk_window_add_accel_group(GTK_WINDOW(window),accgroup);
\---/

and it doesn't work, "on_press_tab" is never invoked.
If I changfe to GDK_s for example, it's work. What should I do that I
miss ?



Best Wishes,
Yanjing Guo



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