diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-27 17:51:18 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-04-27 17:51:18 +0200 |
commit | 6b04f6e280bbdc5deaed82412e8c5f352cd96846 (patch) | |
tree | 934f9ca25c02b9b8a7d4e40ff6c81e15ea78772c /capplets/appearance | |
parent | b4ff6c7fafc624f1db379675f36889ac70edef8e (diff) | |
download | mate-control-center-6b04f6e280bbdc5deaed82412e8c5f352cd96846.tar.bz2 mate-control-center-6b04f6e280bbdc5deaed82412e8c5f352cd96846.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); |