13
0

highlight default sort column

This commit is contained in:
Robin Gareus 2015-09-16 18:21:00 +02:00
parent 7e65835c0e
commit b3e447f421

View File

@ -599,7 +599,7 @@ SessionDialog::redisplay_recent_sessions ()
recent_session_display.set_model (recent_session_model); recent_session_display.set_model (recent_session_model);
return 0; return 0;
} }
//
// sort them alphabetically // sort them alphabetically
sort (rs.begin(), rs.end(), cmp); sort (rs.begin(), rs.end(), cmp);
@ -750,6 +750,7 @@ SessionDialog::redisplay_recent_sessions ()
Gtk::TreeView::Column* pColumn; Gtk::TreeView::Column* pColumn;
if ((pColumn = recent_session_display.get_column (0))) { // name if ((pColumn = recent_session_display.get_column (0))) { // name
pColumn->set_sort_column (recent_session_columns.visible_name); pColumn->set_sort_column (recent_session_columns.visible_name);
pColumn->set_sort_indicator (true);
} }
if ((pColumn = recent_session_display.get_column (3))) { // date if ((pColumn = recent_session_display.get_column (3))) { // date
pColumn->set_sort_column (recent_session_columns.time_modified); // unixtime pColumn->set_sort_column (recent_session_columns.time_modified); // unixtime