GtkPlug for Windows
| From: | Elizabeth Smith | Date: | Thu, 25 Jan 2007 15:51:17 +0000 |
| Subject: | GtkPlug for Windows | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-3576@lists.php.net to get a copy of this message | ||
Morning,
As of Gtk+ 2.8 gtkplug and gtksocket work on windows. I don't know if
anyone has tested the current gtkplug constructor override but I found
it didn't work (at least on windows).
The attached diff adds the construct method (which is different from new
and doesn't create and object). The diff also changes the original
override to call gtk_plug_new. If you send new GtkPlug a socket_id of 0
you can later call GtkPlug->construct with a new socket_id.
It would be nice if there was a way to mark something in the generator
relevant for a specific library version - then php-gtk2 could build
against 2.6, 2.8 and 2.10.
Anyway, the attachment replaces the current gtkplug constructor override
and adds the construct method, it also removes the win32 ignores - that
part may need to be omitted until there's a way to mark items by gtk lib
version or the requirement for php-gtk2 is raised from 2.6.
Also I'm sending a couple demos to use with the new functions. (Thanks
to Leon Pegg for writing them :)
Thanks,
Elizabeth Smith