[mate-control-center] 01/02: debian/patches: Add 1000_support_metacity_theme_switching.patch to provide a helper that correctly changes Metacity >= 3.20 themes. (LP: #1677028).
Martin Wimpress
flexiondotorg-guest at moszumanska.debian.org
Tue Mar 28 20:28:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
flexiondotorg-guest pushed a commit to branch ubuntu/zesty
in repository mate-control-center.
commit 06a4f726a137e55174acfe1019458f750c22074a
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date: Tue Mar 28 21:28:00 2017 +0100
debian/patches: Add 1000_support_metacity_theme_switching.patch to provide a helper that correctly changes Metacity >= 3.20 themes. (LP: #1677028).
---
.../1000_support_metacity_theme_switching.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/1000_support_metacity_theme_switching.patch b/debian/patches/1000_support_metacity_theme_switching.patch
new file mode 100644
index 0000000..13b9ce7
--- /dev/null
+++ b/debian/patches/1000_support_metacity_theme_switching.patch
@@ -0,0 +1,32 @@
+Description: Provide a helper that correctly changes Metacity >= 3.20 themes. (LP: #1677028)
+Author: Martin Wimpress <martin.wimpress at ubuntu.com>
+Abstract:
+ When running the Metacity window manager switching themes via MATE
+ Appearance Preferences doesn't apply the theme changes to the Metacity
+ window decorations, due to a schema change in Metacity 3.20. This
+ provides a helper that correctly changes Metacity >= 3.20 themes.
+
+
+--- a/capplets/appearance/appearance-support.c
++++ b/capplets/appearance/appearance-support.c
+@@ -77,7 +77,7 @@ metacity_theme_apply(const gchar *theme, const gchar *font)
+ {
+ gchar *gsettings_cmd = NULL;
+
+- /* for metacity <= 3.12 */
++ /* for GNOME3 */
+ 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);
+@@ -90,6 +90,11 @@ metacity_theme_apply(const gchar *theme, const gchar *font)
+ 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);
++
++ /* for metacity >= 3.20 */
++ gsettings_cmd = g_strdup_printf("gsettings set org.gnome.metacity.theme name '%s'", theme);
++ g_spawn_command_line_async (gsettings_cmd, NULL);
++ g_free (gsettings_cmd);
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f06a437
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1000_support_metacity_theme_switching.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-control-center.git
More information about the pkg-mate-commits
mailing list