[gnome-builder] project-tree: focus project tree during reveal
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] project-tree: focus project tree during reveal
- Date: Mon, 31 Oct 2016 00:11:19 +0000 (UTC)
commit 24ab82d808d249edf483c8ba3ff9766e0ffa7912
Author: Christian Hergert <chergert redhat com>
Date: Sun Oct 30 17:10:45 2016 -0700
project-tree: focus project tree during reveal
We should focus the tree so that the workbench will reveal all the panels
up to the tree.
plugins/project-tree/gb-project-tree.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree.c b/plugins/project-tree/gb-project-tree.c
index 0f41f05..687215e 100644
--- a/plugins/project-tree/gb-project-tree.c
+++ b/plugins/project-tree/gb-project-tree.c
@@ -429,4 +429,6 @@ gb_project_tree_reveal (GbProjectTree *self,
ide_tree_expand_to_node (IDE_TREE (self), node);
ide_tree_scroll_to_node (IDE_TREE (self), node);
ide_tree_node_select (node);
+
+ ide_workbench_focus (ide_widget_get_workbench (GTK_WIDGET (self)), GTK_WIDGET (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]