Re: XID on win32
| From: | Andrei Zmievski | Date: | Fri, 16 Dec 2005 02:52:38 +0000 |
| Subject: | Re: XID on win32 | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2113@lists.php.net to get a copy of this message | ||
I applied the gdk.overrides patch. Don't worry about php_gtk+_types.c - the code there is old and will be removed soon.
-Andrei
On Dec 15, 2005, at 7:02 AM, Tom Rogers wrote:
Hi Here are some changes that will allow xid to return the Hwnd value. In gdk.overrides: %% override-prop GdkDrawable xid PHPG_PROP_READER { #if defined(GDK_WINDOWING_X11)RETVAL_LONG(GDK_DRAWABLE_XID(((GdkDrawable *)((phpg_gobject_t *)object)->obj)));#elseRETVAL_LONG((long) GDK_WINDOW_HWND((GdkDrawable *)((phpg_gobject_t *)object)->obj));#endifreturn SUCCESS;} And in php_gtk+_types.c remove: #ifndef PHP_WIN32"xid",#endif just leaving "xid" There are 3 places to change. -- Tom --PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php