aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-11 12:04:06 -0500
committerTed Gould <ted@gould.cx>2011-08-11 12:04:06 -0500
commit6a05f53d2ad9f0f54fea7be123c94d1e0fad450a (patch)
treede7b2d919432599ca4d1f185636dbccae6aec16a /bindings/mono
parent1a483429602788950a12bfa07cb98d600b8a736f (diff)
parent8c352cdc40eced52767ddca7036fa7b76bf42a6b (diff)
downloadlibayatana-appindicator-6a05f53d2ad9f0f54fea7be123c94d1e0fad450a.tar.gz
libayatana-appindicator-6a05f53d2ad9f0f54fea7be123c94d1e0fad450a.tar.bz2
libayatana-appindicator-6a05f53d2ad9f0f54fea7be123c94d1e0fad450a.zip
* New upstream release.
* Secondary activate support * Better GIR file annotations
Diffstat (limited to 'bindings/mono')
-rw-r--r--bindings/mono/examples/IndicatorExample.cs9
-rw-r--r--bindings/mono/libappindicator-api.raw9
2 files changed, 17 insertions, 1 deletions
diff --git a/bindings/mono/examples/IndicatorExample.cs b/bindings/mono/examples/IndicatorExample.cs
index c18a665..7413c54 100644
--- a/bindings/mono/examples/IndicatorExample.cs
+++ b/bindings/mono/examples/IndicatorExample.cs
@@ -41,12 +41,19 @@ public class IndicatorExample
indicator.Status = Status.Attention;
Menu menu = new Menu ();
- menu.Append (new MenuItem ("Foo"));
+ var foo = new MenuItem ("Foo");
+ menu.Append (foo);
+ foo.Activated += delegate {
+ System.Console.WriteLine ("Foo item has been activated");
+ };
+
menu.Append (new MenuItem ("Bar"));
indicator.Menu = menu;
indicator.Menu.ShowAll ();
+ indicator.SecondaryActivateTarget = foo;
+
win.ShowAll ();
Application.Run ();
diff --git a/bindings/mono/libappindicator-api.raw b/bindings/mono/libappindicator-api.raw
index 37ddae3..561b7a2 100644
--- a/bindings/mono/libappindicator-api.raw
+++ b/bindings/mono/libappindicator-api.raw
@@ -143,6 +143,9 @@
<method name="GetOrderingIndex" cname="app_indicator_get_ordering_index">
<return-type type="guint32" />
</method>
+ <method name="GetSecondaryActivateTarget" cname="app_indicator_get_secondary_activate_target">
+ <return-type type="GtkWidget*" />
+ </method>
<method name="GetStatus" cname="app_indicator_get_status">
<return-type type="AppIndicatorStatus" />
</method>
@@ -215,6 +218,12 @@
<parameter type="guint32" name="ordering_index" />
</parameters>
</method>
+ <method name="SetSecondaryActivateTarget" cname="app_indicator_set_secondary_activate_target">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GtkWidget*" name="menuitem" />
+ </parameters>
+ </method>
<method name="SetStatus" cname="app_indicator_set_status">
<return-type type="void" />
<parameters>