[gnome-boxes] wizard-window: No description on resource props anymore



commit 2065093feee096737f56394f3ffc50bb4850761a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Jul 14 17:56:25 2015 +0100

    wizard-window: No description on resource props anymore
    
    After commit 06228c558427f93807598a5570621281c231de71, resource
    properties do not have a description string but they rather pack the
    label into the value widget.
    
    This patch drops the use of Property.description from WizardWindow.

 src/wizard-window.vala |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index 308a191..ac0deb2 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -77,23 +77,17 @@ private class Boxes.WizardWindow : Gtk.Window, Boxes.UI {
 
         var current_row = 0;
         foreach (var property in resource_properties) {
-            if (property.widget == null || property.extra_widget == null || property.description == null) {
+            if (property.widget == null || property.extra_widget == null) {
                 warn_if_reached ();
 
                 continue;
             }
 
-            var label_name = new Gtk.Label (property.description);
-            label_name.get_style_context ().add_class ("boxes-property-name-label");
-            label_name.halign = Gtk.Align.START;
-            label_name.hexpand = false;
-            customization_grid.attach (label_name, 0, current_row, 1, 1);
-
             property.widget.hexpand = true;
-            customization_grid.attach (property.widget, 1, current_row, 1, 1);
+            customization_grid.attach (property.widget, 0, current_row, 1, 1);
 
             property.extra_widget.hexpand = true;
-            customization_grid.attach (property.extra_widget, 0, current_row + 1, 2, 1);
+            customization_grid.attach (property.extra_widget, 0, current_row + 1, 1, 1);
 
             current_row += 2;
         }


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