mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
Backport a patch to fix pasting a non web (epiphany) copied url into the
web adressbar. Submitted by: Graham Perrin <grahamperrin@gmail.com> Obtained from: gtk+ upstream
This commit is contained in:
parent
78b67c4481
commit
5b35f2ffb9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404953
@ -5,7 +5,7 @@
|
||||
|
||||
PORTNAME= gtk
|
||||
PORTVERSION= 3.16.7
|
||||
PORTREVISION?= 1
|
||||
PORTREVISION?= 2
|
||||
CATEGORIES= x11-toolkits
|
||||
MASTER_SITES= GNOME/sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
||||
PKGNAMESUFFIX= 3
|
||||
|
50
x11-toolkits/gtk30/files/patch-gtk_gtkentrycompletion.c
Normal file
50
x11-toolkits/gtk30/files/patch-gtk_gtkentrycompletion.c
Normal file
@ -0,0 +1,50 @@
|
||||
|
||||
https://git.gnome.org/browse/gtk+/commit/?id=0731c502626d2b739281f7bb87f5cfd9d8a61ade
|
||||
|
||||
From 0731c502626d2b739281f7bb87f5cfd9d8a61ade Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Clasen <mclasen@redhat.com>
|
||||
Date: Thu, 15 Oct 2015 20:16:54 -0400
|
||||
Subject: entry completion: Only grab the device if we have one
|
||||
|
||||
When the entry completion is popped up from a timeout, we may
|
||||
not have a device. In that case, don't call gdk_device_grab,
|
||||
do avoid criticals.
|
||||
---
|
||||
gtk/gtkentrycompletion.c | 21 ++++++++++++---------
|
||||
1 file changed, 12 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
|
||||
index cee8f25..9acae9d 100644
|
||||
--- gtk/gtkentrycompletion.c
|
||||
+++ gtk/gtkentrycompletion.c
|
||||
@@ -1654,15 +1654,18 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion)
|
||||
|
||||
gtk_widget_show (completion->priv->popup_window);
|
||||
|
||||
- gtk_device_grab_add (completion->priv->popup_window, completion->priv->device, TRUE);
|
||||
- gdk_device_grab (completion->priv->device, gtk_widget_get_window (completion->priv->popup_window),
|
||||
- GDK_OWNERSHIP_WINDOW, TRUE,
|
||||
- GDK_BUTTON_PRESS_MASK |
|
||||
- GDK_BUTTON_RELEASE_MASK |
|
||||
- GDK_POINTER_MOTION_MASK,
|
||||
- NULL, GDK_CURRENT_TIME);
|
||||
-
|
||||
- completion->priv->has_grab = TRUE;
|
||||
+ if (completion->priv->device)
|
||||
+ {
|
||||
+ gtk_device_grab_add (completion->priv->popup_window, completion->priv->device, TRUE);
|
||||
+ gdk_device_grab (completion->priv->device, gtk_widget_get_window (completion->priv->popup_window),
|
||||
+ GDK_OWNERSHIP_WINDOW, TRUE,
|
||||
+ GDK_BUTTON_PRESS_MASK |
|
||||
+ GDK_BUTTON_RELEASE_MASK |
|
||||
+ GDK_POINTER_MOTION_MASK,
|
||||
+ NULL, GDK_CURRENT_TIME);
|
||||
+
|
||||
+ completion->priv->has_grab = TRUE;
|
||||
+ }
|
||||
}
|
||||
|
||||
void
|
||||
--
|
||||
cgit v0.11.2
|
||||
|
Loading…
Reference in New Issue
Block a user