Re[10]: [PHP-GTK-DEV] create cursor
| From: | Tom Rogers | Date: | Thu, 05 Aug 2004 16:11:25 +0000 |
| Subject: | Re[10]: [PHP-GTK-DEV] create cursor | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-678@lists.php.net to get a copy of this message | ||
Hi,
Friday, August 6, 2004, 2:10:01 AM, you wrote:
S> Wow, you used GdkImage?
S> /me is impressed
S> If simply replacing pixmap with bitmap in the .defs file works, wouldn't it
S> be easier to take the resulting entry from gen_gdk.c and put that into
S> gdk.overrides?
S> Just a thought
S> - Steph
It is not that simple, one of the errors is expecting a pixmap for the
mask which is a bitmap (php complains not gdk). Fixing that was easy
by changing the defs. The other problem is that the pixmap doesn't
have a colour depth of 1 (16 I think it was) so you can't simply change
it to a bit map, hence the copy pixel by pixel. Doing it this way
keeps the php side simple to use. The code I gave needs to go into the
overides file as long as it works under linux.
--
regards,
Tom