[gnome-builder] snippets: don't scroll_to_bottom() on snippet entry



commit 0a14461b8ef73c1aff94153c2481e21a34fecbf9
Author: Christian Hergert <christian hergert me>
Date:   Mon Apr 13 20:11:10 2015 -0700

    snippets: don't scroll_to_bottom() on snippet entry

 libide/ide-source-view.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 3745688..95b34d7 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -6075,15 +6075,12 @@ ide_source_view_push_snippet (IdeSourceView    *self,
   GtkTextIter iter;
   gboolean has_more_tab_stops;
   gboolean insert_spaces;
-  gboolean at_bottom;
   gchar *line_prefix;
   guint tab_width;
 
   g_return_if_fail (IDE_IS_SOURCE_VIEW (self));
   g_return_if_fail (IDE_IS_SOURCE_SNIPPET (snippet));
 
-  at_bottom = ide_source_view_get_at_bottom (self);
-
   context = ide_source_snippet_get_context (snippet);
 
   if ((previous = g_queue_peek_head (priv->snippets)))
@@ -6141,9 +6138,6 @@ ide_source_view_push_snippet (IdeSourceView    *self,
     ide_source_view_pop_snippet (self);
 
   ide_source_view_invalidate_window (self);
-
-  if (at_bottom)
-    ide_source_view_scroll_to_bottom (self);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]