gui: Update the row_activated signal
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
99e849a106
commit
3654644b1c
15
gui/tabs.cpp
15
gui/tabs.cpp
|
@ -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;
|
||||
|
|
|
@ -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 &);
|
||||
|
|
Loading…
Reference in New Issue