[gedit] [osx] Override fullscreen accelerator



commit c53e53b53c04ceeca8fd3778869334d26b2e7e5d
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Sep 6 08:57:28 2014 +0200

    [osx] Override fullscreen accelerator

 gedit/gedit-app-osx.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-app-osx.c b/gedit/gedit-app-osx.c
index 227a5e2..189be17 100644
--- a/gedit/gedit-app-osx.c
+++ b/gedit/gedit-app-osx.c
@@ -425,6 +425,11 @@ gedit_app_osx_startup (GApplication *application)
                NULL
        };
 
+       const gchar *fullscreen_accels[] = {
+               "<Primary><Control>F",
+               NULL
+       };
+
        G_APPLICATION_CLASS (gedit_app_osx_parent_class)->startup (application);
 
        app_osx = GEDIT_APP_OSX (application);
@@ -443,6 +448,10 @@ gedit_app_osx_startup (GApplication *application)
                                               "app.open",
                                               open_accels);
 
+       gtk_application_set_accels_for_action (GTK_APPLICATION (application),
+                                              "win.fullscreen",
+                                              fullscreen_accels);
+
        gedit_recent_configuration_init_default (&app_osx->priv->recent_config);
 
        app_osx->priv->recent_files_menu = _gedit_app_extend_menu (GEDIT_APP (application),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]