builder-tool: Replace GtkStack:homogeneous

Replace this property by h/vhomogeneous.

Add a test.
This commit is contained in:
Matthias Clasen 2020-04-28 19:59:13 -04:00
parent 5f01f6f36b
commit 2e2121c7ad
3 changed files with 5 additions and 1 deletions

View File

@ -732,7 +732,8 @@ maybe_rename_property (Element *element, MyParserData *data)
{ "GtkWidget", "margin", GTK_TYPE_WIDGET, PROP_KIND_OBJECT, "margin-bottom", { "margin-start", "margin-end", "margin-top" } },
{ "GtkWidget", "margin-left", GTK_TYPE_WIDGET, PROP_KIND_OBJECT, "margin-start", { NULL, NULL, NULL } },
{ "GtkWidget", "margin-right", GTK_TYPE_WIDGET, PROP_KIND_OBJECT, "margin-end", { NULL, NULL, NULL } },
{ "GtkHeaderBar", "show-close-button", GTK_TYPE_HEADER_BAR, PROP_KIND_OBJECT, "show-title-buttons", { NULL, NULL, NULL } }
{ "GtkHeaderBar", "show-close-button", GTK_TYPE_HEADER_BAR, PROP_KIND_OBJECT, "show-title-buttons", { NULL, NULL, NULL } },
{ "GtkStack", "homogeneous", GTK_TYPE_STACK, PROP_KIND_OBJECT, "hhomogeneous", { "vhomogeneous", NULL, NULL } }
};
int i, k, l;
PropKind kind;

View File

@ -10,6 +10,8 @@
</child>
<child>
<object class="GtkStack" id="stack1">
<property name="vhomogeneous">0</property>
<property name="hhomogeneous">0</property>
<child>
<object class="GtkStackPage">
<property name="name">page1</property>

View File

@ -14,6 +14,7 @@
<child>
<object class="GtkStack" id="stack1">
<property name="visible">True</property>
<property name="homogeneous">0</property>
<child>
<object class="GtkButton" id="page1">
<property name="label" translatable="yes">Yes</property>