Re: [gtkmm] Problem with Gdk::Pixbuf in Gtk::TreeView
- From: Murray Cumming <murrayc usa net>
- To: Simon Fuhrmann <NightSlayer gmx de>
- Cc: Martin Schulze <martin-ml hippogriff de>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Problem with Gdk::Pixbuf in Gtk::TreeView
- Date: 05 Sep 2003 17:47:53 +0200
On Fri, 2003-09-05 at 17:19, Simon Fuhrmann wrote:
> The code to add a column for a Glib::RefPtr<Gdk::Pixbuf> looks like this now:
>
> /* Create renderer */
> Gtk::CellRendererPixbuf *imagerenderer =
> Gtk::manage(new Gtk::CellRendererPixbuf);
> /* Create col */
> Gtk::TreeViewColumn* iconcolumn =
> Gtk::manage(new Gtk::TreeViewColumn("Icon", *imagerenderer));
> /* Add renderer and Gtk::ModelViewColumn to the Gtk::TreeView::Column */
> iconcolumn->set_renderer(*imagerenderer, this->column_set.icon);
> /* Add col to Gtk::TreeView */
> this->tree_view.append_column (*iconcolumn);
>
> Regards,
I haven't been following this, but it really should work with a simple
append_column(). Surely we do this in the demos or examples? I'd like a
test case in bugzilla, please, if that doesn't work.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]