Commit 9653b08e authored by Christian Hergert's avatar Christian Hergert
Browse files

pipeline: add helper to set PTY size

parent f7826bc8
......@@ -3420,3 +3420,14 @@ ide_build_pipeline_get_requested_phase (IdeBuildPipeline *self)
return self->requested_mask & IDE_BUILD_PHASE_MASK;
_ide_build_pipeline_set_pty_size (IdeBuildPipeline *self,
guint rows,
guint columns)
g_return_if_fail (IDE_IS_BUILD_PIPELINE (self));
if (self->pty_slave != PTY_FD_INVALID)
pty_intercept_set_size (&self->intercept, rows, columns);
......@@ -28,5 +28,8 @@ void _ide_build_pipeline_cancel (IdeBuildPipeline *self);
void _ide_build_pipeline_set_message (IdeBuildPipeline *self,
const gchar *message);
void _ide_build_pipeline_mark_broken (IdeBuildPipeline *self);
void _ide_build_pipeline_set_pty_size (IdeBuildPipeline *self,
guint rows,
guint columns);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment