Re: gtktoolbar: append_item

From: Date: Sat, 31 Jul 2004 17:40:15 +0000
Subject: Re: gtktoolbar: append_item
References: 1 2 3 4  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-994@lists.php.net to get a copy of this message
On Sat, 31 Jul 2004, Christian Weiske wrote: > Just one thing: > Before I couldn't really test the set_style cause it applies to elements > created with insert_element, but now I could test it and it doesn't seem > to work. > > I think it crashes with the set_style of GtkWidget, and is not > overridden. The best thing would be to rename the toolbar's set_style to > set_toolbar_style to distinguish between the two functions. I will check it out. By the way, your docs on *_element() funcs are not entirely correct. + The <parameter>widget_type</parameter> determines which type of widget + shall be inserted/created. <parameter>widget</parameter> has to be set + if <parameter>widget_type</parameter> is set to <literal>GTK_TOOLBAR_CHILD_WIDGET</literal>. + All other types require a <literal>null</literal> as <parameter>widget</parameter> + because they are created by the function. First of all, I would call the parameter 'child_type' instead of 'widget_type', since it can specify a space, which is not a widget. Secondly, the parameter can also be specified for GTK_TOOLBAR_CHILD_RADIOBUTTON. See these docs: http://www.pygtk.org/pygtk2reference/class-gtktoolbar.html#method-gtktoolbar--insert-element That is why I suggest looking at already existing docs when documenting. Thanks, -Andrei Politics is for the moment, an equation is for eternity. -- Albert Einstein

« previous php.gtk.doc (#994) next »