[gnome-builder] editor: grab focus after creating view



commit 94827c6a6ec2311985718d7ef1cbc6a7b8b59cbe
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]