From 661e3b47834b5e794947d837cd98bbddbea1ad53 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 26 Nov 2020 20:40:22 +0100 Subject: mate-notification-applet: avoid segfault after removing the applet --- src/capplet/mate-notification-applet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/capplet/mate-notification-applet.c b/src/capplet/mate-notification-applet.c index 1aeb120..b5aef3f 100644 --- a/src/capplet/mate-notification-applet.c +++ b/src/capplet/mate-notification-applet.c @@ -59,7 +59,8 @@ static const char* notification_properties[] = { }; static void -applet_destroy (MateNotificationApplet *applet) +applet_destroy (MatePanelApplet *applet_widget, + MateNotificationApplet *applet) { g_assert (applet); @@ -187,7 +188,7 @@ applet_main (MatePanelApplet *applet_widget) G_SETTINGS_BIND_DEFAULT); g_signal_connect (G_OBJECT (applet->applet), "destroy", - G_CALLBACK (applet_destroy), NULL); + G_CALLBACK (applet_destroy), applet); /* GSettings callback */ g_signal_connect (G_OBJECT (applet->settings), "changed::" GSETTINGS_KEY_DO_NOT_DISTURB, -- cgit v1.2.1