[gnome-builder] perspective: grab focus if file is already loaded
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] perspective: grab focus if file is already loaded
- Date: Thu, 27 Sep 2018 19:04:12 +0000 (UTC)
commit fa8a12efb05827ab0bc45ea9cfba2555395b6919
Author: Günther Wagner <info gunibert de>
Date: Thu Sep 27 20:39:20 2018 +0200
perspective: grab focus if file is already loaded
src/libide/editor/ide-editor-perspective.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libide/editor/ide-editor-perspective.c b/src/libide/editor/ide-editor-perspective.c
index c55ef30a3..5d2a20dfb 100644
--- a/src/libide/editor/ide-editor-perspective.c
+++ b/src/libide/editor/ide-editor-perspective.c
@@ -535,6 +535,8 @@ ide_editor_perspective_focus_location_full (IdeEditorPerspective *self,
*/
if (line || line_offset)
ide_editor_view_scroll_to_line_offset (lookup.view, line, line_offset);
+ else
+ gtk_widget_grab_focus (GTK_WIDGET (lookup.view));
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]