[gnome-documents] preview: make sure search is always enabled when going back to overview
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] preview: make sure search is always enabled when going back to overview
- Date: Sat, 9 Feb 2013 01:28:56 +0000 (UTC)
commit e1d0be4020920979bfadcdc83659a69c951dd372
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 8 20:28:28 2013 -0500
preview: make sure search is always enabled when going back to overview
src/preview.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index aa7f4ad..aec9ac6 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -497,6 +497,9 @@ const PreviewToolbar = new Lang.Class({
this.parent();
+ this._searchAction = Application.application.lookup_action('search');
+ this._gearMenu = Application.application.lookup_action('gear-menu');
+
// back button, on the left of the toolbar
let iconName =
(this.toolbar.get_direction() == Gtk.TextDirection.RTL) ?
@@ -506,6 +509,7 @@ const PreviewToolbar = new Lang.Class({
backButton.connect('clicked', Lang.bind(this,
function() {
Application.documentManager.setActiveItem(null);
+ this._searchAction.enabled = true;
}));
// search button, on the right of the toolbar
@@ -517,9 +521,6 @@ const PreviewToolbar = new Lang.Class({
menuButton.set_menu_model(previewMenu);
menuButton.set_action_name('app.gear-menu');
- this._searchAction = Application.application.lookup_action('search');
- this._gearMenu = Application.application.lookup_action('gear-menu');
-
this._setToolbarTitle();
this.toolbar.show_all();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]