diff options
author | Ilya Fedin <[email protected]> | 2020-12-27 09:14:58 +0400 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-04-22 00:36:11 +0000 |
commit | f25d859347d32c363fb1e0a15266d66b06022b6c (patch) | |
tree | 9a280bd100bf5d9d7bc02e0093b7ac6523143797 /applets | |
parent | 258545c6e04a8299726122afd3a825483a9d7256 (diff) | |
download | mate-panel-f25d859347d32c363fb1e0a15266d66b06022b6c.tar.bz2 mate-panel-f25d859347d32c363fb1e0a15266d66b06022b6c.tar.xz |
Register SNI host only if SNI is enabled
This prevents duplication of tray icons
Diffstat (limited to 'applets')
-rw-r--r-- | applets/notification_area/na-grid.c | 7 |
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 |