Hello community,

here is the log from the commit of package gucharmap for openSUSE:Factory 
checked in at 2017-02-26 17:07:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gucharmap (Old)
 and      /work/SRC/openSUSE:Factory/.gucharmap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gucharmap"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gucharmap/gucharmap.changes      2017-02-03 
17:42:12.402437758 +0100
+++ /work/SRC/openSUSE:Factory/.gucharmap.new/gucharmap.changes 2017-02-26 
17:07:34.379221919 +0100
@@ -1,0 +2,6 @@
+Tue Jan 24 19:58:39 UTC 2017 - zai...@opensuse.org
+
+- Add gucharmap-no-force-light-theme.patch: No longer force light
+  theme variant, patch from upstream git.
+
+-------------------------------------------------------------------

New:
----
  gucharmap-no-force-light-theme.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gucharmap.spec ++++++
--- /var/tmp/diff_new_pack.PaGGy7/_old  2017-02-26 17:07:34.895143663 +0100
+++ /var/tmp/diff_new_pack.PaGGy7/_new  2017-02-26 17:07:34.895143663 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gucharmap
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@
 Group:          System/GUI/GNOME
 Url:            http://gucharmap.sourceforge.net/
 Source:         
http://download.gnome.org/sources/gucharmap/9.0/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM gucharmap-no-force-light-theme.patch zai...@opensuse.org 
-- No longer force the light theme
+Patch0:         gucharmap-no-force-light-theme.patch
 BuildRequires:  appdata-tools
 BuildRequires:  fdupes
 BuildRequires:  gettext
@@ -86,6 +88,7 @@
 %lang_package
 %prep
 %setup -q
+%patch0 -p1
 %if !0%{?is_opensuse}
 translation-update-upstream
 %endif

++++++ gucharmap-no-force-light-theme.patch ++++++
>From a5b046870b62393bb10ed649072c00a0c88d5e1e Mon Sep 17 00:00:00 2001
From: Christian Persch <c...@gnome.org>
Date: Tue, 15 Nov 2016 21:10:00 +0100
Subject: 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 file 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);
 
-- 
cgit v0.12



Reply via email to