diff --git a/0001-Remove-the-without-parent-warning.patch b/0001-Remove-the-without-parent-warning.patch new file mode 100644 index 0000000000000000000000000000000000000000..d748c6f55f3e10d043d9ddbd82a36446379988b8 --- /dev/null +++ b/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/dist b/dist new file mode 100644 index 0000000000000000000000000000000000000000..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8 diff --git a/gtk3.spec b/gtk3.spec index 20e5e7badc786c034fde1a3dd08fba9c398c9235..a0706d8ed065c7054748cece0b3e6bee3e5885aa 100644 --- a/gtk3.spec +++ b/gtk3.spec @@ -1,4 +1,3 @@ -%define anolis_release .0.1 %if 0%{?fedora} || 0%{?rhel} > 7 %global with_wayland 1 %global with_broadway 1 @@ -23,7 +22,7 @@ Name: gtk3 Version: 3.22.30 -Release: 10%{anolis_release}%{?dist} +Release: 11%{?dist} Summary: GTK+ graphical user interface library License: LGPLv2+ @@ -54,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) @@ -128,9 +129,6 @@ Obsoletes: gtk3-engines <= 2.91.5-5.fc15 Obsoletes: gtk-solidity-engine < 0.4.1-9 Obsoletes: oxygen-gtk3 < 2:1.4.1 -Requires: glibc -Provides: /usr/bin/gtk-launch - %description GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for @@ -139,15 +137,6 @@ suites. This package contains version 3 of GTK+. -%package doc -Summary: Documents for %{name} -BuildArch: noarch -Requires: %{name} = %{version}-%{release} - - -%description doc -Doc pages for %{name}. - %package -n gtk-update-icon-cache Summary: Icon theme caching utility # gtk-update-icon-cache used to be shipped in the gtk2 package @@ -218,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' @@ -283,6 +273,7 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &>/dev/null || : %files -f gtk30.lang %license COPYING +%doc AUTHORS NEWS README %{_bindir}/gtk-query-immodules-3.0* %{_bindir}/gtk-launch %{_libdir}/libgtk-3.so.* @@ -312,9 +303,6 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &>/dev/null || : %{_mandir}/man1/broadwayd.1* %endif -%files doc -%doc AUTHORS NEWS README - %files -n gtk-update-icon-cache %license COPYING %{_bindir}/gtk-update-icon-cache @@ -378,8 +366,8 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &>/dev/null || : %{_datadir}/installed-tests %changelog -* Sat Jul 16 2022 mgb01105731 - 3.22.30-10.0.1 -- Add doc sub package +* 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)