Re: Setting child properties with GtkBuilder



The property should be in the <child> node, not in the <object> node.

Regards,
Jean

Le dimanche 06 mai 2012 à 13:39 +0200, Cedric Sodhi a écrit :
> Hello,
> 
> I'm trying to build a tabular interface with GtkBuilder, using GtkGrid.
> 
> GtkGrid specifies that it provides child properties left-attach and
> top-attach and they do in fact exist, but whenever I attempt to set them
> by
> 
> <object class="GtkGrid">
>  <child>
>   <object class="GtkLabel">
> 	 <property name="left-attach">0</property>
>   </object>
>  </child>
> </object>
> 
> GtkBuilder says that "Unknown property: GtkLabel.left-attach"
> 
> Could anyone help with that?
> 
> Thanks.
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list




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