aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2014-04-03 16:17:27 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-04-03 16:17:27 +0000
commitd23c82e085b23898bc79199d60281fb05047f96a (patch)
treecc00adce315dfcb9d78502c4f6fde1f5685cc390
parentd64234b6f86b07bf556a93c91c88738a569bd2d0 (diff)
parent93ed04c203bdab3d831c1586b7d4222072002577 (diff)
downloadayatana-indicator-keyboard-d23c82e085b23898bc79199d60281fb05047f96a.tar.gz
ayatana-indicator-keyboard-d23c82e085b23898bc79199d60281fb05047f96a.tar.bz2
ayatana-indicator-keyboard-d23c82e085b23898bc79199d60281fb05047f96a.zip
Refresh the menu and indicator when IBus is connected. Fixes: 1246537
-rw-r--r--lib/main.vala9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/main.vala b/lib/main.vala
index 55c46b02..a54cf904 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -127,6 +127,15 @@ public class Indicator.Keyboard.Service : Object {
if (ibus == null) {
IBus.init ();
ibus = new IBus.Bus ();
+ ((!) ibus).connected.connect (() => {
+ if (sources_menu != null) {
+ update_sources_menu ();
+ }
+
+ if (indicator_action != null) {
+ update_indicator_action ();
+ }
+ });
}
return (!) ibus;