[gnome-boxes] Drop usage of deprecated Gtk+ properties



commit f32c32059a96186cac819cd2bd2b6653c2ce04d0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Jun 30 17:39:19 2014 +0100

    Drop usage of deprecated Gtk+ properties
    
    These properties are now deprecated:
    
    - Gtk.Misc.xalign
    - Gtk.Misc.yalign

 data/ui/editable-entry.ui     |    8 ++++----
 data/ui/empty-boxes.ui        |    2 +-
 data/ui/wizard-media-entry.ui |    4 ++--
 data/ui/wizard-source.ui      |   14 +++++++-------
 data/ui/wizard.ui             |    6 +++---
 src/wizard.vala               |    4 ++--
 6 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/data/ui/editable-entry.ui b/data/ui/editable-entry.ui
index 48fdb4a..afda77a 100644
--- a/data/ui/editable-entry.ui
+++ b/data/ui/editable-entry.ui
@@ -15,8 +15,8 @@
           <object class="GtkLabel" id="label">
             <property name="visible">True</property>
             <property name="ellipsize">end</property>
-            <property name="xalign">0.0</property>
-            <property name="yalign">0.5</property>
+            <property name="halign">start</property>
+            <property name="valign">center</property>
           </object>
         </child>
 
@@ -25,8 +25,8 @@
             <property name="visible">True</property>
             <property name="receives_default">True</property>
             <property name="relief">none</property>
-            <property name="xalign">0.0</property>
-            <property name="yalign">0.5</property>
+            <property name="halign">start</property>
+            <property name="valign">center</property>
             <signal name="clicked" handler="on_button_clicked"/>
 
             <child>
diff --git a/data/ui/empty-boxes.ui b/data/ui/empty-boxes.ui
index 4c5add7..804a5b3 100644
--- a/data/ui/empty-boxes.ui
+++ b/data/ui/empty-boxes.ui
@@ -95,7 +95,7 @@
                     <property name="use-markup">True</property>
                     <property name="halign">start</property>
                     <property name="vexpand">True</property>
-                    <property name="xalign">0</property>
+                    <property name="halign">start</property>
                     <property name="max-width-chars">24</property>
                     <property name="wrap">True</property>
                     <property name="label" translatable="yes">Create one using the button on the top 
left.</property>
diff --git a/data/ui/wizard-media-entry.ui b/data/ui/wizard-media-entry.ui
index 4f0fb37..691154e 100644
--- a/data/ui/wizard-media-entry.ui
+++ b/data/ui/wizard-media-entry.ui
@@ -35,7 +35,7 @@
               <object class="GtkLabel" id="title_label">
                 <property name="visible">True</property>
                 <property name="ellipsize">end</property>
-                <property name="xalign">0.0</property>
+                <property name="halign">start</property>
                 <style>
                   <class name="boxes-source-label"/>
                 </style>
@@ -49,7 +49,7 @@
               <object class="GtkLabel" id="details_label">
                 <property name="visible">True</property>
                 <property name="ellipsize">end</property>
-                <property name="xalign">0.0</property>
+                <property name="halign">start</property>
                 <property name="label" translatable="yes">Unknown media</property>
                 <style>
                   <class name="boxes-step-label"/>
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index dfa0a61..0304368 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -43,7 +43,7 @@
                 <child>
                   <object class="GtkLabel" id="enter_url_label">
                     <property name="visible">True</property>
-                    <property name="xalign">0.0</property>
+                    <property name="halign">start</property>
                     <property name="label" translatable="yes">Enter URL</property>
                   </object>
                   <packing>
@@ -85,7 +85,7 @@
                 <child>
                   <object class="GtkLabel" id="select_file_label">
                     <property name="visible">True</property>
-                    <property name="xalign">0.0</property>
+                    <property name="halign">start</property>
                     <property name="label" translatable="yes">Select a file</property>
                   </object>
                   <packing>
@@ -127,7 +127,7 @@
                 <child>
                   <object class="GtkLabel" id="libvirt_sys_import_label">
                     <property name="visible">True</property>
-                    <property name="xalign">0.0</property>
+                    <property name="halign">start</property>
                   </object>
                   <packing>
                     <property name="expand">True</property>
@@ -196,7 +196,7 @@
                 <child>
                   <object class="GtkLabel" id="enter_url_label2">
                     <property name="visible">True</property>
-                    <property name="xalign">0.0</property>
+                    <property name="halign">start</property>
                     <property name="label" translatable="yes">Enter URL</property>
                     <style>
                       <class name="boxes-source-label"/>
@@ -215,8 +215,8 @@
         <child>
           <object class="GtkAlignment" id="url_entry_bin">
             <property name="visible">True</property>
-            <property name="xalign">0</property>
-            <property name="yalign">0</property>
+            <property name="halign">start</property>
+            <property name="valign">start</property>
             <property name="xscale">1</property>
             <property name="yscale">1</property>
             <style>
@@ -260,7 +260,7 @@
                         <property name="visible">True</property>
                         <property name="use-markup">True</property>
                         <property name="wrap">True</property>
-                        <property name="xalign">0</property>
+                        <property name="halign">start</property>
                       </object>
                       <packing>
                         <property name="expand">True</property>
diff --git a/data/ui/wizard.ui b/data/ui/wizard.ui
index 3806e35..3383593 100644
--- a/data/ui/wizard.ui
+++ b/data/ui/wizard.ui
@@ -85,7 +85,7 @@ You may connect to an existing machine &lt;b&gt;&lt;i&gt;over the network&lt;/i&
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">Insert operating system installation media or 
select a source below</property>
                 <property name="wrap">True</property>
-                <property name="xalign">0.0</property>
+                <property name="halign">start</property>
                 <style>
                   <class name="boxes-wizard-label"/>
                 </style>
@@ -158,7 +158,7 @@ You may connect to an existing machine &lt;b&gt;&lt;i&gt;over the network&lt;/i&
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">Preparing to create new box</property>
                 <property name="wrap">True</property>
-                <property name="xalign">0.0</property>
+                <property name="halign">start</property>
 
                 <style>
                   <class name="boxes-wizard-label"/>
@@ -358,7 +358,7 @@ You may connect to an existing machine &lt;b&gt;&lt;i&gt;over the network&lt;/i&
                 <child>
                   <object class="GtkLabel" id="review_label">
                     <property name="visible">True</property>
-                    <property name="xalign">0.0</property>
+                    <property name="halign">start</property>
                     <property name="wrap">True</property>
                     <property name="width-chars">30</property>
                     <style>
diff --git a/src/wizard.vala b/src/wizard.vala
index 8b48f63..c6c3d99 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -604,14 +604,14 @@ private class Boxes.WizardSummary: Gtk.Grid {
 
         var label_name = new Gtk.Label (name);
         label_name.get_style_context ().add_class ("boxes-wizard-summary-prop-name-label");
-        label_name.xalign = 1.0f;
+        label_name.halign = Gtk.Align.END;
         attach (label_name, 0, current_row, 1, 1);
 
         var label_value = new Gtk.Label (value);
         label_value.get_style_context ().add_class ("boxes-wizard-summary-prop-value-label");
         label_value.set_ellipsize (Pango.EllipsizeMode.END);
         label_value.set_max_width_chars (32);
-        label_value.xalign = 0.0f;
+        label_name.halign = Gtk.Align.START;
         attach (label_value, 1, current_row, 1, 1);
 
         current_row += 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]