aboutsummaryrefslogtreecommitdiff
path: root/lib/main.vala
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2014-04-05 11:49:44 +1300
committerWilliam Hua <william.hua@canonical.com>2014-04-05 11:49:44 +1300
commit5db32b0e03f0e143d09d9e700599bf912021cfe0 (patch)
tree6777c774e0977cc3ba7cd5e3883135b246db461b /lib/main.vala
parent969e5b55bebc4507d694b0075667c36850ea7025 (diff)
parenta42d079c7de46c6e2064bcceda2b7878879ac721 (diff)
downloadayatana-indicator-keyboard-5db32b0e03f0e143d09d9e700599bf912021cfe0.tar.gz
ayatana-indicator-keyboard-5db32b0e03f0e143d09d9e700599bf912021cfe0.tar.bz2
ayatana-indicator-keyboard-5db32b0e03f0e143d09d9e700599bf912021cfe0.zip
Merge trunk.
Diffstat (limited to 'lib/main.vala')
-rw-r--r--lib/main.vala17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/main.vala b/lib/main.vala
index bcf23209..8279b561 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -150,6 +150,23 @@ public class Indicator.Keyboard.Service : Object {
if (ibus == null) {
IBus.init ();
ibus = new IBus.Bus ();
+ ((!) ibus).connected.connect (() => {
+ if (desktop_menu != null) {
+ get_desktop_menu ().set_sources (get_sources ());
+ }
+
+ if (desktop_greeter_menu != null) {
+ get_desktop_greeter_menu ().set_sources (get_sources ());
+ }
+
+ if (desktop_lockscreen_menu != null) {
+ get_desktop_lockscreen_menu ().set_sources (get_sources ());
+ }
+
+ if (indicator_action != null) {
+ update_indicator_action ();
+ }
+ });
}
return (!) ibus;