[gnome-build-meta/alatiera/gtk-aliasing-bug] sdk/gtk+-3: patch it till there's another release




commit 0f6ae74f4b53a670b5f373349a0d593725ef3ba4
Author: Jordan Petridis <jpetridis gnome org>
Date:   Mon Jan 18 21:08:49 2021 +0200

    sdk/gtk+-3: patch it till there's another release
    
    Currently anti-aliasing is a bit broken and its kinda bad.
    
    https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3076

 elements/sdk/gtk+-3.bst |  2 ++
 files/gtk/3076.patch    | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
---
diff --git a/elements/sdk/gtk+-3.bst b/elements/sdk/gtk+-3.bst
index 506c4e9d..9c17661b 100644
--- a/elements/sdk/gtk+-3.bst
+++ b/elements/sdk/gtk+-3.bst
@@ -4,6 +4,8 @@ sources:
 - kind: tar
   url: gnome_downloads:gtk+/3.24/gtk+-3.24.24.tar.xz
   ref: cc9d4367c55b724832f6b09ab85481738ea456871f0381768a6a99335a98378a
+- kind: patch
+  path: files/gtk/3076.patch
 build-depends:
 - sdk/gtk-doc.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
diff --git a/files/gtk/3076.patch b/files/gtk/3076.patch
new file mode 100644
index 00000000..e4c88496
--- /dev/null
+++ b/files/gtk/3076.patch
@@ -0,0 +1,35 @@
+From 1abf212769f0aae8ca5b46fa7f91d2451594d9db Mon Sep 17 00:00:00 2001
+From: Carlos Garnacho <carlosg gnome org>
+Date: Thu, 14 Jan 2021 15:47:36 +0100
+Subject: [PATCH] gdk/wayland: Mark matched settings from the portal as valid
+
+Commit e6209de9625 added some checks on TranslationEntry.valid in
+order to figure out whether using the new font settings or the
+old g-s-d ones. However that's only set in the non-sandboxed case.
+
+This makes sandboxed applications fallback to the old (and also
+non-existing with modern g-s-d) settings, possibly resulting in
+ugly defaults being picked.
+
+Fix this by also marking TranslationEntry elements as valid when
+using the settings portal, precisely those entries that we are able
+to read and match with our own table.
+---
+ gdk/wayland/gdkscreen-wayland.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git gdk/wayland/gdkscreen-wayland.c gdk/wayland/gdkscreen-wayland.c
+index 01e420c669..e52f9171c7 100644
+--- gdk/wayland/gdkscreen-wayland.c
++++ gdk/wayland/gdkscreen-wayland.c
+@@ -765,6 +765,7 @@ init_settings (GdkScreen *screen)
+                   char *a = g_variant_print (v, FALSE);
+                   g_debug ("Using portal setting for %s %s: %s\n", schema, key, a);
+                   g_free (a);
++                  entry->valid = TRUE;
+                   apply_portal_setting (entry, v, screen);
+                 }
+               else
+-- 
+2.29.2
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]