aboutsummaryrefslogtreecommitdiff
path: root/lib/main.vala
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2014-02-19 22:59:24 -0500
committerWilliam Hua <william.hua@canonical.com>2014-02-19 22:59:24 -0500
commitb17eaf696186c824d67e37d0e99189511c441545 (patch)
tree1e1e5f11a28055e1d23df7b23a31768d5ee8459f /lib/main.vala
parent0daf660f54acac016d3e58348b2adc6963d141d2 (diff)
downloadayatana-indicator-keyboard-b17eaf696186c824d67e37d0e99189511c441545.tar.gz
ayatana-indicator-keyboard-b17eaf696186c824d67e37d0e99189511c441545.tar.bz2
ayatana-indicator-keyboard-b17eaf696186c824d67e37d0e99189511c441545.zip
Break reference cycle which caused some inconsistent action handling.
Diffstat (limited to 'lib/main.vala')
-rw-r--r--lib/main.vala8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/main.vala b/lib/main.vala
index 8da58813..f140a48d 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -579,6 +579,7 @@ public class Indicator.Keyboard.Service : Object {
[DBus (visible = false)]
private void handle_updated_property (IBus.Property property) {
+ get_ibus_menu ().update_property (property);
}
[DBus (visible = false)]
@@ -712,12 +713,7 @@ public class Indicator.Keyboard.Service : Object {
[DBus (visible = false)]
private void update_ibus_menu (IBus.PropList list) {
- if (ibus_menu != null) {
- var menu = get_ibus_menu ();
- menu.set_properties (list);
- } else {
- get_ibus_menu ();
- }
+ get_ibus_menu ().set_properties (list);
}
[DBus (visible = false)]