[gnome-builder] set active worksace on start



commit 708805bb9648a677cdad3e22d50e408c1ba01966
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 22 13:53:18 2015 -0700

    set active worksace on start
    
    fixes escape from search box

 src/search/gb-search-box.c   |    3 +--
 src/workbench/gb-workbench.c |    2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/search/gb-search-box.c b/src/search/gb-search-box.c
index ff5ea5b..2789f00 100644
--- a/src/search/gb-search-box.c
+++ b/src/search/gb-search-box.c
@@ -198,8 +198,7 @@ gb_search_box_entry_key_press_event (GbSearchBox    *self,
       {
         GtkWidget *toplevel;
 
-        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->button),
-                                      FALSE);
+        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->button), FALSE);
 
         toplevel = gtk_widget_get_toplevel (GTK_WIDGET (entry));
         gtk_window_set_focus (GTK_WINDOW (toplevel), NULL);
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index 406fc8a..9d0c640 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -229,6 +229,8 @@ gb_workbench_constructed (GObject *object)
 
   G_OBJECT_CLASS (gb_workbench_parent_class)->constructed (object);
 
+  gb_workbench_set_active_workspace (self, GB_WORKSPACE (self->editor_workspace));
+
   gb_workbench_actions_init (self);
 
   app = GTK_APPLICATION (g_application_get_default ());


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