From 349fd44ff5332e2f566768de9904e2698e2db0d5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 27 Sep 2022 06:06:50 -0400 Subject: [PATCH] import gtk3-3.22.30-11.el8 --- ...01-Remove-the-without-parent-warning.patch | 29 +++++++++++++++++++ SPECS/gtk3.spec | 8 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0001-Remove-the-without-parent-warning.patch diff --git a/SOURCES/0001-Remove-the-without-parent-warning.patch b/SOURCES/0001-Remove-the-without-parent-warning.patch new file mode 100644 index 0000000..d748c6f --- /dev/null +++ b/SOURCES/0001-Remove-the-without-parent-warning.patch @@ -0,0 +1,29 @@ +From abcc4773173ed8becb822971edad3f8d14a7a482 Mon Sep 17 00:00:00 2001 +From: Matthias Clasen +Date: Mon, 21 May 2018 17:15:41 -0400 +Subject: [PATCH] Remove the "without parent" warning + +We've had it for a long time, and it hasn't really made +a difference. And I don't think we are prepared to turn +this into a hard error. So just drop it. +--- + gtk/gtkdialog.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c +index 273c370935..0ef0f08b24 100644 +--- a/gtk/gtkdialog.c ++++ b/gtk/gtkdialog.c +@@ -776,9 +776,6 @@ gtk_dialog_map (GtkWidget *widget) + GtkWindow *window = GTK_WINDOW (widget); + GtkDialog *dialog = GTK_DIALOG (widget); + +- if (gtk_window_get_transient_for (window) == NULL) +- g_message ("GtkDialog mapped without a transient parent. This is discouraged."); +- + GTK_WIDGET_CLASS (gtk_dialog_parent_class)->map (widget); + + focus = gtk_window_get_focus (window); +-- +2.37.0 + diff --git a/SPECS/gtk3.spec b/SPECS/gtk3.spec index ebb17ec..a0706d8 100644 --- a/SPECS/gtk3.spec +++ b/SPECS/gtk3.spec @@ -22,7 +22,7 @@ Name: gtk3 Version: 3.22.30 -Release: 10%{?dist} +Release: 11%{?dist} Summary: GTK+ graphical user interface library License: LGPLv2+ @@ -53,6 +53,8 @@ Patch11: gtk-3.22.20-fix-treeview-refcount2.patch Patch12: gtk-3.22.20-quiet-exit.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2032437 Patch13: gtk-3.22.20-avoid-cellarea-crash.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=2058260 +Patch14: 0001-Remove-the-without-parent-warning.patch BuildRequires: pkgconfig(atk) >= %{atk_version} BuildRequires: pkgconfig(atk-bridge-2.0) @@ -205,6 +207,7 @@ the functionality of the installed %{name} package. %patch11 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 %build export CFLAGS='-fno-strict-aliasing %optflags' @@ -363,6 +366,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &>/dev/null || : %{_datadir}/installed-tests %changelog +* Mon Aug 22 2022 Carlos Garnacho - 3.22.30-11 +- Drop warning about unparented dialogs (#2058260) + * Tue Feb 15 2022 David King - 3.22.30-10 - Further treeview a11y refcount fix (#2032438)