Any suggestions on what is wrong with this? I keep getting the error 'Gdk-CRITICAL **: gdk_screen_list_visuals: assertion `GDK_IS_SCREEN (screen)''. The line is erroring is 'my ($pixmap, $mask)=$pixbuf->render_pixmap_and_mask(0);'. my $screen=Gtk2::Gdk::Screen->new; my $window=$screen->get_root_window; my $pixbuf=Gtk2::Gdk::Pixbuf->new_from_file($file); my ($pixmap, $mask)=$pixbuf->render_pixmap_and_mask(0); $window->set_back_pixmap ($pixmap);
Attachment:
signature.asc
Description: PGP signature