[gnome-builder/gnome-builder-3-24] buildui: Keep scroll at end of buffer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-24] buildui: Keep scroll at end of buffer
- Date: Mon, 8 May 2017 22:09:45 +0000 (UTC)
commit 2c50858d5166da996dbe9060e6b163be1caecdb1
Author: Fernando Fernandez <fernando softwareperonista com ar>
Date: Sun May 7 14:25:00 2017 -0300
buildui: Keep scroll at end of buffer
https://bugzilla.gnome.org/show_bug.cgi?id=781013
libide/buildui/ide-build-log-panel.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libide/buildui/ide-build-log-panel.c b/libide/buildui/ide-build-log-panel.c
index 7ad4b71..1f9daf9 100644
--- a/libide/buildui/ide-build-log-panel.c
+++ b/libide/buildui/ide-build-log-panel.c
@@ -538,7 +538,7 @@ ide_build_log_panel_log_observer (IdeBuildLogStream stream,
{
IdeBuildLogPanel *self = user_data;
GtkTextMark *insert;
- GtkTextIter iter;
+ GtkTextIter iter, enditer;
g_assert (IDE_IS_BUILD_LOG_PANEL (self));
g_assert (message != NULL);
@@ -550,6 +550,9 @@ ide_build_log_panel_log_observer (IdeBuildLogStream stream,
insert = gtk_text_buffer_get_insert (self->buffer);
gtk_text_view_scroll_to_mark (self->text_view, insert, 0.0, TRUE, 1.0, 0.0);
+
+ gtk_text_buffer_get_end_iter (self->buffer, &enditer);
+ gtk_text_buffer_place_cursor (self->buffer, &enditer);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]