Creating pixmap from xpm with NULL window and colormap
| From: | Gabor Hojtsy | Date: | Tue, 01 Oct 2002 20:35:57 +0000 |
| Subject: | Creating pixmap from xpm with NULL window and colormap | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2491@lists.php.net to get a copy of this message | ||
Hi!
I use this code to load in an XPM:
| $white = new GdkColor(255, 255, 255);
| list($pixmap, $mask) =
| Gdk::pixmap_create_from_xpm(
| $window->window,
| $white,
| "f:/_gtk/code/feed.xpm"
| );
What PHP-GTK does with this is to load in the image,
though without any transparency on the white color, and
put out a warning to my DOS window, saying:
Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap
Well, I don't know what's the problem, the documentation page for
this is absolutely what I follow:
http://gtk.php.net/manual/en/gdk.method.pixmap_create_from_xpm.php
$window above is the main GtkWindow, and it should have a
window property, shouldn't it (inherited from GtkWidget)?
The feed.xpm file is absolutely correct XPM format, it's created
by imagemagick convert and it's viewable by image viewers. It's also
loaded in by my script, but the transparency is not in effect, and
that warning is printed.
Can anybody please give an advice what to do in this case.
Thanks,
Goba