mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
menu: add F11 accelerator for fullscreen
This commit is contained in:
parent
e7144d27b5
commit
571b504be4
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue