Skip to content

Commit

Permalink
Re-introduce ZoomIn action as an alias for tab-zoom 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kalikiana committed Feb 17, 2019
1 parent 7b2675a commit 0943198
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/browser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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 },
Expand Down Expand Up @@ -491,6 +492,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);
Expand Down

0 comments on commit 0943198

Please sign in to comment.