[gtksourceview/wip/chergert/gsv-gtk4: 115/118] view: remove superfluous copy of keyval



commit 189dd672836db415e36f52e370f2c13325aa246e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 20 11:20:19 2020 -0800

    view: remove superfluous copy of keyval

 gtksourceview/gtksourceview.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 1d30148d..5a165bdc 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -279,7 +279,7 @@ static void           gtk_source_view_move_lines           (GtkSourceView
 static void           gtk_source_view_move_words           (GtkSourceView           *view,
                                                             gint                     step);
 static gboolean       gtk_source_view_key_pressed          (GtkSourceView           *view,
-                                                            guint                    keyval,
+                                                            guint                    key,
                                                             guint                    keycode,
                                                             guint                    state,
                                                             GtkEventControllerKey   *controller);
@@ -3842,7 +3842,7 @@ do_ctrl_backspace (GtkSourceView *view)
 
 static gboolean
 gtk_source_view_key_pressed (GtkSourceView         *view,
-                            guint                  keyval,
+                            guint                  key,
                             guint                  keycode,
                             guint                  state,
                             GtkEventControllerKey *controller)
@@ -3852,7 +3852,6 @@ gtk_source_view_key_pressed (GtkSourceView         *view,
        GtkTextIter cur;
        GtkTextMark *mark;
        guint modifiers;
-       gint key;
        gboolean editable;
 
        buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
@@ -3863,8 +3862,6 @@ gtk_source_view_key_pressed (GtkSourceView         *view,
         * caps lock, num lock,etc need to be taken into account */
        modifiers = gtk_accelerator_get_default_mod_mask ();
 
-       key = keyval;
-
        mark = gtk_text_buffer_get_insert (buf);
        gtk_text_buffer_get_iter_at_mark (buf, &cur, mark);
 


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