[gnome-build-meta/alatiera/gtk-aliasing-bug] 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/gtk-aliasing-bug] sdk/gtk+-3: patch it till there's another release
- Date: Mon, 18 Jan 2021 19:09:50 +0000 (UTC)
commit cfa26a25f3f90936dcef082350e33b4c5c16f704
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..62bff372
--- /dev/null
+++ b/files/gtk/3076.patch
@@ -0,0 +1,35 @@
+From 97b5fad13159d19ccc2c3b9d222f99f100cc0043 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/gdkdisplay-wayland.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
+index 39799e2762..f5ea972fa2 100644
+--- a/gdk/wayland/gdkdisplay-wayland.c
++++ b/gdk/wayland/gdkdisplay-wayland.c
+@@ -1836,6 +1836,7 @@ settings_portal_changed (GDBusProxy *proxy,
+ char *a = g_variant_print (value, FALSE);
+ g_debug ("Using changed portal setting %s %s: %s", namespace, name, a);
+ g_free (a);
++ entry->valid = TRUE;
+ apply_portal_setting (entry, value, display);
+ gdk_display_setting_changed (display, entry->setting);
+ }
+--
+GitLab
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]