Performing an action on click on cellrenderer



I have a treeview with the columns defined by:

class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
    ModelColumns()
    { add(label); add(val); }
    Gtk::TreeModelColumn<Glib::ustring> label;
    Gtk::TreeModelColumn<Glib::ustring> val;
};

Appending these columns to the treeview as:

     tView.append_column("Label", mColumns.label);
     tView.append_column("Value", mColumns.val);

where mColumns is an instance of ModelColumns.
I have not created cell renderer explicitly since append_column()
creates an appropriate cell renderer for the column.

Now on clicking the first cell of any row which is 'label' here, I
want to perform an action. How to get the particular cell on which I
can click?


-- 
Kamalpreet Kaur Grewal
Blog: http://kamalpreetgrewal.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]