[gnome-builder] buildlog: attach Pty from pipeline to terminal



commit c286fd9cb2b28f9a676022893d10c000ce0f454c
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 23 02:05:07 2017 -0800

    buildlog: attach Pty from pipeline to terminal

 src/libide/buildui/ide-build-log-panel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/buildui/ide-build-log-panel.c b/src/libide/buildui/ide-build-log-panel.c
index 44a42b0..71b1302 100644
--- a/src/libide/buildui/ide-build-log-panel.c
+++ b/src/libide/buildui/ide-build-log-panel.c
@@ -22,6 +22,7 @@
 #include <glib/gi18n.h>
 #include <ide.h>
 
+#include "buildsystem/ide-build-private.h"
 #include "buildui/ide-build-log-panel.h"
 #include "terminal/ide-terminal.h"
 
@@ -86,6 +87,7 @@ ide_build_log_panel_set_pipeline (IdeBuildLogPanel *self,
           ide_build_pipeline_remove_log_observer (self->pipeline, self->log_observer);
           self->log_observer = 0;
           g_clear_object (&self->pipeline);
+          vte_terminal_set_pty (VTE_TERMINAL (self->terminal), NULL);
         }
 
       if (pipeline != NULL)
@@ -96,6 +98,8 @@ ide_build_log_panel_set_pipeline (IdeBuildLogPanel *self,
                                                  ide_build_log_panel_log_observer,
                                                  self,
                                                  NULL);
+          vte_terminal_set_pty (VTE_TERMINAL (self->terminal),
+                                _ide_build_pipeline_get_pty (pipeline));
         }
     }
 }


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