[gnome-builder] project-tree: simplify focus case



commit 89b23ebfbd8abbd5cd781af2d8eee2127aca7a7c
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 20 12:07:04 2016 +0300

    project-tree: simplify focus case
    
    The dock manager will handle all of this for us now.

 plugins/project-tree/gb-project-tree-addin.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree-addin.c b/plugins/project-tree/gb-project-tree-addin.c
index 4a7eede..6c93dfe 100644
--- a/plugins/project-tree/gb-project-tree-addin.c
+++ b/plugins/project-tree/gb-project-tree-addin.c
@@ -52,19 +52,10 @@ static void
 gb_project_tree_addin_grid_empty (GbProjectTreeAddin *self,
                                   IdeLayoutGrid      *grid)
 {
-  GtkWidget *layout;
-  GtkWidget *pane;
-
   g_assert (GB_IS_PROJECT_TREE_ADDIN (self));
   g_assert (IDE_IS_LAYOUT_GRID (grid));
 
-  layout = gtk_widget_get_ancestor (GTK_WIDGET (grid), IDE_TYPE_LAYOUT);
-  g_assert (layout != NULL);
-
-  pane = pnl_dock_bin_get_left_edge (PNL_DOCK_BIN (layout));
-  g_assert (pane != NULL);
-
-  pnl_dock_revealer_set_reveal_child (PNL_DOCK_REVEALER (pane), TRUE);
+  gtk_widget_grab_focus (GTK_WIDGET (self->tree));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]