gui: Add better sorting display

I show the column that is currently being sorted by.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-01-31 22:10:20 -05:00 committed by Anna Schumaker
parent b571018a53
commit 946b1a1bc9
1 changed files with 3 additions and 3 deletions

View File

@ -399,11 +399,11 @@ void OcarinaPage::on_column_clicked(unsigned int col_index)
{
Gtk::Label *sorting;
get_builder()->get_widget("o_sorting_indicator", sorting);
sorting->set_text("<*>");
if (sort_timeout_count == 0)
if (sort_timeout_count == 0) {
sorting->set_text("Sorting within " + page_view.get_column(col_index)->get_title());
model->queue->reset_sort(q_col_sorts[col_index]);
else
} else
model->queue->add_sort(q_col_sorts[col_index]);
sort_timeout_count++;
Glib::signal_timeout().connect_seconds_once(