summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}