diff options
author | TingPing <tingping@tingping.se> | 2013-09-15 03:21:56 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-09-15 03:22:04 -0400 |
commit | ddb3bf05d86a69b9370949c00f551bc15f39b54b (patch) | |
tree | 9352926dc281755487e566f58f0cc2241a1aeff0 /src/fe-gtk/servlistgui.c | |
parent | 8b463e6b140411afa7f79d1605e7a3fd1f429066 (diff) |
use GDK_KEY
Diffstat (limited to 'src/fe-gtk/servlistgui.c')
-rw-r--r-- | src/fe-gtk/servlistgui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index ef5b57cd..e1292259 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -587,12 +587,12 @@ servlist_net_keypress_cb (GtkWidget *wid, GdkEventKey *evt, gpointer tree) if (evt->state & STATE_SHIFT) { - if (evt->keyval == GDK_Up) + if (evt->keyval == GDK_KEY_Up) { handled = TRUE; network_list = servlist_move_item (GTK_TREE_VIEW (tree), network_list, selected_net, -1); } - else if (evt->keyval == GDK_Down) + else if (evt->keyval == GDK_KEY_Down) { handled = TRUE; network_list = servlist_move_item (GTK_TREE_VIEW (tree), network_list, selected_net, +1); @@ -1030,12 +1030,12 @@ servlist_keypress_cb (GtkWidget *wid, GdkEventKey *evt, GtkNotebook *notebook) if (evt->state & STATE_SHIFT) { - if (evt->keyval == GDK_Up) + if (evt->keyval == GDK_KEY_Up) { handled = TRUE; delta = -1; } - else if (evt->keyval == GDK_Down) + else if (evt->keyval == GDK_KEY_Down) { handled = TRUE; delta = +1; |