summaryrefslogtreecommitdiff
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
parent7eed6c94204de780e7248fa711da03f72f900080 (diff)
downloadmate-panel-1.26.tar.bz2
mate-panel-1.26.tar.xz
Register SNI host only if SNI is enabled1.26
This prevents duplication of tray icons
-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