aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala/examples/indicator-example.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-21 16:25:18 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-21 16:25:18 -0500
commit3aa2827ef25c9695a9b32d9976fe2dac59123f62 (patch)
tree4878c3285b5654b40349917efade1d15cb841a0a /bindings/vala/examples/indicator-example.vala
parent03fa0726e8a97ef12f56c470dfa2b20ac72d0940 (diff)
parent812ded8224978f47453e53eb63fc11c754bac0c6 (diff)
downloadlibayatana-appindicator-3aa2827ef25c9695a9b32d9976fe2dac59123f62.tar.gz
libayatana-appindicator-3aa2827ef25c9695a9b32d9976fe2dac59123f62.tar.bz2
libayatana-appindicator-3aa2827ef25c9695a9b32d9976fe2dac59123f62.zip
* New upstream release.
* Fix a Coverity PW.BRANCH_PAST_INITIALIZATION error (LP: #957471) * Fix FTB bug from ambiguity between Glib.Menu and Gtk.Menu in the Vala code
Diffstat (limited to 'bindings/vala/examples/indicator-example.vala')
-rw-r--r--bindings/vala/examples/indicator-example.vala6
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);