mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Revert "listbox: Activate single-click rows if n_press >= 1"
This reverts commit e669433cde
.
This broke selection in several listbox examples.
Fixes: #3263
This commit is contained in:
parent
5bbacc647c
commit
8eb6e876bd
@ -1842,9 +1842,9 @@ gtk_list_box_click_gesture_released (GtkGestureClick *gesture,
|
||||
{
|
||||
gboolean focus_on_click = gtk_widget_get_focus_on_click (GTK_WIDGET (box->active_row));
|
||||
|
||||
if (box->activate_single_click)
|
||||
if (n_press == 1 && box->activate_single_click)
|
||||
gtk_list_box_select_and_activate_full (box, box->active_row, focus_on_click);
|
||||
else if (n_press == 2)
|
||||
else
|
||||
{
|
||||
GdkEventSequence *sequence;
|
||||
GdkInputSource source;
|
||||
|
Loading…
Reference in New Issue
Block a user