GtkAccelGroup and [Tab]

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

 



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

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux