Commit 1f2c5f0d authored by Christian Hergert's avatar Christian Hergert
Browse files

build-panel: ensure the insert mark is moved

parent c9c8806b
......@@ -56,6 +56,7 @@ gbp_build_log_panel_log (GbpBuildLogPanel *self,
IdeBuildResult *result)
{
GtkTextIter iter;
GtkTextMark *insert;
g_assert (GBP_IS_BUILD_LOG_PANEL (self));
g_assert (message != NULL);
......@@ -78,8 +79,9 @@ gbp_build_log_panel_log (GbpBuildLogPanel *self,
gtk_text_buffer_apply_tag (self->buffer, self->stderr_tag, &begin, &iter);
}
gtk_text_view_scroll_mark_onscreen (self->text_view,
gtk_text_buffer_get_insert (self->buffer));
insert = gtk_text_buffer_get_insert (self->buffer);
gtk_text_buffer_move_mark (self->buffer, insert, &iter);
gtk_text_view_scroll_mark_onscreen (self->text_view, insert);
}
void
......
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