From 7400deb9327447541b4552f15ac9c290fea11c87 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Mon, 24 Jul 2023 12:32:29 -0400 Subject: 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 --- applets/notification_area/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c index 74eebea0..71221b65 100644 --- a/applets/notification_area/main.c +++ b/applets/notification_area/main.c @@ -139,7 +139,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 -- cgit v1.2.1