[gtk+] Revert "widget: Fix propagation of gesture cancellation on widget unrealize/destroy"
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "widget: Fix propagation of gesture cancellation on widget unrealize/destroy"
- Date: Fri, 18 Sep 2015 11:04:09 +0000 (UTC)
commit bdb854d92cad3c625f21980a8b559116b628e80a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Sep 18 12:57:26 2015 +0200
Revert "widget: Fix propagation of gesture cancellation on widget unrealize/destroy"
This reverts commit 3aaf730901d04a3e4a102cb95e769a48ec5027e3.
gtk/gtkwidget.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d813e8b..ebfc1ff 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7367,7 +7367,8 @@ event_check_cancel_sequence_on_hierarchy (GtkWidget *widget,
if (source_device &&
gdk_device_get_source (source_device) != GDK_SOURCE_KEYBOARD &&
event->type != GDK_ENTER_NOTIFY && event->type != GDK_LEAVE_NOTIFY)
- cancel_event_sequence_on_hierarchy (NULL, widget,
+ cancel_event_sequence_on_hierarchy (widget,
+ gtk_get_event_widget (event),
gdk_event_get_event_sequence (event));
}
@@ -7377,13 +7378,10 @@ _gtk_widget_captured_event (GtkWidget *widget,
{
gboolean return_val = FALSE;
GtkCapturedEventHandler handler;
- GtkWidget *parent;
g_return_val_if_fail (GTK_IS_WIDGET (widget), TRUE);
g_return_val_if_fail (WIDGET_REALIZED_FOR_EVENT (widget, event), TRUE);
- parent = gtk_widget_get_parent (widget);
-
if (event->type == GDK_EXPOSE)
{
g_warning ("Events of type GDK_EXPOSE cannot be synthesized. To get "
@@ -7410,7 +7408,7 @@ _gtk_widget_captured_event (GtkWidget *widget,
/* We stop event propagation, but still we must ensure the sequence is
* cancelled across the widget hierarchy.
*/
- event_check_cancel_sequence_on_hierarchy (parent, event);
+ event_check_cancel_sequence_on_hierarchy (widget, event);
return_val = TRUE;
}
@@ -7598,7 +7596,6 @@ gtk_widget_event_internal (GtkWidget *widget,
GdkEvent *event)
{
gboolean return_val = FALSE, handled;
- GtkWidget *parent;
/* We check only once for is-still-visible; if someone
* hides the window in on of the signals on the widget,
@@ -7609,7 +7606,6 @@ gtk_widget_event_internal (GtkWidget *widget,
return TRUE;
g_object_ref (widget);
- parent = gtk_widget_get_parent (widget);
if (widget == gtk_get_event_widget (event))
return_val |= _gtk_widget_run_controllers (widget, event, GTK_PHASE_TARGET);
@@ -7733,7 +7729,7 @@ gtk_widget_event_internal (GtkWidget *widget,
/* We stop event propagation, but still we must ensure the sequence is
* cancelled across the widget hierarchy.
*/
- event_check_cancel_sequence_on_hierarchy (parent, event);
+ event_check_cancel_sequence_on_hierarchy (widget, event);
return_val = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]