mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
Stop using GtkBox's pack-type child prop in UI files
This commit is contained in:
parent
ab6a67dbeb
commit
3a13515777
@ -3057,9 +3057,6 @@ microphone-sensitivity-medium-symbolic</property>
|
||||
<class name="small-button"/>
|
||||
</style>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
@ -3090,9 +3087,6 @@ microphone-sensitivity-medium-symbolic</property>
|
||||
<class name="small-button"/>
|
||||
</style>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
@ -31,6 +31,8 @@
|
||||
<property name="icon-name">insert-object-symbolic</property>
|
||||
<property name="tooltip-text" translatable="yes">Add debug nodes</property>
|
||||
<property name="active" bind-source="GtkInspectorRecorder" bind-property="debug-nodes" bind-flags="bidirectional|sync-create"/>
|
||||
<property name="halign">start</property>
|
||||
<property name="hexpand">1</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
@ -41,9 +43,6 @@
|
||||
<property name="tooltip-text" translatable="yes">Save selected node</property>
|
||||
<signal name="clicked" handler="render_node_save"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
@ -21,10 +21,9 @@
|
||||
<child internal-child="action_area">
|
||||
<object class="GtkButtonBox" id="dialog-action_area1">
|
||||
<property name="layout-style">end</property>
|
||||
<property name="hexpand">1</property>
|
||||
<property name="halign">end</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox" id="inner_box">
|
||||
|
@ -28,14 +28,8 @@
|
||||
<class name="dialog-action-area"/>
|
||||
</style>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
@ -13,10 +13,9 @@
|
||||
<object class="GtkButtonBox" id="dialog-action_area1">
|
||||
<property name="margin">6</property>
|
||||
<property name="layout-style">end</property>
|
||||
<property name="hexpand">1</property>
|
||||
<property name="halign">end</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFileChooserWidget" id="widget">
|
||||
|
@ -65,10 +65,6 @@
|
||||
<property name="icon-name">folder-new-symbolic</property>
|
||||
<signal name="notify::active" handler="new_folder_popover_active"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
@ -101,9 +97,6 @@
|
||||
<object class="GtkSpinner" id="search_spinner">
|
||||
<property name="visible">0</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
@ -367,9 +360,6 @@
|
||||
<property name="valign">start</property>
|
||||
<signal name="changed" handler="filter_combo_changed" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
@ -377,10 +367,6 @@
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
<property name="pack-type">end</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
@ -1169,7 +1169,6 @@
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
@ -983,22 +983,16 @@ test_child_properties (void)
|
||||
" <object class=\"GtkBox\" id=\"vbox1\">"
|
||||
" <child>"
|
||||
" <object class=\"GtkLabel\" id=\"label1\"/>"
|
||||
" <packing>"
|
||||
" <property name=\"pack-type\">start</property>"
|
||||
" </packing>"
|
||||
" </child>"
|
||||
" <child>"
|
||||
" <object class=\"GtkLabel\" id=\"label2\"/>"
|
||||
" <packing>"
|
||||
" <property name=\"pack-type\">end</property>"
|
||||
" </packing>"
|
||||
" </child>"
|
||||
" </object>"
|
||||
"</interface>";
|
||||
|
||||
GObject *label, *vbox;
|
||||
GtkPackType pack_type;
|
||||
|
||||
int position;
|
||||
|
||||
builder = builder_new_from_string (buffer1, -1, NULL);
|
||||
vbox = gtk_builder_get_object (builder, "vbox1");
|
||||
g_assert (GTK_IS_BOX (vbox));
|
||||
@ -1007,19 +1001,19 @@ test_child_properties (void)
|
||||
g_assert (GTK_IS_LABEL (label));
|
||||
gtk_container_child_get (GTK_CONTAINER (vbox),
|
||||
GTK_WIDGET (label),
|
||||
"pack-type",
|
||||
&pack_type,
|
||||
"position",
|
||||
&position,
|
||||
NULL);
|
||||
g_assert (pack_type == GTK_PACK_START);
|
||||
|
||||
g_assert_cmpint (position, ==, 0);
|
||||
|
||||
label = gtk_builder_get_object (builder, "label2");
|
||||
g_assert (GTK_IS_LABEL (label));
|
||||
gtk_container_child_get (GTK_CONTAINER (vbox),
|
||||
GTK_WIDGET (label),
|
||||
"pack-type",
|
||||
&pack_type,
|
||||
"position",
|
||||
&position,
|
||||
NULL);
|
||||
g_assert (pack_type == GTK_PACK_END);
|
||||
g_assert_cmpint (position, ==, 1);
|
||||
|
||||
g_object_unref (builder);
|
||||
}
|
||||
@ -1787,9 +1781,6 @@ test_reference_counting (void)
|
||||
" <property name=\"orientation\">vertical</property>"
|
||||
" <child>"
|
||||
" <object class=\"GtkLabel\" id=\"label1\"/>"
|
||||
" <packing>"
|
||||
" <property name=\"pack-type\">start</property>"
|
||||
" </packing>"
|
||||
" </child>"
|
||||
" </object>"
|
||||
"</interface>";
|
||||
|
Loading…
Reference in New Issue
Block a user