gui: Update the row_activated signal

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-02-23 13:21:39 -05:00 committed by Anna Schumaker
parent 99e849a106
commit 3654644b1c
2 changed files with 9 additions and 7 deletions

View File

@ -36,6 +36,8 @@ void Tab :: tab_finish_init()
&Tab::on_entry_changed));
tab_treeview->set_model(tab_filter);
tab_treeview->signal_row_activated().connect(sigc::mem_fun(*this,
&Tab :: on_row_activated));
}
@ -119,6 +121,12 @@ void Tab :: on_random_toggled()
tab_pq->unset_flag(PQ_RANDOM);
}
void Tab :: on_row_activated(const Gtk::TreePath &path, Gtk::TreeViewColumn *col)
{
Gtk::TreePath model_path = tab_filter->convert_path_to_child_path(path);
tab_model->on_path_selected(model_path);
}
/**
@ -625,13 +633,6 @@ void OcarinaPage::on_repeat_toggled()
model->queue->unset_flag(PQ_REPEAT);
}
void OcarinaPage::on_row_activated(const Gtk::TreePath &path, Gtk::TreeViewColumn *col)
{
Gtk::TreePath model_path = filter->convert_path_to_child_path(path);
model->on_path_selected(model_path);
}
void OcarinaPage::on_column_clicked(unsigned int col_index)
{
Gtk::Label *sorting;

View File

@ -62,6 +62,7 @@ public:
* GTK-MM callback functions
*/
void on_random_toggled();
void on_row_activated(const Gtk::TreePath &, Gtk::TreeViewColumn *);
/* Filtering functions */
bool on_filter_visible(const Gtk::TreeIter &);