Commit 269e9178 authored by Guido Gunther's avatar Guido Gunther
Browse files

settings: Use g_signal_connect_object



The panel might go away (e.g. when moved between outputs). This
makes sure the notification list does not send to an already
disposed object.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 49dc5a4d
Pipeline #59791 passed with stages
in 44 minutes and 36 seconds
......@@ -452,10 +452,11 @@ phosh_settings_constructed (GObject *object)
create_notification_row,
NULL,
NULL);
g_signal_connect_swapped (phosh_notify_manager_get_list (manager),
"items-changed",
G_CALLBACK (on_notifcation_items_changed),
self);
g_signal_connect_object (phosh_notify_manager_get_list (manager),
"items-changed",
G_CALLBACK (on_notifcation_items_changed),
self,
G_CONNECT_SWAPPED);
G_OBJECT_CLASS (phosh_settings_parent_class)->constructed (object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment