[gnome-builder] libide: scroll to insert mark when connecting buffer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: scroll to insert mark when connecting buffer
- Date: Tue, 24 Mar 2015 00:16:42 +0000 (UTC)
commit 1b1f57f12688eefbcedae52655ec55c44441ce8c
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 12 19:13:04 2015 -0700
libide: scroll to insert mark when connecting buffer
libide/ide-source-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index a321e4f..ed02f41 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -1153,6 +1153,7 @@ ide_source_view_connect_buffer (IdeSourceView *self,
{
IdeSourceViewPrivate *priv = ide_source_view_get_instance_private (self);
GtkSourceSearchSettings *search_settings;
+ GtkTextMark *insert;
GtkTextIter iter;
g_assert (IDE_IS_SOURCE_VIEW (self));
@@ -1258,6 +1259,9 @@ ide_source_view_connect_buffer (IdeSourceView *self,
if (priv->mode && ide_source_view_mode_get_coalesce_undo (priv->mode))
BEGIN_USER_ACTION (self);
+
+ insert = gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (buffer));
+ gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW (self), insert, 0.0, TRUE, 1.0, 0.5);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]