Re: [gtkmm] add a button into a TreeModel of Treeview ???
- From: Roger Leigh <roger whinlatter uklinux net>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] add a button into a TreeModel of Treeview ???
- Date: Tue, 22 Jun 2004 18:50:58 +0100
cedric <cedric probesys com> writes:
> i ve a problem with a Gtk::TreeModel::ColumnRecord: i want to put a
> button in it, but i don t manage to do it! :'(
>From my understanding of the TreeView, you would need to provide a new
CellRenderer, CellRendererButton, which would render a button for you.
It would implement properties such as property_label and
property_clicked_slot as a label and slot to call when clicked. You
would then put the label and slot into the TreeModel, and tie them to
the properties with Gtk::TreeViewColumn::add_attribute().
Point of interest: can the slots be copied by value and stored in the
TreeModel?
Regards,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]