[gnome-builder] grab source view focus when enter is pressed in search box
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] grab source view focus when enter is pressed in search box
- Date: Tue, 24 Mar 2015 00:35:54 +0000 (UTC)
commit 19876ef6609e058cbde2435e0624376acf6d9a73
Author: Christian Hergert <christian hergert me>
Date: Sun Mar 22 13:49:54 2015 -0700
grab source view focus when enter is pressed in search box
src/editor/gb-editor-frame.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index 9e4b721..17d2c51 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -304,6 +304,7 @@ gb_editor_frame__search_key_press_event (GbEditorFrame *self,
gb_widget_activate_action (GTK_WIDGET (self), "frame", "next-search-result", NULL);
else
gb_widget_activate_action (GTK_WIDGET (self), "frame", "previous-search-result", NULL);
+ gtk_widget_grab_focus (GTK_WIDGET (self->source_view));
return TRUE;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]