Using alternate constructors

From: Date: Thu, 15 Dec 2005 04:53:09 +0000
Subject: Using alternate constructors
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6398@lists.php.net to get a copy of this message
Hello All! Just a small doubt. How do I actually use the alternate constructors for some of the GtkClasses? For example, if I want to create a new Tool Button, but from the stock, I obviously can't use: > $toolbutton = new GtkToolButton::new_from_stock("gtk-ok"); Whereas: > $toolbutton = new GtkToolButton("gtk-ok"); returns an error: Parameter for GtkToolButton::__construct() must be a widget. However: > $menuitem = new GtkMenuItem("_File"); gives me a proper mnemonified menu item with 'F' as an accelerator. I haven't mentioned new_with_mnemonic() anywhere! What am I missing? Thanks and Regards, -- Anant Narayanan ------------------------- Find Freedom! http://www.kix.in/

« previous php.gtk.general (#6398) next »