mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
Merge branch 'checkbutton-release-outside' into 'master'
checkbutton: Match GtkButton behavior Closes #4061 See merge request GNOME/gtk!3691
This commit is contained in:
commit
47bd998e94
@ -324,11 +324,14 @@ click_released_cb (GtkGestureClick *gesture,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
|
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
|
||||||
|
if (gtk_widget_is_sensitive (widget) &&
|
||||||
if (priv->action_helper)
|
gtk_widget_contains (widget, x, y))
|
||||||
gtk_action_helper_activate (priv->action_helper);
|
{
|
||||||
else
|
if (priv->action_helper)
|
||||||
gtk_check_button_set_active (self, !priv->active);
|
gtk_action_helper_activate (priv->action_helper);
|
||||||
|
else
|
||||||
|
gtk_check_button_set_active (self, !priv->active);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user