pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gtk4 gtk4: add upstream bug fix for 'save' dialogs



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97015d46d952
branches:  trunk
changeset: 384095:97015d46d952
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Aug 27 18:16:08 2022 +0000

description:
gtk4: add upstream bug fix for 'save' dialogs

Bump PKGREVISION.

diffstat:

 x11/gtk4/Makefile                                 |   4 ++--
 x11/gtk4/distinfo                                 |   3 ++-
 x11/gtk4/patches/patch-gtk_gtkfilechooserwidget.c |  22 ++++++++++++++++++++++
 3 files changed, 26 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 496d871bb54a -r 97015d46d952 x11/gtk4/Makefile
--- a/x11/gtk4/Makefile Sat Aug 27 12:49:28 2022 +0000
+++ b/x11/gtk4/Makefile Sat Aug 27 18:16:08 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2022/08/26 22:32:33 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2022/08/27 18:16:08 wiz Exp $
 
 DISTNAME=      gtk-4.6.6
 PKGNAME=       ${DISTNAME:S/gtk/gtk4/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    x11
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/gtk/${PKGVERSION_NOREV:R}/}
 EXTRACT_SUFX=  .tar.xz
diff -r 496d871bb54a -r 97015d46d952 x11/gtk4/distinfo
--- a/x11/gtk4/distinfo Sat Aug 27 12:49:28 2022 +0000
+++ b/x11/gtk4/distinfo Sat Aug 27 18:16:08 2022 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.7 2022/08/15 00:01:41 tnn Exp $
+$NetBSD: distinfo,v 1.8 2022/08/27 18:16:08 wiz Exp $
 
 BLAKE2s (gtk-4.6.6.tar.xz) = 520d6e0edc306ef03691c57e499f1a98ea094bbe30bfe3d731487e8833776758
 SHA512 (gtk-4.6.6.tar.xz) = b743d99029d7d51db19396641023eefd5d25bbacbd89ad6660d43e382b26fe6cc5e9ce8f0dbb3f4ac7d2143db617ea0c2e2d3cc8926fc93d735eb76ffb2f8309
 Size (gtk-4.6.6.tar.xz) = 23085304 bytes
 SHA1 (patch-demos_gtk-demo_gtkgears.c) = f09912bb4bef8589f694d4ed1a4744afe422ccbd
+SHA1 (patch-gtk_gtkfilechooserwidget.c) = 49230fa59d244c55bf2caf9dd44dc96e062c6964
 SHA1 (patch-meson.build) = 89b91ba48b35baafb35598d3dd82577de8fc424c
 SHA1 (patch-tests_gtkgears.c) = 2af0628eb8c8286c85cd5c64a9da561fa375e8b3
diff -r 496d871bb54a -r 97015d46d952 x11/gtk4/patches/patch-gtk_gtkfilechooserwidget.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk4/patches/patch-gtk_gtkfilechooserwidget.c Sat Aug 27 18:16:08 2022 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-gtk_gtkfilechooserwidget.c,v 1.1 2022/08/27 18:16:08 wiz Exp $
+
+GtkFileChooserWidget: Propagate captured key events when the location entry is focused
+https://gitlab.gnome.org/GNOME/gtk/-/commit/2b131f09a8403c9ba3d7288901a3c918840df2c3
+
+--- gtk/gtkfilechooserwidget.c.orig    2022-07-02 18:38:25.000000000 +0000
++++ gtk/gtkfilechooserwidget.c
+@@ -7763,6 +7763,14 @@ captured_key (GtkEventControllerKey *con
+   if (keyval == GDK_KEY_slash)
+     return GDK_EVENT_PROPAGATE;
+ 
++  if (impl->location_entry)
++    {
++      GtkWidget *focus = gtk_root_get_focus (gtk_widget_get_root (GTK_WIDGET (impl)));
++
++      if (focus && gtk_widget_is_ancestor (focus, impl->location_entry))
++        return GDK_EVENT_PROPAGATE;
++    }
++
+   handled = gtk_event_controller_key_forward (controller, GTK_WIDGET (impl->search_entry));
+   if (handled == GDK_EVENT_STOP)
+     operation_mode_set (impl, OPERATION_MODE_SEARCH);



Home | Main Index | Thread Index | Old Index