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>
This commit is contained in:
Peter Wu 2015-02-23 13:05:46 +01:00 committed by Balint Reczey
parent d488d6392a
commit 966766694c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}