From 571b504be41190a0fef08e63dec7158e54952126 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Tue, 21 Dec 2010 13:55:02 +0200 Subject: [PATCH] menu: add F11 accelerator for fullscreen --- mediainfo/src/mi-app.vala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mediainfo/src/mi-app.vala b/mediainfo/src/mi-app.vala index aa55a23b03..b4fb803763 100644 --- a/mediainfo/src/mi-app.vala +++ b/mediainfo/src/mi-app.vala @@ -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 ("/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 ("/MainMenu/View/FullScreen"); + //AccelMap.add_entry ("/MainMenu/View/FullScreen", 0xffc8, 0); + sub_menu.append (citem); citem.toggled.connect (on_fullscreen_toggled);