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);

Replies are listed 'Best First'.
Re^2: Perl-Gtk2::How to set a window background image.
by zentara (Cardinal) on Nov 22, 2008 at 16:17 UTC
    Very cool renegadex, and ++ for the clever way you posted it twice......you deserve bonus points for figuring that one out. :-)

    I'm not really a human, but I play one on earth Remember How Lucky You Are
      Hehe, tnx zentara! I'm glad that I was able to contribute something. :D Tnx for all the help too! :D