elementaryart team mailing list archive
-
elementaryart team
-
Mailing list archive
-
Message #02053
[Merge] lp:~voluntatefaber/granite/stock-menu into lp:granite
Andrea Basso has proposed merging lp:~voluntatefaber/granite/stock-menu into lp:granite.
Requested reviews:
elementary Pantheon team (elementary-pantheon)
For more details, see:
https://code.launchpad.net/~voluntatefaber/granite/stock-menu/+merge/105555
--
https://code.launchpad.net/~voluntatefaber/granite/stock-menu/+merge/105555
Your team elementaryart (old) is subscribed to branch lp:granite.
=== modified file 'lib/Widgets/ContractorMenu.vala'
--- lib/Widgets/ContractorMenu.vala 2012-04-10 19:44:48 +0000
+++ lib/Widgets/ContractorMenu.vala 2012-05-12 12:44:23 +0000
@@ -32,9 +32,10 @@
load_items (filename, mime);
}
- public void add_item (string name, string icon_name, int position, ContractCallback method) {
+ public void add_item (string name, string icon_name, int position, ContractCallback method, bool use_stock = true) {
var item = new Gtk.ImageMenuItem ();
item.set_always_show_image (true);
+ item.set_use_stock (use_stock);
var image = new Gtk.Image.from_icon_name (icon_name, Gtk.IconSize.MENU);
item.set_label (name);
item.set_image (image);
Follow ups