From 2351bfaad6b980a54eef83ff01a6f14a9eddeea4 Mon Sep 17 00:00:00 2001 From: William Hua Date: Fri, 26 Apr 2013 15:04:21 -0400 Subject: Use dictionary action state. --- debian/changelog | 6 ++++++ 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 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' : }", 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' : }"); this.indicator_action = new SimpleAction.stateful ("indicator", null, state); update_indicator_action (); } -- cgit v1.2.3