Re: [gtk-list] Re: Gtk-Perl and Pixmaps
- From: Dermot Musgrove <dermot glade perl connectfree co uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Gtk-Perl and Pixmaps
- Date: Mon, 04 Oct 1999 01:57:20 +0000
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]