[gnome-boxes] topbar: Rename Done button and other fixes
- From: Arnel A. Borja <arnelborja src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] topbar: Rename Done button and other fixes
- Date: Fri, 30 Aug 2013 13:49:43 +0000 (UTC)
commit 2fa9caa4e310e65caaa12df4038c26e0cf3d323c
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Thu Aug 29 23:33:02 2013 +0800
topbar: Rename Done button and other fixes
Rename Done button to Cancel, and remove emphasis. Add text-button style
class.
This is to follow the new design for Content Selection Pattern at
https://wiki.gnome.org/GnomeOS/Design/Whiteboards/SelectionPattern
https://bugzilla.gnome.org/show_bug.cgi?id=706818
src/topbar.vala | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/topbar.vala b/src/topbar.vala
index 998414a..7155c85 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -19,7 +19,7 @@ private class Boxes.Topbar: Boxes.UI {
private Gtk.ToggleButton search_btn;
private Gtk.ToggleButton search2_btn;
private Gtk.Button select_btn;
- private Gtk.Button done_btn;
+ private Gtk.Button cancel_btn;
private Gtk.Button back_btn;
private Gtk.Button new_btn;
private Gd.MainToolbar selection_toolbar;
@@ -116,13 +116,12 @@ private class Boxes.Topbar: Boxes.UI {
search2_btn = selection_toolbar.add_toggle ("edit-find-symbolic", null, false) as Gtk.ToggleButton;
search2_btn.bind_property ("active", App.app.searchbar, "visible", BindingFlags.BIDIRECTIONAL);
- done_btn = selection_toolbar.add_button (null, _("D_one"), false) as Gtk.Button;
- done_btn.use_underline = true;
+ cancel_btn = selection_toolbar.add_button (null, _("_Cancel"), false) as Gtk.Button;
+ cancel_btn.use_underline = true;
// workaround for libgd bug #698289
- done_btn.label = _("D_one");
- done_btn.get_style_context().add_class("suggested-action");
- done_btn.use_stock = true;
- done_btn.clicked.connect (() => {
+ cancel_btn.label = _("_Cancel");
+ cancel_btn.get_style_context ().add_class ("text-button");
+ cancel_btn.clicked.connect (() => {
App.app.selection_mode = false;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]