summaryrefslogtreecommitdiff
path: root/applets/notification_area
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area')
-rw-r--r--applets/notification_area/na-grid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/applets/notification_area/na-grid.c b/applets/notification_area/na-grid.c
index dbd95d50..7f8162e8 100644
--- a/applets/notification_area/na-grid.c
+++ b/applets/notification_area/na-grid.c
@@ -318,6 +318,7 @@ na_grid_realize (GtkWidget *widget)
GdkScreen *screen;
GtkOrientation orientation;
NaHost *tray_host;
+ GSettings *settings = g_settings_new ("org.mate.panel");
GTK_WIDGET_CLASS (na_grid_parent_class)->realize (widget);
@@ -330,7 +331,11 @@ na_grid_realize (GtkWidget *widget)
G_BINDING_DEFAULT);
add_host (self, tray_host);
- add_host (self, sn_host_v0_new ());
+
+ if (g_settings_get_boolean (settings, "enable-sni-support"))
+ add_host (self, sn_host_v0_new ());
+
+ g_object_unref (settings);
}
static void