> Gonzalo Garramuno schrieb:
> >>
> >> window must be shown before setting the icon.
> >
> > Thanks, that prevents the crash but the icon is not shown in the window.
>
> Yes, to show the icon, it must be set, before the window is shown.
>
> Maybe this helps:
>
> > int main( int argc, char** argv )
> > {
> >     fltk::Window window( 120, 220 );
> >     window.show();
> >     Pixmap p, mask;
>
> fl_open_display();
>
> >     if ( XpmCreatePixmapFromData(fltk::xdisplay,
> >                             DefaultRootWindow(fltk::xdisplay),
> >                             viewer_xpm,
> >                             &p,&mask, NULL) == XpmSuccess )

Thanks, but the icon is still not shown under Kubuntu.  I have no transparency 
in the icon so that's not the issue.

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to