Re: Helix gnome + intl/ dir

On Thu, 15 Mar 2001, Naba Kumar wrote:

> > BTW: Anjuta is really very good, but I do always get slight and stupid error
> >  messages from Gdk:
> >
> >  Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap
> >
> > Why could that be? I do have got all these messages since m first try of anjuta
> >  last year... Which XPM files are you using which are OUTSIDE the anjuta package
> >   itself?
> > --
> Actually, Those warnings come for the pixmap files _inside_ Anjuta.
> I mean, the xpm files are included as gchar*. These are actually small
> pixmaps which I thought would go better in the source rather than
> loading from xpm files at run time.
> The problem is when I create the GdkPixmap from these pixmap_data,
> the widgets are not yet created (so is the GdkWindow inside the widgets).
> The function (gdk_pixmap_create_from_data()) probably use the
> GdkWindow for generating the mask.

Try the following:

  pixmap = gdk_pixmap_colormap_create_from_xpm_d(NULL,
              &mask, NULL, xpm_data);

Where widget is the widget is the widget you are going to use the pixmap
with (or maybe its parent).


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