GtkListBox: Do not grab focus twice when activating a row via double click
Submitted by Jonathan Moerman
If you have a GtkListBox with activate_on_single_click set to false and double click on a row that results in:
- the row receiving focus
- the row being activated
- row receiving focus again
If the row_activated signal is used to, for example focus on an child GtkEntry within the row that is hidden once this entry loses focus this causes issues, as the entry will immediately lose focus.
Suggested behavior: Only make the clicked row grab focus once. (before row_activated is emitted.) It really doesn't make sense to grab focus twice.
I have not tested with master, but looking at gtk_list_box_multipress_gesture_released I think this behavior will still occur.
It would be great if this weird behavior isn't carried over to Gtk+-4.0.
(Reproduced with Gtk+-3.0 versions 3.18 and 3.22 (I think I've tested it with 3.14 too), I haven't tested any other versions.)