Accepting request 1112612 from GNOME:Next

- Add e001b421.patch: tooltip: don't cross native boundaries.

OBS-URL: https://build.opensuse.org/request/show/1112612
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk4?expand=0&rev=148
This commit is contained in:
Bjørn Lie 2023-09-20 21:10:15 +00:00 committed by Git OBS Bridge
parent 3ec870cd0a
commit 9b2020216c
3 changed files with 53 additions and 0 deletions

46
e001b421.patch Normal file
View File

@ -0,0 +1,46 @@
From 114550407564f25469984f69e0707f4d8940e1d0 Mon Sep 17 00:00:00 2001
From: Zander Brown <zbrown@gnome.org>
Date: Sun, 27 Aug 2023 01:54:56 +0100
Subject: [PATCH] tooltip: don't cross native boundaries
When walking the tree looking for tooltips we shouldn't cross from, say,
a popover to it's parent window
Fix: https://gitlab.gnome.org/GNOME/gtk/-/issues/1234
Fix: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1038
Fix: https://gitlab.gnome.org/GNOME/gtk/-/issues/5998
Fix: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3063
See: https://gitlab.gnome.org/GNOME/console/-/issues/318
See: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6346
---
gtk/gtktooltip.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index c007b1641b1..7bc11a694ca 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -302,8 +302,8 @@ gtk_tooltip_set_icon_from_gicon (GtkTooltip *tooltip,
* Replaces the widget packed into the tooltip with
* @custom_widget. @custom_widget does not get destroyed when the tooltip goes
* away.
- * By default a box with a `GtkImage` and `GtkLabel` is embedded in
- * the tooltip, which can be configured using gtk_tooltip_set_markup()
+ * By default a box with a `GtkImage` and `GtkLabel` is embedded in
+ * the tooltip, which can be configured using gtk_tooltip_set_markup()
* and gtk_tooltip_set_icon().
*/
void
@@ -560,6 +560,9 @@ gtk_tooltip_run_requery (GtkWidget **widget,
{
GtkWidget *parent = gtk_widget_get_parent (*widget);
+ if (GTK_IS_NATIVE (*widget))
+ break;
+
if (parent)
{
graphene_point_t r = GRAPHENE_POINT_INIT (*x, *y);
--
GitLab

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 20 18:37:13 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Add e001b421.patch: tooltip: don't cross native boundaries.
-------------------------------------------------------------------
Thu Aug 31 12:51:57 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -46,6 +46,8 @@ Source99: gtk4-rpmlintrc
# https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4756
# PATCH-FIX-OPENSUSE 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch -- Revert "Meson: Simplify pkgconfig file generator"
Patch0: 0001-Revert-Meson-Simplify-pkgconfig-file-generator.patch
# PATCH-FIX-UPSTREAM e001b421.patch -- tooltip: don't cross native boundaries
Patch1: https://gitlab.gnome.org/GNOME/gtk/-/commit/e001b421.patch
BuildRequires: cups-devel >= 2.0
# We do not support building against cups 2.3 betas