[Glade-users] Accelerators with glade-generated menus
- From: thomas.klose at hiperscan.com (Thomas Klose)
- Subject: [Glade-users] Accelerators with glade-generated menus
- Date: Fri, 08 May 2009 17:20:31 +0200
I found the answer by myself:
Glade.XML.EnsureAccel() returns the internally used accelerator group.
Now it works perfectly.
However, this finding was just a coincidence. The Mono documentation is
a real mess :(
Thanks anyway, Thomas
Am Freitag, den 08.05.2009, 16:48 +0200 schrieb Thomas Klose:
I'm using Glade 3.4.5 to create a user interface, including a menu. The
ui itself is created/used by a program running in Mono 2.0, using Gtk#
2.12.0.
Everything works great but I don't get the menu shortcuts to work.
Standard shortcuts are visible in the menu if I use stock items. For
example Ctlr-S for "gtk-save". However, this shortcuts don't work.
Since the program has to be platform independent and should also run
with .net, I use the class Gtk.Window (Toplevel) for the main window (no
Gnome stuff). If I would create a menu manually, I'd have to add an
accelerator group to make shortcuts work, using
Gtk.Window.AddAccelGroup().
So are my questions: How do I get the accelerator group, Glade is using
internally to build the menu? Where can I find information about using
accelerators with Glade?
I could also use a global key sniffer or implement the menu manually.
But I would rather do it with Glade :)
Thanks, Thomas
_______________________________________________
Glade-users maillist - Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]