diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-02-20 15:47:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-20 07:24:28 -0800 |
commit | 57e8349b87642691671e274348e07772c7d7d584 (patch) | |
tree | de42bc4ededae27132d2cb2ab281a5523b9e0d0e /divelist.c | |
parent | b406dbe1c05fa618c3c1d1f23751ccf07629f0d3 (diff) | |
download | subsurface-57e8349b87642691671e274348e07772c7d7d584.tar.gz |
Preserve keyboard focus when changing sorting order in the divelist
When the user changes the dive list sorting order via clicking
on different column titles, using gtk_widget_grab_focus() gives
keyboard focus back to the list itself (not staying on the column titles),
which gives a hint that the list itself has focus index of 0 and is
reset each time the widget receives this type of "initial" focus.
Acked-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index 0951194b3..bf9d18c6e 100644 --- a/divelist.c +++ b/divelist.c @@ -2316,6 +2316,7 @@ static void sort_column_change_cb(GtkTreeSortable *treeview, gpointer data) GtkSortType order; GtkTreeStore *currentmodel = dive_list.model; + gtk_widget_grab_focus(dive_list.tree_view); if (second_call) return; |