[gnome-builder/wip/chergert/perspective] editor: grab focus after creating view
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] editor: grab focus after creating view
- Date: Sun, 6 Dec 2015 08:17:29 +0000 (UTC)
commit ee57e730c0c1957826ded14353cb467ad4b5529e
Author: Christian Hergert <chergert redhat com>
Date: Sun Dec 6 00:16:57 2015 -0800
editor: grab focus after creating view
libide/editor/ide-editor-perspective.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective.c b/libide/editor/ide-editor-perspective.c
index 4b9d2b3..edb143a 100644
--- a/libide/editor/ide-editor-perspective.c
+++ b/libide/editor/ide-editor-perspective.c
@@ -166,6 +166,8 @@ ide_editor_perspective_load_buffer (IdeEditorPerspective *self,
stack = ide_layout_grid_get_last_focus (self->grid);
gtk_container_add (GTK_CONTAINER (stack), GTK_WIDGET (view));
+
+ gtk_widget_grab_focus (GTK_WIDGET (view));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]