gtkexpander: Drop usage of gtk_gesture_set_window()

It's now meaningless since the gesture will receive the event despite
the input only window.
This commit is contained in:
Carlos Garnacho 2017-03-31 18:12:57 +02:00
parent f5e02f3a2a
commit 2c9678c38f

View File

@ -544,8 +544,6 @@ gtk_expander_realize (GtkWidget *widget)
| GDK_LEAVE_NOTIFY_MASK,
&allocation);
gtk_widget_register_window (widget, priv->event_window);
gtk_gesture_set_window (priv->multipress_gesture, priv->event_window);
}
static void
@ -555,7 +553,6 @@ gtk_expander_unrealize (GtkWidget *widget)
if (priv->event_window)
{
gtk_gesture_set_window (priv->multipress_gesture, NULL);
gtk_widget_unregister_window (widget, priv->event_window);
gdk_window_destroy (priv->event_window);
priv->event_window = NULL;