Commit 3a8d7ae7 authored by Christian Hergert's avatar Christian Hergert
Browse files

buildlog: add scrollbar for build log terminal

parent 249d7faf
......@@ -33,6 +33,7 @@ struct _IdeBuildLogPanel
IdeBuildPipeline *pipeline;
GSettings *settings;
GtkScrollbar *scrollbar;
IdeTerminal *terminal;
guint log_observer;
......@@ -202,6 +203,7 @@ ide_build_log_panel_class_init (IdeBuildLogPanelClass *klass)
gtk_widget_class_set_css_name (widget_class, "buildlogpanel");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/plugins/buildui/ide-build-log-panel.ui");
gtk_widget_class_bind_template_child (widget_class, IdeBuildLogPanel, scrollbar);
gtk_widget_class_bind_template_child (widget_class, IdeBuildLogPanel, terminal);
properties [PROP_PIPELINE] =
......@@ -298,13 +300,8 @@ ide_build_log_panel_init (IdeBuildLogPanel *self)
gtk_widget_init_template (GTK_WIDGET (self));
#if 0
{
VtePty *pty = vte_pty_new_sync (VTE_PTY_DEFAULT, NULL, NULL);
vte_terminal_set_pty (VTE_TERMINAL (self->terminal), pty);
g_object_unref (pty);
}
#endif
gtk_range_set_adjustment (GTK_RANGE (self->scrollbar),
gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (self->terminal)));
vte_terminal_set_scrollback_lines (VTE_TERMINAL (self->terminal), 1000);
vte_terminal_set_scroll_on_output (VTE_TERMINAL (self->terminal), FALSE);
......
......@@ -6,10 +6,17 @@
<property name="visible">true</property>
<child>
<object class="IdeTerminal" id="terminal">
<property name="audible-bell">false</property>
<property name="expand">true</property>
<property name="visible">true</property>
</object>
</child>
<child>
<object class="GtkScrollbar" id="scrollbar">
<property name="orientation">vertical</property>
<property name="visible">true</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="border-width">2</property>
......
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