From 4cd367d92ab485c92a00042abc28188d1a751ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 1 Dec 2016 22:31:21 +0100 Subject: New upstream version 3.23.2 --- src/ui.vala | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/ui.vala') diff --git a/src/ui.vala b/src/ui.vala index 2dd1d57..5e375c4 100644 --- a/src/ui.vala +++ b/src/ui.vala @@ -1819,7 +1819,7 @@ public class UserInterface : Gtk.ApplicationWindow var app = Application.get_default () as Gtk.Application; - if (is_desktop ("Unity") || is_desktop ("XFCE") || is_desktop ("MATE") || is_desktop ("LXDE")) + if (is_traditional_desktop ()) { set_titlebar (null); menubar.visible = true; @@ -2022,6 +2022,15 @@ public class UserInterface : Gtk.ApplicationWindow return false; } + private bool is_traditional_desktop () + { + const string[] traditional_desktops = { "Unity", "XFCE", "MATE", "LXDE", "Cinnamon", "X-Cinnamon" }; + foreach (var name in traditional_desktops) + if (is_desktop (name)) + return true; + return false; + } + private string state_filename { owned get { return Path.build_filename (Environment.get_user_cache_dir (), "simple-scan", "state"); } -- cgit v1.2.3