summaryrefslogtreecommitdiff
path: root/applets/notification_area
diff options
context:
space:
mode:
authorIlya Fedin <[email protected]>2020-12-27 09:14:58 +0400
committerraveit65 <[email protected]>2022-04-26 18:40:41 +0200
commit99c9b93a5fa3cee376d01bec0affc46424301542 (patch)
tree1129b7c6997df6085138c470c16cdb0470630965 /applets/notification_area
parent7eed6c94204de780e7248fa711da03f72f900080 (diff)
downloadmate-panel-99c9b93a5fa3cee376d01bec0affc46424301542.tar.bz2
mate-panel-99c9b93a5fa3cee376d01bec0affc46424301542.tar.xz
Register SNI host only if SNI is enabled
This prevents duplication of tray icons
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