diff options
-rw-r--r-- | core/browser.vala | 5 |
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); |