[gtk+] textview: inline a function



commit d69d57afa7d1966ab5ebc26bfe9eb1b24ba01571
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Apr 9 16:53:14 2014 +0200

    textview: inline a function
    
    gtk_text_view_move_cursor_internal() was exactly the same as
    gtk_text_view_move_cursor(), and was called only in the latter function.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727908

 gtk/gtktextview.c |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 3194357..318818e 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5876,10 +5876,10 @@ move_cursor (GtkTextView       *text_view,
 }
 
 static void
-gtk_text_view_move_cursor_internal (GtkTextView     *text_view,
-                                    GtkMovementStep  step,
-                                    gint             count,
-                                    gboolean         extend_selection)
+gtk_text_view_move_cursor (GtkTextView     *text_view,
+                           GtkMovementStep  step,
+                           gint             count,
+                           gboolean         extend_selection)
 {
   GtkTextViewPrivate *priv;
   GtkTextIter insert;
@@ -6123,15 +6123,6 @@ gtk_text_view_move_cursor_internal (GtkTextView     *text_view,
 }
 
 static void
-gtk_text_view_move_cursor (GtkTextView     *text_view,
-                           GtkMovementStep  step,
-                           gint             count,
-                           gboolean         extend_selection)
-{
-  gtk_text_view_move_cursor_internal (text_view, step, count, extend_selection);
-}
-
-static void
 gtk_text_view_move_viewport (GtkTextView     *text_view,
                              GtkScrollStep    step,
                              gint             count)


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