[Glade-users] Attempting to add a widget with type GtkLabel to a GtkExpander
- From: marcin.krzyzanowski at gmail.com (Marcin Krzyzanowski)
- Subject: [Glade-users] Attempting to add a widget with type GtkLabel to a GtkExpander
- Date: Mon, 18 Dec 2006 19:20:18 +0100
On 18/12/06, Tristan Van Berkom <tvb at gnome.org> wrote:
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:
This is exact copy, I can send you .glade file if you need to debug. I Crash
with 3.1.3.
<child>
<widget class="GtkExpander"
id="ContactDetailsExpander">
<property
name="visible">True</property>
<property
name="can_focus">True</property>
<property
name="expanded">False</property>
<property
name="spacing">0</property>
<child>
<widget class="GtkLabel"
id="ContactDetailsLabel">
<property
name="visible">True</property>
<property
name="can_focus">True</property>
<property name="label" translatable="yes"><b>Imi?:
</b>
<b>Nazwisko:
</b></property>
<property
name="use_underline">False</property>
<property
name="use_markup">True</property>
<property
name="justify">GTK_JUSTIFY_LEFT</property>
<property
name="wrap">True</property>
<property
name="selectable">True</property>
<property
name="xalign">0</property>
<property
name="yalign">0</property>
<property
name="xpad">0</property>
<property
name="ypad">0</property>
<property
name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property
name="width_chars">-1</property>
<property
name="single_line_mode">False</property>
<property
name="angle">0</property>
</widget>
</child>
<child>
<widget class="GtkLabel"
id="ContactDetailsTitleLabel">
<property
name="visible">True</property>
<property name="label"
translatable="yes"></property>
<property
name="use_underline">False</property>
<property
name="use_markup">True</property>
<property
name="justify">GTK_JUSTIFY_LEFT</property>
<property
name="wrap">False</property>
<property
name="selectable">False</property>
<property
name="xalign">0</property>
<property
name="yalign">0</property>
<property
name="xpad">0</property>
<property
name="ypad">0</property>
<property
name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property
name="width_chars">-1</property>
<property
name="single_line_mode">False</property>
<property
name="angle">0</property>
</widget>
<packing>
<property
name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property
name="padding">0</property>
<property
name="expand">False</property>
<property
name="fill">False</property>
</packing>
</child>
--
Marcin Krzy?anowski
http://www.hakore.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20061218/fdf75982/attachment-0001.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]