Hello, Sash Well, I haven't worked with that, but I think the example "Icon View / Editing and Drag-and-Drop" might be helpful for you. This isn't GTKmm example. You can find the demo if "gtk-demo" application.
If you face with any problem, don't hesitate writing here. Best wishes, Vlad Volodin. p.s. if you can show your full source code, I may help better :) 2 мая 2009 г. 16:44 пользователь Саша Иваненко <[email protected]> написал: > Hi all. > > I want one of the columns of my TreeView to be a toggle-able icon - just like > a button with several > states. I set CellRendererPixbuf as a renderer for this column, but can't > figure out how to set pixbuf for > it. I added stock Gtk::Image to the xml using glade. I use the code I have > put below: > > CellRendererPixbuf* r = new Gtk::CellRendererPixbuf; > int cnt = tree_downloads->append_column("", *r); > TreeViewColumn* c = tree_downloads->get_column(cnt - 1); > r->property_pixbuf().set_value(ia->get_pixbuf()); > > The last line produces the error: > > (f-manager.exe:4332): Gtk-CRITICAL **: gtk_image_get_pixbuf: assertion > `image->storage_type == > GTK_IMAGE_PIXBUF || image->storage_type == GTK_IMAGE_EMPTY' failed > > Please help to configure CellRendererPixbuf properly. Can't find any docs on > that stuff. > > Thank you. > > > > > > Я в Моем Мире - http://my.mail.ru/mail/kitovyj/ > > _______________________________________________ > gtkmm-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
