Re: Pixmap problems



On 02/22/01 pat eyler wrote:
  Gtk::Gdk::Pixmap->create_from_xpm( $applet->window,
                                   $style,
                     ^^^^^^^ note: what is $style here?
                                   "./green-cloud-large.xpm" )
    or die "$!";

$image = new Gtk::Pixmap( $pixmap, $mask );
$image->show();
$applet->add($image);
$applet->show();


but each time I try to run it it dies with the error:

transparent_color is not of type Gtk::Gdk::Color at ./panel.pl line 5.

You're passing $style instead of a color, see above.

lupus

-- 
-----------------------------------------------------------------
lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better




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