[gnome-boxes] unattended-installer: Add baseline alignment to setup screen



commit 59d694af467ce550f36972d2c262dfe977899986
Author: Gursimran singh <simar i3r gmail com>
Date:   Sat May 4 04:20:47 2013 +0530

    unattended-installer: Add baseline alignment to setup screen
    
    Added baseline alignment to username (label and entry) and
    password (label and notebook).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698127

 src/unattended-installer.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index d5d6f6e..c6a79a1 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -412,12 +412,12 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         label.margin_right = 10;
         label.margin_bottom  = 10;
         label.halign = Gtk.Align.END;
-        label.valign = Gtk.Align.END;
+        label.valign = Gtk.Align.BASELINE;
         setup_grid.attach (label, 1, 1, 1, 1);
         username_entry = create_input_entry (Environment.get_user_name ());
         username_entry.margin_bottom  = 10;
         username_entry.halign = Gtk.Align.FILL;
-        username_entry.valign = Gtk.Align.END;
+        username_entry.valign = Gtk.Align.BASELINE;
         username_entry.activate.connect (() => {
             if (ready_for_express)
                 user_wants_to_create ();
@@ -432,16 +432,17 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         label = new Gtk.Label (_("Password"));
         label.margin_right = 10;
         label.halign = Gtk.Align.END;
-        label.valign = Gtk.Align.START;
+        label.valign = Gtk.Align.BASELINE;
         setup_grid.attach (label, 1, 2, 1, 1);
 
         var notebook = new Gtk.Notebook ();
         notebook.show_tabs = false;
         notebook.show_border = false;
         notebook.halign = Gtk.Align.FILL;
-        notebook.valign = Gtk.Align.START;
+        notebook.valign = Gtk.Align.CENTER;
         var button = new Gtk.Button.with_mnemonic (_("_Add Password"));
         button.visible = true;
+        button.valign = Gtk.Align.BASELINE;
         notebook.append_page (button);
         password_entry = create_input_entry ("", false, false);
         notebook.append_page (password_entry);


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