Revert "popover: Fix setting priv->button_pressed in ::event handler"

This reverts commit d638ff3afa.

Doesn't look like the right fix. Another one coming that fixes dismissing
through both pointer and keyboard.
This commit is contained in:
Carlos Garnacho 2018-05-29 14:03:27 +02:00
parent 979a7e8afa
commit 317abed78e

View File

@ -1381,8 +1381,6 @@ gtk_popover_event (GtkWidget *widget,
GtkWidget *toplevel, *focus;
guint keyval;
priv->button_pressed = TRUE;
if (!gdk_event_get_keyval ((GdkEvent *) event, &keyval))
return GDK_EVENT_PROPAGATE;
@ -1407,6 +1405,8 @@ gtk_popover_event (GtkWidget *widget,
return GDK_EVENT_PROPAGATE;
}
else if (gdk_event_get_event_type (event) == GDK_BUTTON_PRESS)
priv->button_pressed = TRUE;
else if (gdk_event_get_event_type (event) == GDK_BUTTON_RELEASE)
{
GtkAllocation child_alloc;