[glib/wip/actions: 8/12] Fix error in GActionGroup exporter XML blob
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/actions: 8/12] Fix error in GActionGroup exporter XML blob
- Date: Mon, 26 Sep 2011 23:45:18 +0000 (UTC)
commit 9ecf2bf43ef9740398213d36316ec38d05b8fbeb
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jun 30 11:32:45 2011 +0100
Fix error in GActionGroup exporter XML blob
and add some debug output for future errors
gio/gactiongroupexporter.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gio/gactiongroupexporter.c b/gio/gactiongroupexporter.c
index d5828bb..0bdc5a8 100644
--- a/gio/gactiongroupexporter.c
+++ b/gio/gactiongroupexporter.c
@@ -85,11 +85,11 @@ const char org_gtk_Actions_xml[] =
"<node>"
" <interface name='org.gtk.Actions'>"
" <method name='List'>"
- " <arg type='as' name='list' direction='out'>"
+ " <arg type='as' name='list' direction='out'/>"
" </method>"
" <method name='Describe'>"
- " <arg type='s' name='action_name' direction='in'>"
- " <arg type='(bgav)' name='description' direction='out'>"
+ " <arg type='s' name='action_name' direction='in'/>"
+ " <arg type='(bgav)' name='description' direction='out'/>"
" </method>"
" <method name='DescribeAll'>"
" <arg type='a{s(bgav)}' name='descriptions' direction='out'/>"
@@ -483,9 +483,12 @@ g_action_group_exporter_export (GDBusConnection *connection,
if G_UNLIKELY (org_gtk_Actions == NULL)
{
+ GError *error = NULL;
GDBusNodeInfo *info;
- info = g_dbus_node_info_new_for_xml (org_gtk_Actions_xml, NULL);
+ info = g_dbus_node_info_new_for_xml (org_gtk_Actions_xml, &error);
+ if G_UNLIKELY (info == NULL)
+ g_error ("%s", error->message);
org_gtk_Actions = g_dbus_node_info_lookup_interface (info, "org.gtk.Actions");
g_assert (org_gtk_Actions != NULL);
g_dbus_interface_info_ref (org_gtk_Actions);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]