displaying an image



When I use:

 

Gtk::Image* icon_image = new Gtk::Image("Positive-48.png");

vertical_box->pack_start((Gtk::Widget&)*icon_image, Gtk::PACK_SHRINK, 0);

 

show_all_children();

 

in Gtkmm, I get a black box with no image displayed. If I do comparable code in Gtk+

I get a sharp looking image. What am I doing wrong ?

 

Randy Seedle



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