[gnome-boxes] Linewrap some potentially long labels



commit 7af186924e6666d8fb5a505191e6ae1e41fc42ab
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jun 5 12:34:54 2012 +0200

    Linewrap some potentially long labels
    
    This helps with e.g. bug 672456
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677274

 src/unattended-installer.vala |    2 ++
 src/wizard.vala               |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 70149c8..b534fa0 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -187,6 +187,8 @@ private abstract class Boxes.UnattendedInstaller: InstallerMedia {
 
     protected virtual void setup_ui () {
         setup_label = new Gtk.Label (_("Choose express install to automatically preconfigure the box with optimal settings."));
+        setup_label.wrap = true;
+        setup_label.width_chars = 30;
         setup_label.halign = Gtk.Align.START;
         setup_hbox = new Gtk.HBox (false, 20);
         setup_hbox.valign = Gtk.Align.START;
diff --git a/src/wizard.vala b/src/wizard.vala
index 1955b57..20a48b5 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -477,6 +477,8 @@ private class Boxes.Wizard: Boxes.UI {
         review_label = new Gtk.Label (null);
         review_label.get_style_context ().add_class ("boxes-wizard-label");
         review_label.xalign = 0.0f;
+        review_label.wrap = true;
+        review_label.width_chars = 30;
         vbox.pack_start (review_label, false, false);
 
         summary = new WizardSummary ();



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