[gnome-builder] buildui: present build log when adding to the panel



commit b9c6bc153698407155b48df94060d7e652c32ca4
Author: Christian Hergert <chergert redhat com>
Date:   Thu Mar 9 18:46:28 2017 -0800

    buildui: present build log when adding to the panel
    
    The first time we show the panel, it is fine to raise it (without
    focusing).

 libide/buildui/ide-build-workbench-addin.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libide/buildui/ide-build-workbench-addin.c b/libide/buildui/ide-build-workbench-addin.c
index fd8df11..8c80459 100644
--- a/libide/buildui/ide-build-workbench-addin.c
+++ b/libide/buildui/ide-build-workbench-addin.c
@@ -66,7 +66,13 @@ ide_build_workbench_addin_set_pipeline (IdeBuildWorkbenchAddin *self,
   if (g_set_object (&self->pipeline, pipeline))
     {
       ide_build_log_panel_set_pipeline (self->build_log_panel, pipeline);
-      gtk_widget_show (GTK_WIDGET (self->build_log_panel));
+
+      if (!gtk_widget_get_visible (GTK_WIDGET (self->build_log_panel)))
+        {
+          gtk_widget_show (GTK_WIDGET (self->build_log_panel));
+          pnl_dock_item_present (PNL_DOCK_ITEM (self->build_log_panel));
+        }
+
       g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PIPELINE]);
     }
 }


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