Numeric IDs instead of names in exported XML file
This problem is true for both, GtkTreeView as well as GtkText.
The intention of both widgets is to be connected to a buffer, GtkTreeStore and GtkEntryBuffer, respectively. I created all four widgets and connected them:
- texteditJSON (GtkText)
- textbufJSON (GtkEntryBuffer)
- treeviewJSON (GtkTreeView)
- treestoreJSON (GtkTreeStore)
(The word "JSON" appears because the widgets are about JSON content).
Then,
- I set the property "buffer" of the widget texteditJSON to "textbufJSON"
- I set the property "model" of the widget treeviewJSON to "treestoreJSON"
So far, so good.
<object class="GtkEntryBuffer" id="textbufJSON"/>
However, when I hit "Export all", the produced UI file contains numeric IDs, for example:
<object class="GtkText" id="texteditJSON">
<property name="buffer">15</property>
</object>
And the loader throws an error:
Error: gjsonviewer.cmb.ui:15:50 Object with ID 15 not found
Edited by rexkogitans