[gnome-documents/gnome-3-8] searchbar: Let <Primary>a work in the OverviewSearchbar
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] searchbar: Let <Primary>a work in the OverviewSearchbar
- Date: Tue, 28 May 2013 15:31:21 +0000 (UTC)
commit e6bf1725b1941cc69957f29308c057fa34f1f752
Author: Debarshi Ray <debarshir gnome org>
Date: Tue May 28 15:49:19 2013 +0200
searchbar: Let <Primary>a work in the OverviewSearchbar
Disable the application-wide action select-all when we show the
OverviewSearchbar so that <Primary>a can be used to select the text
instead of getting eaten up by the application to select all the items
in the overview.
https://bugzilla.gnome.org/show_bug.cgi?id=699611
src/searchbar.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index d9b49cb..4ab3849 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -272,6 +272,7 @@ const OverviewSearchbar = new Lang.Class({
_init: function(dropdown) {
this._dropdown = dropdown;
+ this._selectAll = Application.application.lookup_action('select-all');
this.parent();
@@ -415,8 +416,14 @@ const OverviewSearchbar = new Lang.Class({
this.parent();
},
+ show: function() {
+ this._selectAll.enabled = false;
+ this.parent();
+ },
+
hide: function() {
this._dropdownButton.set_active(false);
+ this._selectAll.enabled = true;
Application.searchTypeManager.setActiveItemById('all');
Application.searchMatchManager.setActiveItemById('all');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]