elementaryart team mailing list archive
-
elementaryart team
-
Mailing list archive
-
Message #02054
[Merge] lp:~voluntatefaber/granite/item-activated-signal into lp:granite
Andrea Basso has proposed merging lp:~voluntatefaber/granite/item-activated-signal into lp:granite.
Requested reviews:
elementary Pantheon team (elementary-pantheon)
For more details, see:
https://code.launchpad.net/~voluntatefaber/granite/item-activated-signal/+merge/105556
--
https://code.launchpad.net/~voluntatefaber/granite/item-activated-signal/+merge/105556
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:45:28 +0000
@@ -26,6 +26,8 @@
private string filepath;
private string filemime;
+ public signal void contract_activated (string contract_name);
+
public ContractorMenu (string filename, string mime) {
filepath = filename;
filemime = mime;
@@ -38,7 +40,10 @@
var image = new Gtk.Image.from_icon_name (icon_name, Gtk.IconSize.MENU);
item.set_label (name);
item.set_image (image);
- item.activate.connect (()=>{method();});
+ item.activate.connect (()=> {
+ contract_activated (name);
+ method();
+ });
insert(item, position);
item.show ();
}
Follow ups