http://qs321.pair.com?node_id=725281


in reply to Perl-Gtk2::How to set a window background image.

try this.. i got it from the php cookbook. and converted it to perl.
my $back_pixbuf = Gtk2::Gdk::Pixbuf->new_from_file($image); my ($pixmap,$mask) = $back_pixbuf->render_pixmap_and_mask(255); my $style = $window->get_style(); $style=$style->copy(); $style->bg_pixmap("normal",$pixmap); $window->set_style($style);