From: Matthias Clasen Date: Tue, 29 Nov 2011 00:57:44 +0000 (-0500) Subject: Forgot one interface... X-Git-Tag: 2.31.4~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30580bdca7764525a49899dd56dcdde25a300a21;p=platform%2Fupstream%2Fglib.git Forgot one interface... --- diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c index 553cd4a..9e95e27 100644 --- a/gio/gapplicationimpl-dbus.c +++ b/gio/gapplicationimpl-dbus.c @@ -41,6 +41,7 @@ get_interface (const gchar *name) { static GDBusInterfaceInfo *org_gtk_Application; static GDBusInterfaceInfo *org_gtk_private_CommandLine; + static GDBusInterfaceInfo *org_gtk_Actions; if (org_gtk_Application == NULL) { @@ -73,6 +74,21 @@ get_interface (const gchar *name) " " " " " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " "", &error); if (info == NULL) @@ -86,13 +102,19 @@ get_interface (const gchar *name) g_assert (org_gtk_private_CommandLine != NULL); g_dbus_interface_info_ref (org_gtk_private_CommandLine); + 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); + g_dbus_node_info_unref (info); } if (strcmp (name, "org.gtk.Application") == 0) return org_gtk_Application; - else + else if (strcmp (name, "org.gtk.private.CommandLine") == 0) return org_gtk_private_CommandLine; + else + return org_gtk_Actions; } /* GApplication implementation {{{1 */ @@ -584,8 +606,7 @@ g_application_impl_register (GApplication *application, impl->action_id = g_dbus_connection_register_object (impl->session_bus, impl->object_path, - (GDBusInterfaceInfo *) - &org_gtk_Actions, + get_interface ("org.gtk.Actions"), &actions_vtable, impl, NULL, error);