[gnome-boxes/gnome-3-4] Linewrap some potentially long labels



commit 84c2f244580d0a7f2a51a46d1edbd38e38a9e024
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 6f17c58..8e11942 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -177,6 +177,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 28e5399..5125064 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -458,6 +458,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]