diff options
author | rbuj <[email protected]> | 2020-11-26 20:40:22 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-11-27 16:05:36 +0100 |
commit | 661e3b47834b5e794947d837cd98bbddbea1ad53 (patch) | |
tree | ceac30e880a95074749a70ea695b5b0a22327816 /src/capplet/mate-notification-applet.c | |
parent | 921920e1dc19da3f7a6c50e7f6add9f4b42aa6ab (diff) | |
download | mate-notification-daemon-661e3b47834b5e794947d837cd98bbddbea1ad53.tar.bz2 mate-notification-daemon-661e3b47834b5e794947d837cd98bbddbea1ad53.tar.xz |
mate-notification-applet: avoid segfault after removing the applet
Diffstat (limited to 'src/capplet/mate-notification-applet.c')
-rw-r--r-- | src/capplet/mate-notification-applet.c | 5 |
1 files 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, |