summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorRobert Antoni Buj Gelonch <[email protected]>2022-06-02 09:38:16 +0200
committerraveit65 <[email protected]>2022-07-02 17:40:49 +0200
commitfe5d2c10b7942f07efbdca2e48363f3aeb4a9bde (patch)
tree103a27fc36efce31d883333189ded5e2a7527471 /applets
parent99c9b93a5fa3cee376d01bec0affc46424301542 (diff)
downloadmate-panel-fe5d2c10b7942f07efbdca2e48363f3aeb4a9bde.tar.bz2
mate-panel-fe5d2c10b7942f07efbdca2e48363f3aeb4a9bde.tar.xz
notification_area: Reduce lifetime of the settings local variable (#1309)
Diffstat (limited to 'applets')
-rw-r--r--applets/notification_area/na-grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/notification_area/na-grid.c b/applets/notification_area/na-grid.c
index 7f8162e8..b7690c3c 100644
--- a/applets/notification_area/na-grid.c
+++ b/applets/notification_area/na-grid.c
@@ -318,7 +318,7 @@ na_grid_realize (GtkWidget *widget)
GdkScreen *screen;
GtkOrientation orientation;
NaHost *tray_host;
- GSettings *settings = g_settings_new ("org.mate.panel");
+ GSettings *settings;
GTK_WIDGET_CLASS (na_grid_parent_class)->realize (widget);
@@ -332,9 +332,9 @@ na_grid_realize (GtkWidget *widget)
add_host (self, tray_host);
+ settings = g_settings_new ("org.mate.panel");
if (g_settings_get_boolean (settings, "enable-sni-support"))
add_host (self, sn_host_v0_new ());
-
g_object_unref (settings);
}