forked from AuroraMiddleware/gtk
spinbutton: Fix gesture state
We claimed the gesture previously to keep it from propagating to the underlying entry, but now that the entry is in a box with the two buttons, we can do this properly and restore the previous long-press behavior.
This commit is contained in:
parent
333b52bc14
commit
f1813e8f88
@ -788,8 +788,6 @@ button_pressed_cb (GtkGestureMultiPress *gesture,
|
||||
|
||||
gtk_widget_grab_focus (GTK_WIDGET (spin_button));
|
||||
|
||||
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
|
||||
|
||||
if (gtk_editable_get_editable (GTK_EDITABLE (priv->entry)))
|
||||
{
|
||||
int button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
|
||||
|
Loading…
Reference in New Issue
Block a user