diff options
author | waker <wakeroid@gmail.com> | 2011-10-10 19:30:39 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-10-10 19:30:39 +0200 |
commit | 2f6b7562da90ec1f435bb5b7f6cb079c932f596e (patch) | |
tree | f7a50ed0aab70bef071178423b92eb682fc3328a /plugins | |
parent | c9fa5c004a317b5d48360d7b4deb0b3f05da50f7 (diff) |
gtkui: fixed GDK_KEY_ problem in search.c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c index 846140b5..e3d46819 100644 --- a/plugins/gtkui/search.c +++ b/plugins/gtkui/search.c @@ -150,10 +150,10 @@ on_searchwin_key_press_event (GtkWidget *widget, gpointer user_data) { // that's for when user attempts to navigate list while entry has focus - if (event->keyval == GDK_KEY_Escape) { + if (event->keyval == GDK_Escape) { gtk_widget_hide (widget); } - else if (event->keyval == GDK_KEY_Return) { + else if (event->keyval == GDK_Return) { if (deadbeef->pl_getcount (PL_SEARCH) > 0) { int row = deadbeef->pl_get_cursor (PL_SEARCH); DB_playItem_t *it = deadbeef->pl_get_for_idx_and_iter (max (row, 0), PL_SEARCH); @@ -163,7 +163,7 @@ on_searchwin_key_press_event (GtkWidget *widget, } } } - else if (event->keyval != GDK_KEY_Delete && event->keyval != GDK_KEY_Home && event->keyval != GDK_KEY_End){ + else if (event->keyval != GDK_Delete && event->keyval != GDK_Home && event->keyval != GDK_End){ GtkWidget *pl = lookup_widget (searchwin, "searchlist"); if (!ddb_listview_handle_keypress (DDB_LISTVIEW (pl), event->keyval, event->state)) { return FALSE; |