[gnome-flashback] shell: fix value unpacking from gvariantdict
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] shell: fix value unpacking from gvariantdict
- Date: Sun, 29 Mar 2015 20:45:09 +0000 (UTC)
commit dfa665e1ef45ea75d31ed484917acea4a2d67f2e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 29 23:31:15 2015 +0300
shell: fix value unpacking from gvariantdict
gnome-flashback/libshell/flashback-osd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/libshell/flashback-osd.c b/gnome-flashback/libshell/flashback-osd.c
index eec9e18..e60a12b 100644
--- a/gnome-flashback/libshell/flashback-osd.c
+++ b/gnome-flashback/libshell/flashback-osd.c
@@ -112,16 +112,16 @@ flashback_osd_show (FlashbackOsd *osd,
g_variant_dict_init (&dict, params);
- if (!g_variant_dict_lookup (&dict, "icon", "s", &icon_name))
+ if (!g_variant_dict_lookup (&dict, "icon", "&s", &icon_name))
icon_name = NULL;
- if (!g_variant_dict_lookup (&dict, "label", "s", &label))
+ if (!g_variant_dict_lookup (&dict, "label", "&s", &label))
label = NULL;
- if (!g_variant_dict_lookup (&dict, "level", "u", &level))
+ if (!g_variant_dict_lookup (&dict, "level", "i", &level))
level = -1;
- if (!g_variant_dict_lookup (&dict, "monitor", "u", &monitor))
+ if (!g_variant_dict_lookup (&dict, "monitor", "i", &monitor))
monitor = -1;
icon = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]