Re: [gtk-list] Re: Gtk-Perl and Pixmaps



Dr Noonian Soong wrote:
> 
> I've implemented that as follows and still get the same error (with a
> different line number, of course):
> 
> #!/usr/bin/perl
> 
> use Gtk;
> init Gtk;
> 
> $win = new Gtk::Window -toplevel;
> $cmap = $win->get_colormap;
> ($pixmap, $mask) = Gtk::Gdk::Pixmap->colormap_create_from_xpm($win, $cmap,
>                            $win->style->bg('normal'), 'pixmaps/test.xpm');
> 
> show $win;
> main Gtk;
You still haven't called $win->realize; before you get_colormap.

Dermot



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