[nautilus] files-view: add ctrl-= as "zoom in" accelerator



commit 60e487cf2d7bf67dbad5cf17f3a00d53c779887a
Author: Ernestas Kulik <ernestask src gnome org>
Date:   Thu Jun 9 12:12:38 2016 +0300

    files-view: add ctrl-= as "zoom in" accelerator
    
    Both ctrl-= and ctrl-+ are commonly used for zooming in for
    consistency, as some keyboard layouts require pressing another modifier
    to access the plus symbol. This commit adds ctrl-= as another
    accelerator for zooming in.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763948

 src/nautilus-files-view.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index f55d9b8..ed41d7c 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -8129,6 +8129,11 @@ nautilus_files_view_init (NautilusFilesView *view)
                 "<alt>Return",
                 NULL
         };
+        const gchar *zoom_in_accels[] = {
+                "<control>equal",
+                "<control>plus",
+                NULL
+        };
 
         nautilus_profile_start (NULL);
 
@@ -8295,7 +8300,8 @@ nautilus_files_view_init (NautilusFilesView *view)
         app = g_application_get_default ();
 
         /* Toolbar menu */
-        nautilus_application_add_accelerator (app, "view.zoom-in", "<control>plus");
+        gtk_application_set_accels_for_action (GTK_APPLICATION (app),
+                                               "view.zoom-in", zoom_in_accels);
         nautilus_application_add_accelerator (app, "view.zoom-out", "<control>minus");
         nautilus_application_add_accelerator (app, "view.show-hidden-files", "<control>h");
         /* Background menu */


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