[gnome-documents] preview: pre-select entry text when finding text in preview mode
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] preview: pre-select entry text when finding text in preview mode
- Date: Mon, 19 Nov 2012 22:51:20 +0000 (UTC)
commit cbcd983cd1b3fff7311309891fc979d1deff8872
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 19 17:47:40 2012 -0500
preview: pre-select entry text when finding text in preview mode
So that the user has both the chance to find a new word and to edit the
current string if desired.
src/preview.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index 0cc362c..2720fe8 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -488,6 +488,7 @@ const PreviewSearchbar = new Lang.Class({
show: function() {
this.parent();
+ this._searchEntry.select_region(0, -1);
this._previewView.view.find_set_highlight_search(true);
this._previewView.startSearch(this._searchEntry.get_text());
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]