>
>
>
> Am 08.05.2009 17:55 Uhr schrieb "Robert Arkiletian" unter
> <[email protected]>:
> >
> > This is how I do it for my application. Hope it helps.
> >
> >     Pixmap p, mask;
> >     XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display),
> >                                     apple_red_xpm, &p, &mask, NULL);
> >
> >     nwin.icon((char *)p);
>
> Would it help to put
>
>  p =
>
> In front of XpmCreatePixmapFromData?
>
>

All:  I built a fresh copy of FLTK 1.1.9 on Puppy Linux 4.1.2 with 
--enable-shared and --enable-xft configure options.  I recompiled my app with 
the FLTK documentation suggested main-window icon setting code in Puppy.  I 
made sure I was calling fl_open_display().  This build of my app does not 
complain to the console when creating the pixmap from the xpm data, but on the 
other hand, I don't see the new icon xpm appear either (just the default red 
x).  I tried to re-order some of the statements, but it has had no effect so 
far.

Robert:  I tried to adapt your code to mine, but it does not seem to work any 
different than the simpler version in the FLTK docs for Apendix F - OS Issues.  
That is, I'm still getting the default red X icon.

Matthias: No, I don't think it will help... the function is returning zero 
(probably the OK code), and is updating p via the address of p passed as an 
argument.  I don't have a good way to check it currently but the returned XID 
in p for the pixmap seems reasonable (0x0140007E).

Thanks for any additional thoughts!
--
Mike L.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to