summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-07-24 12:32:29 -0400
committerraveit65 <[email protected]>2023-10-13 16:17:51 +0200
commit7bcb4bbb7da624411ec2fe3dcad036fd2a52cf73 (patch)
tree0a9d234903c725ceb02aa709e0094ec0f8c98e1b /applets
parentcabfa67556e211f406b76a8e495a44220d565eee (diff)
downloadmate-panel-7bcb4bbb7da624411ec2fe3dcad036fd2a52cf73.tar.bz2
mate-panel-7bcb4bbb7da624411ec2fe3dcad036fd2a52cf73.tar.xz
notification-area: stop warning on removal
*Use automatic signal handling for changing icon size so this code doesn't get called when the applet is removed
Diffstat (limited to 'applets')
-rw-r--r--applets/notification_area/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index 2f0dafdb..b327a386 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -141,7 +141,7 @@ static void
setup_gsettings (NaTrayApplet *applet)
{
applet->priv->settings = mate_panel_applet_settings_new (MATE_PANEL_APPLET (applet), NA_TRAY_SCHEMA);
- g_signal_connect (applet->priv->settings, "changed::" KEY_MIN_ICON_SIZE, G_CALLBACK (gsettings_changed_min_icon_size), applet);
+ g_signal_connect_object (G_OBJECT(applet->priv->settings), "changed::" KEY_MIN_ICON_SIZE, G_CALLBACK (gsettings_changed_min_icon_size), applet, 0);
}
static void