diff options
author | William Hua <william.hua@canonical.com> | 2014-04-03 16:17:27 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-04-03 16:17:27 +0000 |
commit | d23c82e085b23898bc79199d60281fb05047f96a (patch) | |
tree | cc00adce315dfcb9d78502c4f6fde1f5685cc390 | |
parent | d64234b6f86b07bf556a93c91c88738a569bd2d0 (diff) | |
parent | 93ed04c203bdab3d831c1586b7d4222072002577 (diff) | |
download | ayatana-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.vala | 9 |
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; |