Re: Using alternate constructors
| From: | Anant Narayanan | Date: | Sun, 18 Dec 2005 08:37:19 +0000 |
| Subject: | Re: Using alternate constructors | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6425@lists.php.net to get a copy of this message | ||
Hello Christian!
> Erm, you have to pass an integer and not a string. Use
> Gtk::STOCK_OK
Isn't the ID a string like gtk-ok? Because that's what the Stock item
browser tells me. Anyway, even:
$toolbutton = new GtkToolButton::new_from_stock(Gtk::STOCK_OK)
isn't working. It spits:
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE
or '$' in .... line watever.
Is it because the new_from_stock method is not yet implemented or am I
doing something stupid?
All I want is to create a clone of the palette in glade, a set of
clickable icons. Of course, in gtk we would just: toolbutton =
(GtkWidget*) gtk_tool_button_new_from_stock ("gtk-ok"); so the glade
sources are of no use.
The Dev-inspector is a very nifty and helpful tool, should help a
great deal in doccing :-)
Great work! So it determines all the classes and its methods from the
locally installed version of PHP-Gtk2 right?
Cheers! (It's the festive season :-))
--
Anant Narayanan
-------------------------
Find Freedom!
http://www.kix.in/