[gnome-build-meta/alatiera/40-alpha: 2/2] sdk/gtk+-3: patch it till there's another release
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/40-alpha: 2/2] sdk/gtk+-3: patch it till there's another release
- Date: Mon, 25 Jan 2021 07:32:00 +0000 (UTC)
commit 34a4e4069d0b1ab4b17b2e8274114cd8e5a01913
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..bf701d69
--- /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 a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
+index 01e420c669..e52f9171c7 100644
+--- a/gdk/wayland/gdkscreen-wayland.c
++++ b/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]