[Glade-users] Attempting to add a widget with type GtkLabel to a GtkExpander
- From: tvb at gnome.org (Tristan Van Berkom)
- Subject: [Glade-users] Attempting to add a widget with type GtkLabel to a GtkExpander
- Date: Sun, 17 Dec 2006 22:41:13 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]