diff options
author | William Hua <william.hua@canonical.com> | 2013-04-26 15:04:21 -0400 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2013-04-26 15:04:21 -0400 |
commit | 2351bfaad6b980a54eef83ff01a6f14a9eddeea4 (patch) | |
tree | f2db2ec3a7acb9e588f86f1e6c031c04b6a5a429 /lib/main.vala | |
parent | b22f171970ab21c85a0b59d4c93130cbe619d9e1 (diff) | |
download | ayatana-indicator-keyboard-2351bfaad6b980a54eef83ff01a6f14a9eddeea4.tar.gz ayatana-indicator-keyboard-2351bfaad6b980a54eef83ff01a6f14a9eddeea4.tar.bz2 ayatana-indicator-keyboard-2351bfaad6b980a54eef83ff01a6f14a9eddeea4.zip |
Use dictionary action state.
Diffstat (limited to 'lib/main.vala')
-rw-r--r-- | lib/main.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/main.vala b/lib/main.vala index aa1bb8e3..c00a36da 100644 --- a/lib/main.vala +++ b/lib/main.vala @@ -147,7 +147,7 @@ public class Indicator.Keyboard.Service : Object { var icon = get_icon (current); if (icon != null) { - var state = new Variant.parsed ("('', %s, '', true)", icon.to_string ()); + var state = new Variant.parsed ("{ 'icon' : %v, 'visible' : <true> }", icon.serialize ()); get_indicator_action ().set_state (state); } } @@ -155,7 +155,7 @@ public class Indicator.Keyboard.Service : Object { [DBus (visible = false)] private SimpleAction get_indicator_action () { if (this.indicator_action == null) { - var state = new Variant.parsed ("('', '', '', true)"); + var state = new Variant.parsed ("{ 'visible' : <true> }"); this.indicator_action = new SimpleAction.stateful ("indicator", null, state); update_indicator_action (); } |