2014-04-03 17:22:34 |
Leo Iannacone |
description |
Hi all!
In nuautilus : debian/patches/ubuntu_titlebar_css.patch
you have defined some style override in order to fit (if I understood correctly) nautilus in Unity window decoration.
But, instead to check if it's Unity the current window manager, you do this:
+ settings = gtk_settings_get_default();
+ g_object_get(settings, "gtk-theme-name", &theme_name, NULL);
+
+ if (g_strcmp0(theme_name, "Ambiance") == 0 || g_strcmp0(theme_name, "Radiance") == 0)
Which means: if you change theme in a Unity session, Nautilus will not override style. And also: if you use those themes in any window manager, nautilus makes the override.
You should check instead XDS_CURRENT_DESKTOP == 'Unity'. Or is there some better way to know which WindowManager is running ? |
Hi all!
In nautilus : debian/patches/ubuntu_titlebar_css.patch
you have defined some style override in order to fit (if I understood correctly) nautilus in Unity window decoration.
But, instead to check if it's Unity the current window manager, you do this:
+ settings = gtk_settings_get_default();
+ g_object_get(settings, "gtk-theme-name", &theme_name, NULL);
+
+ if (g_strcmp0(theme_name, "Ambiance") == 0 || g_strcmp0(theme_name, "Radiance") == 0)
Which means: if you change theme in a Unity session, Nautilus will not override style. And also: if you use those themes in any window manager, nautilus makes the override.
You should check XDS_CURRENT_DESKTOP == 'Unity' instead to look for which Theme is in use. |
|