diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-02-23 13:05:46 +0100 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2015-02-23 12:32:35 +0000 |
commit | 966766694cb06e50598c550c312a14fde5b31a5b (patch) | |
tree | 1a121bbf5ff76a9be01ca12e75bd05cefb5949db /ui | |
parent | d488d6392a9686ef1b27019c573dc422a525b9ee (diff) |
ui/gtk: use GTK+ 2 name for control keys
The GDK_KEY_* names are part of GTK+ 3, GTK+ 2 does not have the _KEY_
infix. See
https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html#id-1.6.3.3.6
Fixes regression from "ui/gtk: fix control combos such as ctrl-a,
ctrl-c".
Change-Id: I4d470212d172f978c171e54ff7377ddc211817ac
Reviewed-on: https://code.wireshark.org/review/7325
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/filter_autocomplete.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/filter_autocomplete.c b/ui/gtk/filter_autocomplete.c index 1c3ea18683..eab3325ab0 100644 --- a/ui/gtk/filter_autocomplete.c +++ b/ui/gtk/filter_autocomplete.c @@ -375,8 +375,8 @@ filter_string_te_key_pressed_cb(GtkWidget *filter_te, GdkEventKey *event, gpoint switch (k) { case GDK_Shift_L: case GDK_Shift_R: - case GDK_KEY_Control_L: - case GDK_KEY_Control_R: + case GDK_Control_L: + case GDK_Control_R: goto exit; } |