Re: Setting child properties with GtkBuilder



Thank you, that works. Could you or anyone perhaps explain why normally
setting the property on the child like a normal child-property does not
work for containers?

On Sun, May 06, 2012 at 02:16:26PM +0200, Jean Brefort wrote:
> Sorry, I forgot the packing node. Try that:
> 
> <object class="GtkGrid">
>  <child>
>   <object class="GtkLabel"/>
>   <packing>
>    <property name="left-attach">0</property>
>   </packing>
>  </child>
> </object>
> 
> You might also use glade to generate the ui file without syntax errors.
> 
> Regards,
> Jean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]