[tepl] View: remove useless code in tepl_view_paste_clipboard()



commit 9448b9d1acbc51e4aeba3e2dbd182ca373000ccf
Author: Sébastien Wilmet <sebastien wilmet uclouvain be>
Date:   Wed Jul 26 10:39:20 2017 +0200

    View: remove useless code in tepl_view_paste_clipboard()

 tepl/tepl-view.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/tepl/tepl-view.c b/tepl/tepl-view.c
index baa9ce4..943884c 100644
--- a/tepl/tepl-view.c
+++ b/tepl/tepl-view.c
@@ -154,12 +154,9 @@ tepl_view_paste_clipboard (TeplView *view)
                                         NULL,
                                         gtk_text_view_get_editable (GTK_TEXT_VIEW (view)));
 
-       gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW (view),
-                                     gtk_text_buffer_get_insert (buffer),
-                                     SCROLL_MARGIN,
-                                     FALSE,
-                                     0.0,
-                                     0.0);
+       /* GtkTextView already connects to the GtkTextBuffer::paste-done signal
+        * to scroll to the cursor position.
+        */
 }
 
 /**


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