diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-05 00:12:59 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-05 00:15:51 +0100 |
commit | ecc4c4f368068e3734c58749edc3cce9a548f112 (patch) | |
tree | f04cd0bbd86a52eddf4ce5aedf9e78ad6c0ef20b /examples | |
parent | 31b65e6721573981f21f5200de4498c95d997d4b (diff) | |
download | gtk+-ecc4c4f368068e3734c58749edc3cce9a548f112.tar.gz |
examples: Update GtkGrid definitions in UI files
Diffstat (limited to 'examples')
-rw-r--r-- | examples/application10/prefs.ui | 36 | ||||
-rw-r--r-- | examples/application6/prefs.ui | 36 | ||||
-rw-r--r-- | examples/application7/prefs.ui | 36 | ||||
-rw-r--r-- | examples/application8/prefs.ui | 36 | ||||
-rw-r--r-- | examples/application9/prefs.ui | 36 | ||||
-rw-r--r-- | examples/builder.ui | 27 |
6 files changed, 109 insertions, 98 deletions
diff --git a/examples/application10/prefs.ui b/examples/application10/prefs.ui index 00e917763f..90d488ef9c 100644 --- a/examples/application10/prefs.ui +++ b/examples/application10/prefs.ui @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <interface> <template class="ExampleAppPrefs" parent="GtkDialog"> <property name="title" translatable="yes">Preferences</property> @@ -16,18 +17,19 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> </child> <child> - <object class="GtkFontButton" id="font"/> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> - </packing> + <object class="GtkFontButton" id="font"> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </layout> + </object> </child> <child> <object class="GtkLabel" id="transitionlabel"> @@ -35,11 +37,11 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - </packing> </child> <child> <object class="GtkComboBoxText" id="transition"> @@ -48,11 +50,11 @@ <item translatable="yes" id="crossfade">Fade</item> <item translatable="yes" id="slide-left-right">Slide</item> </items> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">1</property> - </packing> </child> </object> </child> diff --git a/examples/application6/prefs.ui b/examples/application6/prefs.ui index 00e917763f..90d488ef9c 100644 --- a/examples/application6/prefs.ui +++ b/examples/application6/prefs.ui @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <interface> <template class="ExampleAppPrefs" parent="GtkDialog"> <property name="title" translatable="yes">Preferences</property> @@ -16,18 +17,19 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> </child> <child> - <object class="GtkFontButton" id="font"/> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> - </packing> + <object class="GtkFontButton" id="font"> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </layout> + </object> </child> <child> <object class="GtkLabel" id="transitionlabel"> @@ -35,11 +37,11 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - </packing> </child> <child> <object class="GtkComboBoxText" id="transition"> @@ -48,11 +50,11 @@ <item translatable="yes" id="crossfade">Fade</item> <item translatable="yes" id="slide-left-right">Slide</item> </items> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">1</property> - </packing> </child> </object> </child> diff --git a/examples/application7/prefs.ui b/examples/application7/prefs.ui index 00e917763f..90d488ef9c 100644 --- a/examples/application7/prefs.ui +++ b/examples/application7/prefs.ui @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <interface> <template class="ExampleAppPrefs" parent="GtkDialog"> <property name="title" translatable="yes">Preferences</property> @@ -16,18 +17,19 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> </child> <child> - <object class="GtkFontButton" id="font"/> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> - </packing> + <object class="GtkFontButton" id="font"> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </layout> + </object> </child> <child> <object class="GtkLabel" id="transitionlabel"> @@ -35,11 +37,11 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - </packing> </child> <child> <object class="GtkComboBoxText" id="transition"> @@ -48,11 +50,11 @@ <item translatable="yes" id="crossfade">Fade</item> <item translatable="yes" id="slide-left-right">Slide</item> </items> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">1</property> - </packing> </child> </object> </child> diff --git a/examples/application8/prefs.ui b/examples/application8/prefs.ui index 00e917763f..90d488ef9c 100644 --- a/examples/application8/prefs.ui +++ b/examples/application8/prefs.ui @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <interface> <template class="ExampleAppPrefs" parent="GtkDialog"> <property name="title" translatable="yes">Preferences</property> @@ -16,18 +17,19 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> </child> <child> - <object class="GtkFontButton" id="font"/> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> - </packing> + <object class="GtkFontButton" id="font"> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </layout> + </object> </child> <child> <object class="GtkLabel" id="transitionlabel"> @@ -35,11 +37,11 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - </packing> </child> <child> <object class="GtkComboBoxText" id="transition"> @@ -48,11 +50,11 @@ <item translatable="yes" id="crossfade">Fade</item> <item translatable="yes" id="slide-left-right">Slide</item> </items> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">1</property> - </packing> </child> </object> </child> diff --git a/examples/application9/prefs.ui b/examples/application9/prefs.ui index 00e917763f..90d488ef9c 100644 --- a/examples/application9/prefs.ui +++ b/examples/application9/prefs.ui @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <interface> <template class="ExampleAppPrefs" parent="GtkDialog"> <property name="title" translatable="yes">Preferences</property> @@ -16,18 +17,19 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> </child> <child> - <object class="GtkFontButton" id="font"/> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> - </packing> + <object class="GtkFontButton" id="font"> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </layout> + </object> </child> <child> <object class="GtkLabel" id="transitionlabel"> @@ -35,11 +37,11 @@ <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - </packing> </child> <child> <object class="GtkComboBoxText" id="transition"> @@ -48,11 +50,11 @@ <item translatable="yes" id="crossfade">Fade</item> <item translatable="yes" id="slide-left-right">Slide</item> </items> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </layout> </object> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">1</property> - </packing> </child> </object> </child> diff --git a/examples/builder.ui b/examples/builder.ui index eb4c60c866..0f16026c01 100644 --- a/examples/builder.ui +++ b/examples/builder.ui @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <interface> <object id="window" class="GtkWindow"> <property name="title">Grid</property> @@ -6,30 +7,30 @@ <child> <object id="button1" class="GtkButton"> <property name="label">Button 1</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">0</property> - </packing> </child> <child> <object id="button2" class="GtkButton"> <property name="label">Button 2</property> + <layout> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </layout> </object> - <packing> - <property name="left-attach">1</property> - <property name="top-attach">0</property> - </packing> </child> <child> <object id="quit" class="GtkButton"> <property name="label">Quit</property> + <layout> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + <property name="column-span">2</property> + </layout> </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - <property name="width">2</property> - </packing> </child> </object> </child> |