diff options
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | lib/main.vala | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 072a21a2..520ba1ba 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-keyboard (0.0.0-0ubuntu3) raring; urgency=low + + * Use dictionary action state. + + -- William Hua <william.hua@canonical.com> Fri, 26 Apr 2013 15:03:12 -0400 + indicator-keyboard (0.0.0-0ubuntu2) raring; urgency=low * GBytesIcon support. 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 (); } |