[gtksourceview/wip/chergert/gsv-gtk4: 130/189] view: remove superfluous copy of keyval
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 130/189] view: remove superfluous copy of keyval
- Date: Mon, 22 Jun 2020 21:56:55 +0000 (UTC)
commit 1ce855275aee93596b00c925e13e524f5d0db505
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]