From 6a2117cdf5b7be4e11f3b601d8c9af73a5f6846d Mon Sep 17 00:00:00 2001 From: Konstantin Pugin Date: Sat, 23 May 2015 17:37:13 +0600 Subject: [PATCH] Unowned Button in MenuModel --- applets/core/menumodel/menumodel.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applets/core/menumodel/menumodel.vala b/applets/core/menumodel/menumodel.vala index 3ec4bc31..43ef8208 100644 --- a/applets/core/menumodel/menumodel.vala +++ b/applets/core/menumodel/menumodel.vala @@ -125,14 +125,14 @@ public class Menu: Applet, AppletConfigurable, AppletMenu } else if (key == "caption" && !bar) { - var btn = button as Button; + unowned Button btn = button as Button; btn.label = caption; } else if (key == "icon" && !bar) { try { - var btn = button as Button; + unowned Button btn = button as Button; (btn.image as Gtk.Image).gicon = Icon.new_for_string(icon); } catch (Error e){stderr.printf("%s\n",e.message);} }