Re: GtkPlug for Windows
| From: | Andrei Zmievski | Date: | Fri, 02 Feb 2007 02:15:04 +0000 |
| Subject: | Re: GtkPlug for Windows | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3669@lists.php.net to get a copy of this message | ||
On Feb 1, 2007, at 9:25 AM, Anant Narayanan wrote:
The g_object_new() works perfectly well with GtkPlug. The problem was that I screwed up in the initial override and used PHPG_GOBJECT(this_ptr) instead of wrapped_obj in the call to gtk_plug_construct(). I've committed a fix and tested and it seems to work fine. -AndreiThe problem is that using the phpg_gtype_from_zval and then trying to use gtk_plug_construct on it doesn't work - instead it throws Fatal error: Internal object missing in GtkPlug wrapper - so it's NOT creating a GtkPlug under normal circumstances - any ideas why this isn't working? I'd rather have a working implementation that can't be subclassed in userland than have a non-working version that can :)Elizabeth is right. g_object_new() doesn't work in GtkPlug's case; I assume that's because gtk_plug_new() performs some additional steps that is critical to the widget's functioning. If we can figure what those steps are; we can call g_object_new() and those steps and do away with gtk_plug_new(). For now, however, this seems to be the only way to get the thing to work.