in reply to Perl-Gtk2::How to set a window background image.
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 | |
by renegadex (Beadle) on Nov 27, 2008 at 10:50 UTC |