Re: How to create GdkPixmaps before windows



"Germano Rizzo" <manomano ciaoweb it> writes:
> Hi!
>     I'd like to create some GdkPixmaps out of some xpm files, but to do it I
> need a GdkWindow. The problem is, I want to create them at the very
> beginning of my application, and at that moment there isn't any visible
> gtkwindow/widget, not even created yet... so, I haven't got any GdkWindow to
> use!
>     Is there a useable window all the same? I'm yet in the window manager,
> so can I "borrow" another one? How to refer to it? Or must I create one via
> gdk_window_new? And, in this case, what to use as parent window, and what do
> I need to do to be able to use it for creating pixmaps (realize, show,
> map... ?)?

Use gdk_pixmap_colormap_create_from_xpm_d(), then you only need a
colormap, the window can be NULL.

Havoc




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