iconview: a double click works after a click on another item
This commit is contained in:
parent
bf41a56254
commit
21e2004e90
1 changed files with 3 additions and 2 deletions
|
|
@ -2244,8 +2244,9 @@ gtk_icon_view_button_press (GtkWidget *widget,
|
|||
icon_view->priv->press_start_y = event->y;
|
||||
}
|
||||
|
||||
if (!icon_view->priv->last_single_clicked)
|
||||
icon_view->priv->last_single_clicked = item;
|
||||
/* the item of this click, not of one long ago, or a double click
|
||||
* after a click on another item does nothing */
|
||||
icon_view->priv->last_single_clicked = item;
|
||||
|
||||
/* cancel the current editing, if it exists */
|
||||
gtk_icon_view_stop_editing (icon_view, TRUE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue