Re: How to create GdkPixmaps before windows



Thank you very much for your answer. Unfortunately, I've some troubles in
use of gdk_pixmap_new_from_xpm_d, as I have the xpm data stored in files.
    I don't have clear if the gchar** argument refers to the xpm file
content (with all the parenthesis, the header etc), as the API reference
seems to indicate... but it don't seem to work; and I don't think it's so,
reading the GTK tutorial... and, on the other hand, if so, why requesting a
gchar** and not a gchar*?
    If it's needed a 'structured' xpm array, I'm in trouble because I should
somehow get it from the file I have... is there a commodity function to do
this, or should I do it by hand?
    I think I'll check the gnome-libs sources, to have an answer. For now,
thank you very much and happy easter...
    Mano :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Questa non è una lettera da mettere da
 parte con leggerezza.Bisogna scagliarla
 via con grande forza.
        --Dorothy Parker
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Germano Rizzo - manomano ciaoweb it
http://mano.interfree.it
http://www.bdp.it/~veee0001/
http://gnomermind.sourceforge.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
From: "Havoc Pennington" <hp redhat com>
To: "Germano Rizzo" <manomano ciaoweb it>
Cc: <gnome-devel-list gnome org>
Sent: Friday, April 13, 2001 1:54 PM
Subject: 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]