[Glade-users] Attempting to add a widget with type GtkLabel to a GtkExpander
Tristan Van Berkom
tvb at gnome.org
Sun Dec 17 22:41:13 EST 2006
Marcin Krzyzanowski wrote:
> Hi,
>
> Today, glade3 from HEAD, reports:
>
> (glade-3:19135): Gtk-WARNING **: Attempting to add a widget with type
> GtkLabel to a GtkExpander, but as a GtkBin subclass a GtkExpander can
> only
> contain one widget at a time; it already contains a widget of type
> GtkLabel
>
> and crash.
>
> This .glade file was created with glade-2 and GtkExpander has more
> than one
> GtkLabel as a child. It's like this:
>
really ?
What version of glade-2 generated it ?
The problem with your glade file is that it is
missing the indicator that one of the labels
is the "label-item" of the expander, the expander
can hold one in the label area and one in the
area visible when expanded, like so:
> <widget class="GtkExpander"
> id="DetailsExpander">
>
> <child>
> <widget class="GtkLabel"
> id="DetailsLabel">
> </widget>
> </child>
> <child>
> <widget class="GtkLabel"
> id="DetailsTitleLabel">
> </widget>
>
<packing>
<property name="type">label_item</property>
</packing>
> </child>
> </widget>
>
Cheers,
-Tristan
More information about the Glade-users
mailing list