diff options
author | Martin Wimpress <[email protected]> | 2015-06-29 23:48:00 +0100 |
---|---|---|
committer | Martin Wimpress <[email protected]> | 2015-06-29 23:48:00 +0100 |
commit | 4e2e57662271fdf8b5439394cdb7bf147be59aaa (patch) | |
tree | 8ec7f41dcefefc0215e018bc966b0306d6149bc6 /capplets | |
parent | 4edf2b54b5440814220fe2f315d201944cced3ae (diff) | |
download | mate-control-center-4e2e57662271fdf8b5439394cdb7bf147be59aaa.tar.bz2 mate-control-center-4e2e57662271fdf8b5439394cdb7bf147be59aaa.tar.xz |
Add theme changing support for metacity >= 3.16
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/appearance/appearance-support.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/capplets/appearance/appearance-support.c b/capplets/appearance/appearance-support.c index 25cc003c..35e4f263 100644 --- a/capplets/appearance/appearance-support.c +++ b/capplets/appearance/appearance-support.c @@ -77,6 +77,7 @@ metacity_theme_apply(const gchar *theme, const gchar *font) { gchar *gsettings_cmd = NULL; + /* for metacity <= 3.12 */ gsettings_cmd = g_strdup_printf("gsettings set org.gnome.desktop.wm.preferences theme '%s'", theme); g_spawn_command_line_async (gsettings_cmd, NULL); g_free (gsettings_cmd); @@ -85,6 +86,10 @@ metacity_theme_apply(const gchar *theme, const gchar *font) g_spawn_command_line_async (gsettings_cmd, NULL); g_free (gsettings_cmd); + /* for metacity >= 3.16 */ + gsettings_cmd = g_strdup_printf("gsettings set org.gnome.metacity theme '%s'", theme); + g_spawn_command_line_async (gsettings_cmd, NULL); + g_free (gsettings_cmd); } } |