Glade does not allows to set action-target property on widgets.
Let's create a GtkModelButton like this by hand:
<child>
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<child>
<object class="GtkModelButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="action_name">win.panel-gravity</property>
<property name="action_target">'west-up'</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</packing>
</child>
</child>
When we try to open this with glade (recent), we noticed 2 things:
- We does not have a way a to set an action target via GUI.
- When we save project, it becomes this:
<child>
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<child>
<object class="GtkModelButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="action_name">win.panel-gravity</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</packing>
</child>
</child>
and this change renders model buttons unusable (they was used as radio).
Edited by Konstantin