Re: Create Cursor works
| From: | Andrei Zmievski | Date: | Sat, 07 Aug 2004 06:16:56 +0000 |
| Subject: | Re: Create Cursor works | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-694@lists.php.net to get a copy of this message | ||
On Fri, 06 Aug 2004, Christian Weiske wrote:
> Hi
>
> Andrei put the changes in cvs this night; and it works on my box.
>
> A note...
> The pixmap specs allow the first line to have 6 instead of 4 parameters;
> the last two can contain the x and y hotspot position for the case the
> pixmap is used as a cursor.
>
> Would it be *hard* to make the x and y parameter in the
> cursor_new_from_pixmap optional (default 0,0) and try to use the hotspot
> coordinates from the first line of the pixmap array?
Yes, it would be. The code that parses XPM data does not care at all
about x/y hotspot coordinates in Gtk+ 1.2.x. So it is impossible to get
access to them through any sort of data structure.
-Andrei
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl