[baobab] Avoid deprecated GtkMisc xalign property



commit ca75079dc42c13c941e18b902f747d58de04199f
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Wed Jul 2 14:09:35 2014 +0200

    Avoid deprecated GtkMisc xalign property

 src/baobab-location-list.vala |   16 ----------------
 src/baobab-location-row.ui    |    2 --
 2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/baobab-location-list.vala b/src/baobab-location-list.vala
index c15edf7..67bd9c3 100644
--- a/src/baobab-location-list.vala
+++ b/src/baobab-location-list.vala
@@ -22,9 +22,6 @@ namespace Baobab {
 
     [GtkTemplate (ui = "/org/gnome/baobab/ui/baobab-location-row.ui")]
     private class LocationRow : Gtk.ListBoxRow {
-        private static Gtk.SizeGroup name_size_group = null;
-        private static Gtk.SizeGroup usage_size_group = null;
-
         [GtkChild]
         private Gtk.Image image;
         [GtkChild]
@@ -38,34 +35,21 @@ namespace Baobab {
 
         public Location? location { get; private set; }
 
-        void ensure_size_groups () {
-            if (name_size_group == null) {
-                name_size_group = new Gtk.SizeGroup (Gtk.SizeGroupMode.HORIZONTAL);
-                usage_size_group = new Gtk.SizeGroup (Gtk.SizeGroupMode.HORIZONTAL);
-            }
-        }
-
         public LocationRow (Location l) {
             location = l;
 
-            ensure_size_groups ();
-
             image.gicon = location.icon;
 
             var escaped = GLib.Markup.escape_text (location.name, -1);
             name_label.label = "<b>%s</b>".printf (escaped);
-            name_size_group.add_widget (name_label);
 
             escaped = location.file != null ? GLib.Markup.escape_text (location.file.get_parse_name (), -1) 
: "";
             path_label.label = "<small>%s</small>".printf (escaped);
-            name_size_group.add_widget (path_label);
 
             if (location.is_volume && location.used != null && location.size != null) {
                 usage_label.label = "<small>%s / %s</small>".printf (format_size (location.used), 
format_size (location.size));
-                usage_size_group.add_widget (usage_label);
                 usage_label.show ();
 
-                usage_size_group.add_widget (usage_bar);
                 usage_bar.max_value = location.size;
 
                 // Set critical color at 90% of the size
diff --git a/src/baobab-location-row.ui b/src/baobab-location-row.ui
index 54d5465..4f18bf7 100644
--- a/src/baobab-location-row.ui
+++ b/src/baobab-location-row.ui
@@ -30,7 +30,6 @@
             <property name="valign">end</property>
             <property name="hexpand">True</property>
             <property name="use_markup">True</property>
-            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">1</property>
@@ -47,7 +46,6 @@
             <property name="valign">start</property>
             <property name="hexpand">True</property>
             <property name="use_markup">True</property>
-            <property name="xalign">0</property>
             <style>
               <class name="dim-label"/>
             </style>


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