summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2019-03-06 01:27:11 +0100
committerGitHub <noreply@github.com>2019-03-06 01:27:11 +0100
commitcebfef08c3be5a041890245ee0af11f1f3d41a77 (patch)
tree159349129d3b93fc9d53f89944ec7e92904f9668
parent18299459900ff31bccfd3300ca738b54727773ed (diff)
downloadmidori-git-cebfef08c3be5a041890245ee0af11f1f3d41a77.tar.gz
Ensure menu models are updated when creating the browser (#288)
Fixes: #286
-rw-r--r--core/browser.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/browser.vala b/core/browser.vala
index 62e98e1c..f0c4e254 100644
--- a/core/browser.vala
+++ b/core/browser.vala
@@ -159,7 +159,7 @@ namespace Midori {
// Note: set_icon with ThemedIcon.with_default_fallbacks doesn't work here
zoom_out.set_attribute_value ("verb-icon", "zoom-out-symbolic");
zoom_menu.append_item (zoom_out);
- var zoom_reset = new MenuItem ("%.f%%".printf(100 * tab.zoom_level), "win.tab-zoom(1.0)");
+ var zoom_reset = new MenuItem ("%.f%%".printf(100 * zoom_level), "win.tab-zoom(1.0)");
zoom_menu.append_item (zoom_reset);
var zoom_in = new MenuItem (_("Increase the zoom level"), "win.tab-zoom(0.1)");
// Note: set_icon with ThemedIcon.with_default_fallbacks doesn't work here
@@ -177,6 +177,7 @@ namespace Midori {
app_menu.menu_model = app_menu_model;
navigationbar.menubutton.menu_model = page_menu_model;
});
+ notify_property ("is-small");
notify["zoom-level"].connect (() => {
if (zoom_menu.get_n_items () > 0) {