Skip to content

Commit

Permalink
Unowned Button in MenuModel
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed May 23, 2015
1 parent 17fd9f8 commit 6a2117c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applets/core/menumodel/menumodel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);}
}
Expand Down

0 comments on commit 6a2117c

Please sign in to comment.