summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2019-02-21 22:54:45 +0100
committerGitHub <noreply@github.com>2019-02-21 22:54:45 +0100
commit516a0f50e95d09bb565e185924babfc8df49fe4d (patch)
treefa36e3e07dc33a46ff29b68b4033bb3e2db3a353
parentb02a2ad704c88c938400beea584d8c6cefb4bd94 (diff)
downloadmidori-git-516a0f50e95d09bb565e185924babfc8df49fe4d.tar.gz
Re-introduce ZoomIn action as an alias for tab-zoom 0.1 (#265)
Fixes: #261
-rw-r--r--core/browser.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/browser.vala b/core/browser.vala
index 7cc3b111..c098ad13 100644
--- a/core/browser.vala
+++ b/core/browser.vala
@@ -35,6 +35,7 @@ namespace Midori {
{ "goto", goto_activated },
{ "tab-previous", tab_previous_activated },
{ "tab-next", tab_next_activated },
+ { "zoomin", zoom_in_activated },
{ "find", find_activated },
{ "view-source", view_source_activated },
{ "print", print_activated },
@@ -505,6 +506,10 @@ namespace Midori {
tabs.visible_child = (Tab)next;
}
+ void zoom_in_activated () {
+ activate_action ("tab-zoom", 0.1);
+ }
+
void tab_zoom_activated (Action action, Variant? parameter) {
double zoom_level = parameter.get_double ();
tab.zoom_level = zoom_level == 1.0 ? 1.0 : (tab.zoom_level + zoom_level);