> Just use a Glib::RefPtr<Gdk::Pixbuf> for your model view and everything
> should work automatically. Yes, it is a Gdk::CellRendererPixbuf that will
> be created, and that's what to create if you want to set the view column
> up manually. You should find plenty of examples of this - in the demo's
> stock items part for instance.
I am still struggling a bit with this. What should the stuff below look
like?
class GamePervAppModelColumns : public Gtk::TreeModelColumnRecord
{
public:
GamePervAppModelColumns()
{ add(mIcon); add(mszName); }
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > mIcon;
Gtk::TreeModelColumn<Glib::ustring> mszName;
};// end class GamePervAppModelColumns
Then what about the view part ...
mpGtkTreeView->append_column("Name", *pGdkPixbuf);
I can't find the "demo's stock items part" you mentioned either. Where
should I be looking for that?
Cheers,
Gaz
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list