Hi Again, I had another query in relation to Menu accelerators. I need to add more than one accelerator to the same menu item. Say, CTRL + B, and CTRL + I, both added to the "activate" signal. Now when I press CTRL + B, the activate callback is called, but there seems to be no way for me to know which one of the accelerators was invoked.
Is there a way for me to know this? Can I "catch" accelerators before they result in the "activate" signal? Thanks again, Gaurav On 7/8/05, Daniel Pekelharing <[EMAIL PROTECTED]> wrote: > On Fri, 2005-07-08 at 13:32 +0530, Gaurav Jain wrote: > > Hi, > > > > I'm creating a "pop-up" menu which is shown when I click inside a > > button. I added accelerators to the menu items (CTRL + B), but these > > do not work. If I explicitly pop up the menu and then click on the > > menu item, then the "activate" signal is called for the menu item, but > > not if I use the accelerator keys. > > > > Attached is a sample source code that's not working below. > > > > Please help me in finding out why this problem is coming, and how to > > resolve it. > > > > Thanks, > > Gaurav > > > Hi, > > You need to add the accelerator group to the main window, > like this: > > gtk_window_add_accel_group(GTK_WINDOW(w), accel); > > > Hope this helps.. > -- > Daniel Pekelharing > > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list