[gnome-documents] main-toolbar: use the new generic style classes for selection mode
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] main-toolbar: use the new generic style classes for selection mode
- Date: Thu, 16 Aug 2012 18:44:33 +0000 (UTC)
commit 9a10736311a4ff0ae726f3c9f2cd64f582040f2e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Aug 16 20:38:18 2012 +0200
main-toolbar: use the new generic style classes for selection mode
src/mainToolbar.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index e864d27..d360f7d 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -194,13 +194,14 @@ const OverviewToolbar = new Lang.Class({
},
_populateForSelectionMode: function() {
- this.widget.get_style_context().add_class('documents-selection-mode');
+ this.widget.get_style_context().add_class('selection-mode');
this.widget.reset_style();
this.addSearchButton();
let selectionButton =
this.widget.add_button(null, _("Done"), false);
+ selectionButton.get_style_context().add_class('suggested-action');
selectionButton.connect('clicked', Lang.bind(this,
function() {
Global.selectionController.setSelectionMode(false);
@@ -264,7 +265,7 @@ const OverviewToolbar = new Lang.Class({
_clearToolbar: function() {
this._clearStateData();
- this.widget.get_style_context().remove_class('documents-selection-mode');
+ this.widget.get_style_context().remove_class('selection-mode');
this.widget.reset_style();
this.widget.clear();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]