menu: add F11 accelerator for fullscreen

This commit is contained in:
Stefan Sauer 2010-12-21 13:55:02 +02:00
parent e7144d27b5
commit 571b504be4

View file

@ -89,13 +89,19 @@ public class MediaInfo.App : Window
item.activate.connect (Gtk.main_quit);
item = new MenuItem.with_label (_("View"));
//item.set_accel_path ("<GstMi-Main>/MainMenu/View");
menu_bar.append (item);
sub_menu = new Menu ();
item.set_submenu (sub_menu);
// TODO: need F11 accelerator
CheckMenuItem citem = new CheckMenuItem.with_label (_("Full Screen"));
// see http://bugzilla.gnome.org/show_bug.cgi?id=551184
// FIXME: we're also not getting a proper accelerator shown in the menu item
citem.add_accelerator("activate", accel_group, 0xffc8, 0, 0);
//citem.set_accel_path ("<GstMi-Main>/MainMenu/View/FullScreen");
//AccelMap.add_entry ("<GstMi-Main>/MainMenu/View/FullScreen", 0xffc8, 0);
sub_menu.append (citem);
citem.toggled.connect (on_fullscreen_toggled);