summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-28 15:36:20 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-28 15:36:20 (EDT)
commit3851962ad7c5e8f7e346b3beeb3ec5f508e4a026 (patch)
tree6f6b9a9fce459110608535647daf4a9f172b5e19 /src
parentdc37d3c4a78af228a6a51b7248cadef9e01b3b27 (diff)
downloadmarquee-3851962ad7c5e8f7e346b3beeb3ec5f508e4a026.zip
marquee-3851962ad7c5e8f7e346b3beeb3ec5f508e4a026.tar.gz
marquee-3851962ad7c5e8f7e346b3beeb3ec5f508e4a026.tar.bz2
MqTab: Select current tab in list
Diffstat (limited to 'src')
-rw-r--r--src/tab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tab.c b/src/tab.c
index 47daeba..ff22eae 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -181,6 +181,9 @@ create_tab_list(MqTab *tab)
gtk_tree_selection_set_mode(tree_selection, GTK_SELECTION_BROWSE);
gtk_tree_view_set_model(GTK_TREE_VIEW(tree_view),
create_tree_model(tab));
+ gtk_tree_selection_select_path(tree_selection,
+ gtk_tree_path_new_from_indices(
+ mq_window_get_current_tab(tab->window) - 1, -1));
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_view), FALSE);
gtk_tree_view_set_activate_on_single_click(GTK_TREE_VIEW(tree_view),
TRUE);