[glib] GApplication: unregister bus name
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GApplication: unregister bus name
- Date: Sat, 19 Nov 2011 21:24:55 +0000 (UTC)
commit d920cb6bdbefc20d9dfb33b289b388a7e63415c6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 17 23:30:32 2011 -0500
GApplication: unregister bus name
https://bugzilla.gnome.org/show_bug.cgi?id=647987
gio/gapplicationimpl-dbus.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index 9eeb344..3fae844 100644
--- a/gio/gapplicationimpl-dbus.c
+++ b/gio/gapplicationimpl-dbus.c
@@ -408,6 +408,17 @@ g_application_impl_destroy (GApplicationImpl *impl)
g_dbus_connection_unregister_object (impl->session_bus,
impl->object_id);
+ g_dbus_connection_call (impl->session_bus,
+ "org.freedesktop.DBus",
+ "/org/freedesktop/DBus",
+ "org.freedesktop.DBus",
+ "ReleaseName",
+ g_variant_new ("(s)",
+ impl->bus_name),
+ NULL,
+ G_DBUS_CALL_FLAGS_NONE,
+ -1, NULL, NULL, NULL);
+
g_object_unref (impl->session_bus);
g_free (impl->object_path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]