[gucharmap] charmap: Conditionalise forcing the light theme on gtk < 3.22
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] charmap: Conditionalise forcing the light theme on gtk < 3.22
- Date: Tue, 15 Nov 2016 20:11:22 +0000 (UTC)
commit a5b046870b62393bb10ed649072c00a0c88d5e1e
Author: Christian Persch <chpe gnome org>
Date: Tue Nov 15 21:10:00 2016 +0100
charmap: Conditionalise forcing the light theme on gtk < 3.22
Apparently this is fixed on gtk+ 3.22, so only force the variant
to 'light' on < 3.22.
https://bugzilla.gnome.org/show_bug.cgi?id=741939#c28
gucharmap/main.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gucharmap/main.c b/gucharmap/main.c
index 877398b..a07403f 100644
--- a/gucharmap/main.c
+++ b/gucharmap/main.c
@@ -275,8 +275,12 @@ main (int argc, char **argv)
g_application_register (G_APPLICATION (application), NULL, NULL);
- /* Gucharmap doesn't work right with the dark theme, see #741939 */
- g_object_set (gtk_settings_get_default (), "gtk-application-prefer-dark-theme", FALSE, NULL);
+ /* Gucharmap doesn't work right with the dark theme, see #741939.
+ * Apparently this got fixed in gtk+ some time before 3.22, so
+ * only work around this on older versions.
+ */
+ if (gtk_check_version (3, 22, 0) != NULL /* < 3.22.0 */)
+ g_object_set (gtk_settings_get_default (), "gtk-application-prefer-dark-theme", FALSE, NULL);
window = gucharmap_window_new (application);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]