[virt-tools-list] [virt-manager PATCHv2 08/13] Remove deprecated GtkMisc:ypad property

Radostin Stoyanov rstoyanov1 at gmail.com
Wed May 31 13:08:38 UTC 2017


GtkMisc:ypad was deprecated since Gtk version 3.14 and should not be
used in newly-written code. Use margin-top and margin-bottom instead.
Both have default value set to 0.

https://developer.gnome.org/gtk3/stable/GtkMisc.html#GtkMisc--ypad

https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget--margin-top

https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget--margin-bottom
---
 ui/addhardware.ui |  3 ++-
 ui/asyncjob.ui    |  6 ++++--
 ui/connect.ui     |  3 ++-
 ui/createnet.ui   |  6 ++++--
 ui/details.ui     | 18 ++++++++++++------
 ui/netlist.ui     |  3 ++-
 6 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/ui/addhardware.ui b/ui/addhardware.ui
index 7f10e17..2cf387e 100644
--- a/ui/addhardware.ui
+++ b/ui/addhardware.ui
@@ -85,7 +85,8 @@
                         <property name="valign">start</property>
                         <property name="margin_start">6</property>
                         <property name="margin_end">6</property>
-                        <property name="ypad">6</property>
+                        <property name="margin_top">6</property>
+                        <property name="margin_bottom">6</property>
                         <property name="label">Page title</property>
                         <property name="use_markup">True</property>
                         <property name="justify">fill</property>
diff --git a/ui/asyncjob.ui b/ui/asyncjob.ui
index 8494fe2..0404b3b 100644
--- a/ui/asyncjob.ui
+++ b/ui/asyncjob.ui
@@ -32,7 +32,8 @@
                 <property name="valign">start</property>
                 <property name="margin_start">3</property>
                 <property name="margin_end">3</property>
-                <property name="ypad">10</property>
+                <property name="margin_top">10</property>
+                <property name="margin_bottom">10</property>
                 <property name="stock">gtk-dialog-info</property>
                 <property name="icon_size">6</property>
               </object>
@@ -115,7 +116,8 @@
             <property name="valign">start</property>
             <property name="margin_start">3</property>
             <property name="margin_end">3</property>
-            <property name="ypad">3</property>
+            <property name="margin_top">3</property>
+            <property name="margin_bottom">3</property>
             <property name="label" translatable="yes">Processing...</property>
           </object>
           <packing>
diff --git a/ui/connect.ui b/ui/connect.ui
index a3acb58..4759abc 100644
--- a/ui/connect.ui
+++ b/ui/connect.ui
@@ -252,7 +252,8 @@
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
                 <property name="margin_left">24</property>
-                <property name="ypad">2</property>
+                <property name="margin_top">2</property>
+                <property name="margin_bottom">2</property>
                 <property name="label" translatable="yes">_Username:</property>
                 <property name="use_markup">True</property>
                 <property name="use_underline">True</property>
diff --git a/ui/createnet.ui b/ui/createnet.ui
index 1fe94ec..fd55812 100644
--- a/ui/createnet.ui
+++ b/ui/createnet.ui
@@ -362,7 +362,8 @@
                                         <property name="valign">start</property>
                                         <property name="margin_start">3</property>
                                         <property name="margin_end">3</property>
-                                        <property name="ypad">3</property>
+                                        <property name="margin_top">3</property>
+                                        <property name="margin_bottom">3</property>
                                         <property name="stock">gtk-dialog-info</property>
                                       </object>
                                       <packing>
@@ -781,7 +782,8 @@
                                         <property name="valign">start</property>
                                         <property name="margin_start">3</property>
                                         <property name="margin_end">3</property>
-                                        <property name="ypad">3</property>
+                                        <property name="margin_top">3</property>
+                                        <property name="margin_bottom">3</property>
                                         <property name="stock">gtk-dialog-info</property>
                                       </object>
                                       <packing>
diff --git a/ui/details.ui b/ui/details.ui
index 857ab50..8a3f616 100644
--- a/ui/details.ui
+++ b/ui/details.ui
@@ -2921,7 +2921,8 @@ if you know what you are doing.</small></property>
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
                                                     <property name="halign">start</property>
-                                                    <property name="ypad">8</property>
+                                                    <property name="margin_top">8</property>
+                                                    <property name="margin_bottom">8</property>
                                                     <property name="label" translatable="yes">Ke_rnel path:</property>
                                                     <property name="use_underline">True</property>
                                                     <property name="mnemonic_widget">boot-kernel</property>
@@ -2936,7 +2937,8 @@ if you know what you are doing.</small></property>
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
                                                     <property name="halign">start</property>
-                                                    <property name="ypad">8</property>
+                                                    <property name="margin_top">8</property>
+                                                    <property name="margin_bottom">8</property>
                                                     <property name="label" translatable="yes">_Initrd path:</property>
                                                     <property name="use_underline">True</property>
                                                     <property name="mnemonic_widget">boot-initrd</property>
@@ -3033,7 +3035,8 @@ if you know what you are doing.</small></property>
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
                                                     <property name="halign">start</property>
-                                                    <property name="ypad">8</property>
+                                                    <property name="margin_top">8</property>
+                                                    <property name="margin_bottom">8</property>
                                                     <property name="label" translatable="yes">Kernel ar_gs:</property>
                                                     <property name="use_underline">True</property>
                                                     <property name="mnemonic_widget">boot-kernel-args</property>
@@ -3066,7 +3069,8 @@ if you know what you are doing.</small></property>
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
                                                     <property name="halign">start</property>
-                                                    <property name="ypad">8</property>
+                                                    <property name="margin_top">8</property>
+                                                    <property name="margin_bottom">8</property>
                                                     <property name="label" translatable="yes">D_TB Path:</property>
                                                     <property name="use_underline">True</property>
                                                     <property name="mnemonic_widget">boot-dtb</property>
@@ -3705,7 +3709,8 @@ if you know what you are doing.</small></property>
                                                         <property name="can_focus">False</property>
                                                         <property name="halign">end</property>
                                                         <property name="valign">start</property>
-                                                        <property name="ypad">4</property>
+                                                        <property name="margin_top">4</property>
+                                                        <property name="margin_bottom">4</property>
                                                         <property name="label" translatable="yes">Storage forma_t:</property>
                                                         <property name="use_underline">True</property>
                                                         <property name="mnemonic_widget">disk-format</property>
@@ -5706,7 +5711,8 @@ if you know what you are doing.</small></property>
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
                                         <property name="halign">start</property>
-                                        <property name="ypad">3</property>
+                                        <property name="margin_top">3</property>
+                                        <property name="margin_bottom">3</property>
                                         <property name="label" translatable="yes">Address Type:</property>
                                       </object>
                                       <packing>
diff --git a/ui/netlist.ui b/ui/netlist.ui
index ce5fa44..c639f9c 100644
--- a/ui/netlist.ui
+++ b/ui/netlist.ui
@@ -189,7 +189,8 @@
     <property name="can_focus">False</property>
     <property name="halign">end</property>
     <property name="valign">start</property>
-    <property name="ypad">3</property>
+    <property name="margin_top">3</property>
+    <property name="margin_bottom">3</property>
     <property name="label" translatable="yes">_Network source:</property>
     <property name="use_underline">True</property>
     <property name="mnemonic_widget">net-source</property>
-- 
2.9.4




More information about the virt-tools-list mailing list