Commit 7f51c1c9 authored by Christian Hergert's avatar Christian Hergert
Browse files

build-log: don't muck with insert/selection mark

We want to just scroll to the bottom, without touching the insert/selcetion
mark. "move-cursor" does this just fine.

We still need to deal with the problem of where the user has manually
scrolled up, and not continue to autoscroll.
parent 2d314a6c
......@@ -56,7 +56,6 @@ 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);
......@@ -79,9 +78,7 @@ gbp_build_log_panel_log (GbpBuildLogPanel *self,
gtk_text_buffer_apply_tag (self->buffer, self->stderr_tag, &begin, &iter);
}
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);
g_signal_emit_by_name (self->text_view, "move-cursor", GTK_MOVEMENT_BUFFER_ENDS, 1, FALSE);
}
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