diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-21 13:02:41 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-21 13:02:41 -0500 |
commit | 13c8aef0bb7cb9b3bb4b69fda943cb92fe21f0ea (patch) | |
tree | 37a79c4a5c78d07952db941a0582cc8e16d3021a /bindings/vala/examples | |
parent | 84d8aaefa440914810a94a6e19371b2b1fff8fe6 (diff) | |
download | libayatana-appindicator-13c8aef0bb7cb9b3bb4b69fda943cb92fe21f0ea.tar.gz libayatana-appindicator-13c8aef0bb7cb9b3bb4b69fda943cb92fe21f0ea.tar.bz2 libayatana-appindicator-13c8aef0bb7cb9b3bb4b69fda943cb92fe21f0ea.zip |
The vala examples were written before GMenu, so add explict namespace use here to avoid valac errors caused by namespace ambiguity between glib and gtk (ie, use 'new Gtk.Menu' instead of 'new Menu')
Diffstat (limited to 'bindings/vala/examples')
-rw-r--r-- | bindings/vala/examples/indicator-example.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/vala/examples/indicator-example.vala b/bindings/vala/examples/indicator-example.vala index 8feb4ba..764009f 100644 --- a/bindings/vala/examples/indicator-example.vala +++ b/bindings/vala/examples/indicator-example.vala @@ -39,16 +39,16 @@ public class IndicatorExample { indicator.set_status(IndicatorStatus.ACTIVE); indicator.set_attention_icon("indicator-messages-new"); - var menu = new Menu(); + var menu = new Gtk.Menu(); - var item = new MenuItem.with_label("Foo"); + var item = new Gtk.MenuItem.with_label("Foo"); item.activate.connect(() => { indicator.set_status(IndicatorStatus.ATTENTION); }); item.show(); menu.append(item); - var bar = item = new MenuItem.with_label("Bar"); + var bar = item = new Gtk.MenuItem.with_label("Bar"); item.show(); item.activate.connect(() => { indicator.set_status(IndicatorStatus.ACTIVE); |