summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2020-10-12 23:12:34 +0800
committerWu Xiaotian <[email protected]>2020-10-12 23:13:48 +0800
commit1bdf42a47e771e997005ee3ee0865142962672e3 (patch)
treeebfe137c6bf2b4e65b0c85337dcbe29d0c2b24da
parentdfcff0df7216500d39e3e560e4bc514eb6bb8395 (diff)
downloadmate-settings-daemon-gdbus.tar.bz2
mate-settings-daemon-gdbus.tar.xz
msd: fix some bugsgdbus
-rw-r--r--mate-settings-daemon/mate-settings-manager.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mate-settings-daemon/mate-settings-manager.c b/mate-settings-daemon/mate-settings-manager.c
index 332e260..1cd0336 100644
--- a/mate-settings-daemon/mate-settings-manager.c
+++ b/mate-settings-daemon/mate-settings-manager.c
@@ -368,7 +368,7 @@ mate_settings_manager_awake_handler (OrgMateSettingsDaemon *object,
gboolean
mate_settings_manager_start_handler (OrgMateSettingsDaemon *object,
GDBusMethodInvocation *invocation,
- gpointer user_data G_GNUC_UNUSED)
+ gpointer user_data)
{
gboolean ret;
GError *error = NULL;
@@ -376,7 +376,7 @@ mate_settings_manager_start_handler (OrgMateSettingsDaemon *object,
g_debug ("Starting settings manager");
- manager = MATE_SETTINGS_MANAGER (object);
+ manager = MATE_SETTINGS_MANAGER (user_data);
mate_settings_profile_start (NULL);
@@ -450,9 +450,13 @@ bus_acquired_handler_cb (GDBusConnection *connection,
static void
name_lost_handler_cb (GDBusConnection *connection G_GNUC_UNUSED,
const gchar *name G_GNUC_UNUSED,
- gpointer user_data G_GNUC_UNUSED)
+ gpointer user_data)
{
- g_debug ("bus name lost\n");
+ MateSettingsManager *manager;
+ g_debug ("msd bus name lost\n");
+
+ manager = MATE_SETTINGS_MANAGER (user_data);
+ mate_settings_manager_stop (manager);
gtk_main_quit ();
}