summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-07-22 01:15:36 -0400
committerlukefromdc <[email protected]>2017-08-13 14:37:24 -0400
commit080ac0dad0198ec3be067e5f05300caa48054b51 (patch)
treecc0ecf48b2045d96430f125cfc019f0c90c3e58f
parent3ff25047ce9cb79655a3fd7831b9bf402dcfa194 (diff)
downloadmate-panel-080ac0dad0198ec3be067e5f05300caa48054b51.tar.bz2
mate-panel-080ac0dad0198ec3be067e5f05300caa48054b51.tar.xz
libmate-panel-applet: fix error in unregistering dbus object
One portion of https://github.com/GNOME/gnome-panel/commit/0c3844c0e5f1bee5885d2c7aeaa49763e6708f6d got left out
-rw-r--r--libmate-panel-applet/mate-panel-applet-factory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmate-panel-applet/mate-panel-applet-factory.c b/libmate-panel-applet/mate-panel-applet-factory.c
index 370a4124..57e5a0c2 100644
--- a/libmate-panel-applet/mate-panel-applet-factory.c
+++ b/libmate-panel-applet/mate-panel-applet-factory.c
@@ -281,7 +281,8 @@ on_bus_acquired (GDBusConnection *connection,
if (!introspection_data)
introspection_data = g_dbus_node_info_new_for_xml (introspection_xml, NULL);
object_path = g_strdup_printf (MATE_PANEL_APPLET_FACTORY_OBJECT_PATH, factory->factory_id);
- g_dbus_connection_register_object (connection,
+ factory->connection = connection;
+ factory->registration_id = g_dbus_connection_register_object (connection,
object_path,
introspection_data->interfaces[0],
&interface_vtable,