RE: Re[2]: [PHP-GTK-DEV] create cursor
| From: | Steph | Date: | Wed, 04 Aug 2004 10:42:52 +0000 |
| Subject: | RE: Re[2]: [PHP-GTK-DEV] create cursor | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-669@lists.php.net to get a copy of this message | ||
Thanks for trying this, Tom!
hmm. (my copy, that error's line 157..)
Was this using the test script I attached before, the one with Christian's
monochrome pixmap in it?
If so, could you please try messing with the parameters for the
cursor_new_from_pixmap() call?
e.g.
$cursor = gdk::cursor_new_from_pixmap($mask, $mask, $style->white,
$style->black, 1, 1);
$cursor = gdk::cursor_new_from_pixmap($pixmap, $mask, null, null, 1, 1);
(any variations on the theme)
Just to confuse the issue further, in the original GDK docs for this, two
bitmaps are used..!
- Steph
> -----Original Message-----
> From: Tom Rogers [mailto:trogers@kwikin.com]
> Sent: 04 August 2004 04:04
> To: Steph
> Cc: Christian Weiske; PHP-GTK Dev list
> Subject: Re[2]: [PHP-GTK-DEV] create cursor
>
>
> Hi,
>
> Wednesday, August 4, 2004, 2:15:38 AM, you wrote:
> S> It shouldn't have a pixmap as a second parameter - that looks like an
> S> original GTK+ bug to me. Don't have the time to make a new
> build and check
> S> right now, but if anyone does, all you'd need to do is alter
> gdk.defs so it
> S> reads GdkBitmap for the second parameter of cursor_new_from_pixmap and
> S> rebuild (for test purposes - actual fix should be added to overrides).
>
> S> Anyone?
>
> Did that and now the error is:
>
>
> (cursor.php:2256): Gdk-CRITICAL **: file gdkcursor-win32.c: line
> 162: assertion
> `source_image->depth == 1 && mask_image->depth == 1' failed
>
>
> will investigate a bit further
>
> --
> regards,
> Tom
>