Re: GObject constructor
| From: | Steph Fox | Date: | Sat, 14 Oct 2006 22:05:57 +0000 |
| Subject: | Re: GObject constructor | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3473@lists.php.net to get a copy of this message | ||
I'm not sure it should be implemented at all - how would you use it when creating a custom widget exactly?
- Steph
Okay, I have this implemented. But exactly how useful is this? $w = new GObject(GtkWindow::gtype, array('type' => Gtk::WINDOW_POPUP)); $w->show_all(); Will give: Fatal error: Call to undefined method GObject::show_all() in /Users/ andrei/dev/php-gtk/c.php on line 5 I can only see this being used in a constructor of a custom widget that extends some class.. -Andrei On Sep 28, 2006, at 11:09 PM, Christian Weiske wrote:Hello all, I guess we don't want to have a GObject constructor as the C method provides? With a parameter for the gtype and an array of property key-value pairs? -- Regards/MfG, Christian Weiske-- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com