[glib/wip/gmenu: 38/59] Fix the dbus action group query_action implementation



commit 614b48e6fa7a05385bd73e3cab7eca9d1e3877ea
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 28 18:12:17 2011 -0500

    Fix the dbus action group query_action implementation

 gio/gdbusactiongroup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbusactiongroup.c b/gio/gdbusactiongroup.c
index b0e1116..24c5fad 100644
--- a/gio/gdbusactiongroup.c
+++ b/gio/gdbusactiongroup.c
@@ -184,7 +184,7 @@ g_dbus_action_group_query_action (GActionGroup        *g_group,
     *state_hint = NULL;
 
   if (state)
-    *state = g_variant_ref (info->state);
+    *state = info->state ? g_variant_ref (info->state) : NULL;
 
   return TRUE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]