[gnome-boxes/refactor-some-download-an-os-bits: 8/8] wizard-source: Use setter in WizardDownloadableEntry setup



commit 91e3078da42325760382f1a87fda159f0e365ff7
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Mar 1 15:09:26 2018 +0100

    wizard-source: Use setter in WizardDownloadableEntry setup

 src/wizard-source.vala | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index 9202c326..e209bc7e 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -84,7 +84,7 @@ public WizardDownloadableEntry (Osinfo.Media media) {
         this.from_os (media.os);
 
         setup_label (media);
-        details_label.label = media.os.vendor;
+        details = media.os.vendor;
 
         url = media.url;
     }
@@ -110,7 +110,7 @@ else if ((media.os as Osinfo.Product).name != null) {
         } else {
             var file = File.new_for_uri (media.url);
 
-            title_label.label = file.get_basename ().replace ("_", "");
+            title = file.get_basename ().replace ("_", "");
         }
 
         var subvariant = "";
@@ -123,12 +123,10 @@ else if (media.url.contains ("dvd"))
 
         var is_live = media.live ? " (" + _("Live") + ")" : "";
 
-        title_label.label = @"$variant $(media.architecture) $subvariant $is_live";
+        title = @"$variant $(media.architecture) $subvariant $is_live";
 
         /* Strip consequent whitespaces */
-        title_label.label = title_label.label.replace ("  ", "");
-
-        title_label.halign = Gtk.Align.START;
+        title = title.replace ("  ", "");
     }
 }
 


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