[gnome-builder] buildui: check for non-NULL VtePty
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildui: check for non-NULL VtePty
- Date: Mon, 2 Dec 2019 02:27:16 +0000 (UTC)
commit d9adfd3d0e6668fbd658b92d797b60695d1b49b3
Author: Christian Hergert <chergert redhat com>
Date: Sun Dec 1 18:27:10 2019 -0800
buildui: check for non-NULL VtePty
Related #1076
src/plugins/buildui/gbp-buildui-log-pane.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-log-pane.c b/src/plugins/buildui/gbp-buildui-log-pane.c
index d378e102b..31c853dd0 100644
--- a/src/plugins/buildui/gbp-buildui-log-pane.c
+++ b/src/plugins/buildui/gbp-buildui-log-pane.c
@@ -79,13 +79,17 @@ gbp_buildui_log_pane_log_observer (IdeBuildLogStream stream,
static void
gbp_buildui_log_pane_notify_pty (GbpBuilduiLogPane *self,
GParamSpec *pspec,
- IdePipeline *pipeline)
+ IdePipeline *pipeline)
{
+ VtePty *pty;
+
g_assert (GBP_IS_BUILDUI_LOG_PANE (self));
g_assert (IDE_IS_PIPELINE (pipeline));
- vte_terminal_set_pty (VTE_TERMINAL (self->terminal),
- ide_pipeline_get_pty (pipeline));
+ pty = ide_pipeline_get_pty (pipeline);
+
+ if (pty != NULL)
+ vte_terminal_set_pty (VTE_TERMINAL (self->terminal), pty);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]