diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-27 17:51:18 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-11 13:56:28 +0200 |
commit | 6a0ec4159139d0bb4fea0c11b790b4fc2ea774ab (patch) | |
tree | 6310f6a2a98090ecf5bdf5a9c947157c2f81e0ca /capplets/appearance | |
parent | 6cdaa33bf9057a66eb5da3147a03051444253d56 (diff) | |
download | mate-control-center-6a0ec4159139d0bb4fea0c11b790b4fc2ea774ab.tar.bz2 mate-control-center-6a0ec4159139d0bb4fea0c11b790b4fc2ea774ab.tar.xz |
Add support for metacity-theme-2.xml
Closes https://github.com/mate-desktop/mate-control-center/issues/92
Diffstat (limited to 'capplets/appearance')
-rw-r--r-- | capplets/appearance/theme-installer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/capplets/appearance/theme-installer.c b/capplets/appearance/theme-installer.c index 8ce0c565..23c94f99 100644 --- a/capplets/appearance/theme-installer.c +++ b/capplets/appearance/theme-installer.c @@ -128,6 +128,13 @@ file_theme_type (const gchar *dir) if (exists) return THEME_GTK; + filename = g_build_filename (dir, "metacity-1", "metacity-theme-2.xml", NULL); + exists = g_file_test (filename, G_FILE_TEST_IS_REGULAR); + g_free (filename); + + if (exists) + return THEME_MARCO; + filename = g_build_filename (dir, "metacity-1", "metacity-theme-1.xml", NULL); exists = g_file_test (filename, G_FILE_TEST_IS_REGULAR); g_free (filename); |