[gnome-builder] GbEditorFrame: preserve and select previous search text upon find action
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbEditorFrame: preserve and select previous search text upon find action
- Date: Sun, 28 Dec 2014 11:18:57 +0000 (UTC)
commit dfbf886f29a23da2a6ac89a88d37bdca8ead2689
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 28 03:17:46 2014 -0800
GbEditorFrame: preserve and select previous search text upon find action
This will keep the previous search text, but select all of it.
https://bugzilla.gnome.org/show_bug.cgi?id=742045
src/editor/gb-editor-frame.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index 7c1d0bc..88ed39e 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -811,9 +811,6 @@ gb_editor_frame_find (GbEditorFrame *self,
{
g_return_if_fail (GB_IS_EDITOR_FRAME (self));
- if (!search_text)
- search_text = "";
-
gb_editor_frame_on_begin_search (self, GTK_DIR_DOWN, search_text,
self->priv->source_view);
}
@@ -827,7 +824,7 @@ gb_editor_frame_find_activate (GSimpleAction *action,
g_return_if_fail (GB_IS_EDITOR_FRAME (self));
- gb_editor_frame_find (self, "");
+ gb_editor_frame_find (self, NULL);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]