CellRenderer properties corrupted when project loaded and saved.
Peter Onion <[email protected]> Fri, 02 Feb 2018 18:32:19 +0000
| Newsgroups | gmane.comp.gnome.glade.devel |
|---|---|
| Message-ID | <1517596339.6500.15.camel@HP173> |
--=-nI/UG9t0nJ9j5oj1lCvN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
This problem has come in somewhere after 3.18
I've tried 3.20.2 and 3.21.0 and the problem still exists.
I've spent today trying to figure out where the problem is but so far
I'm still unable to trace the values in cell renderer properties in
glade files (like "text" and "visible") through to the code that should
set the values into the widget objects.
The attached glade files shows the problem.
nobug.glade was created and saved with 3.21.0
bug.glade was saved after reloading nobug.glade
As you can see the column numbers set have all been set to zero.
Peter Onion
--=-nI/UG9t0nJ9j5oj1lCvN
Content-Type: application/x-glade; name="nobug.glade"
Content-Disposition: attachment; filename="nobug.glade"
Content-Transfer-Encoding: 7bit
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.21.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkTreeStore" id="theTreeStore">
<columns>
<!-- column-name visible -->
<column type="gboolean"/>
<!-- column-name name -->
<column type="gchararray"/>
<!-- column-name value -->
<column type="gint"/>
</columns>
</object>
<object class="GtkWindow">
<property name="can_focus">False</property>
<child>
<object class="GtkScrolledWindow" id="theScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="TheTreeView">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">theTreeStore</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
<child>
<object class="GtkTreeViewColumn" id="col1">
<property name="title" translatable="yes">column1</property>
<child>
<object class="GtkCellRendererText" id="nameRenderer"/>
<attributes>
<attribute name="visible">0</attribute>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="col2">
<property name="title" translatable="yes">column2</property>
<child>
<object class="GtkCellRendererText" id="valRenderer"/>
<attributes>
<attribute name="visible">0</attribute>
<attribute name="text">2</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child type="titlebar">
<placeholder/>
</child>
</object>
</interface>
--=-nI/UG9t0nJ9j5oj1lCvN
Content-Type: application/x-glade; name="bug.glade"
Content-Disposition: attachment; filename="bug.glade"
Content-Transfer-Encoding: 7bit
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.21.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkTreeStore" id="theTreeStore">
<columns>
<!-- column-name visible -->
<column type="gboolean"/>
<!-- column-name name -->
<column type="gchararray"/>
<!-- column-name value -->
<column type="gint"/>
</columns>
</object>
<object class="GtkWindow">
<property name="can_focus">False</property>
<child>
<object class="GtkScrolledWindow" id="theScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="TheTreeView">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">theTreeStore</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
<child>
<object class="GtkTreeViewColumn" id="col1">
<property name="title" translatable="yes">column1</property>
<child>
<object class="GtkCellRendererText" id="nameRenderer"/>
<attributes>
<attribute name="visible">0</attribute>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="col2">
<property name="title" translatable="yes">column2</property>
<child>
<object class="GtkCellRendererText" id="valRenderer"/>
<attributes>
<attribute name="visible">0</attribute>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child type="titlebar">
<placeholder/>
</child>
</object>
</interface>
--=-nI/UG9t0nJ9j5oj1lCvN
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR2xhZGUtZGV2
ZWwgbWFpbGxpc3QgIC0gIEdsYWRlLWRldmVsQGxpc3RzLmRvdC5uZXQKaHR0cDovL2xpc3RzLmRv
dC5uZXQvbWFpbG1hbi9saXN0aW5mby9nbGFkZS1kZXZlbAo=
--=-nI/UG9t0nJ9j5oj1lCvN--