diff options
author | Ernestas Kulik <ernestask@src.gnome.org> | 2016-06-09 12:12:38 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@src.gnome.org> | 2016-06-24 20:58:31 +0300 |
commit | 60e487cf2d7bf67dbad5cf17f3a00d53c779887a (patch) | |
tree | 3f9355f4e79548f185098f297712cf8fc2679574 /src | |
parent | b8e97788cd8ce13004fc2999304cfb15dcb5cf91 (diff) | |
download | nautilus-60e487cf2d7bf67dbad5cf17f3a00d53c779887a.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | 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 f55d9b8d8..ed41d7cf1 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 */ |