[gnome-boxes] Move cancel button to left in wizard
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Move cancel button to left in wizard
- Date: Thu, 24 Jan 2013 09:13:48 +0000 (UTC)
commit 880a19141e3dac2a65666681572bf707e772c3e9
Author: Alexander Larsson <alexl redhat com>
Date: Wed Jan 23 14:43:50 2013 +0100
Move cancel button to left in wizard
According to the new mockups we need to center the label and
put the cancel button on the left.
https://bugzilla.gnome.org/show_bug.cgi?id=692364
data/gtk-style.css | 5 -----
src/wizard.vala | 9 +++------
2 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 88da889..6a2600b 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -2,11 +2,6 @@
@define-color boxes_bg2_color mix (@theme_bg_color, @boxes_bg_color, 0.5);
@define-color boxes_selected_color #3465a4;
-#TopbarLabel {
- font-size: 14px;
- font-weight: bold;
-}
-
#CollectionLabel {
font-size: 11px;
font-weight: bold;
diff --git a/src/wizard.vala b/src/wizard.vala
index f0c5b6b..225bd6e 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -634,19 +634,16 @@ private class Boxes.Wizard: Boxes.UI {
/* topbar */
hbox = App.app.topbar.notebook.get_nth_page (Boxes.TopbarPage.WIZARD) as Gtk.Box;
- label = new Gtk.Label (_("Create a Box"));
- label.name = "TopbarLabel";
- label.halign = Gtk.Align.START;
- label.margin_left = 15;
- hbox.pack_start (label, false, false, 0);
var toolbar = new Gd.MainToolbar ();
toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
toolbar.toolbar_style = Gtk.ToolbarStyle.TEXT;
hbox.pack_start (toolbar, true, true, 0);
+ toolbar.set_labels (_("Create a Box"), null);
+
toolbar_sizegroup = new Gtk.SizeGroup (Gtk.SizeGroupMode.HORIZONTAL);
- cancel_button = toolbar.add_button (null, _("_Cancel"), false) as Gtk.Button;
+ cancel_button = toolbar.add_button (null, _("_Cancel"), true) as Gtk.Button;
cancel_button.use_underline = true;
cancel_button.clicked.connect (() => {
destroy_machine ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]