Hi,
Yes, one problem with learning PHP-GTK2 is that documentation is little and not updated.
In case you're not aware, you might want to download a copy of the PHP-GTK Explorer that I've written:
http://www.kksou.com/php-gtk2/Tools/PHP-GTK-Explorer-v1.05.php
Using the PHP-GTK Explorer, try search for the keyword "xpm". You will see all the methods related to xpm. In addition, you will see the exact parameters that are required, and the object returned.
In your case, you might want to take a look at the following sample code:
Sample Code 134: How to change cursor over clickable GtkLabel - Part 3 - using xpm data?
Using the PHP-GTK Explorer, you will see that there are not too many methods for xpm. So what you can do is to read the xpm data into a pixbuf. There are much much more methods for pixbuf that allow you to manipulate the image.
Hope this helps.
Regards,
/kksou