Re: Newbie question - replacing Gtk2::Image with another



Hi. I have an app that displays a Gtk2::Image in a Frame, and that
works fine. I'm not quite able to figure out how to then replace that
image with a different one.

Use the set_from_* methods:

$image->set_from_file()
$image->set_from_image()
$image->set_from_pixbuf()
$image->set_from_pixmap()
$image->set_from_stock()

Incidentally, I use devhelp for browsing Gtk+ documentation. It's at
http://www.imendio.com/projects/devhelp/.

Gavin.

-- 
Gavin Brown
e: gavin brown uk com
w: http://jodrell.net/
PGP/GPG key ID: 891D8FCA




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