diff options
author | waker <wakeroid@gmail.com> | 2012-10-28 13:42:40 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-10-28 13:42:40 +0100 |
commit | 79aec07b7d75314c84f665a2b768267606ca34c0 (patch) | |
tree | dbd873b25c71ce5dececa14809838ef4ef9ac126 | |
parent | edc1a13b161553ce55c6bba05001245f45323e3a (diff) |
gtkui: disabled search in the "selection properties" widget
-rw-r--r-- | plugins/gtkui/callbacks.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/widgets.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 72a05e63..f8a64a16 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -379,6 +379,7 @@ on_mainwin_key_press_event (GtkWidget *widget, if ((maskedstate == GDK_MOD1_MASK || maskedstate == 0) && event->keyval == GDK_n) { // button for that one is not in toolbar anymore, so handle it manually deadbeef->sendmessage (DB_EV_PLAY_RANDOM, 0, 0, 0); + return TRUE; } else if ((maskedstate == GDK_MOD1_MASK || maskedstate == 0) && event->keyval >= GDK_1 && event->keyval <= GDK_9) { int pl = event->keyval - GDK_1; @@ -386,6 +387,7 @@ on_mainwin_key_press_event (GtkWidget *widget, deadbeef->plt_set_curr_idx (pl); deadbeef->conf_set_int ("playlist.current", pl); } + return TRUE; } return FALSE; } diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c index 7d6893d3..1d96441f 100644 --- a/plugins/gtkui/widgets.c +++ b/plugins/gtkui/widgets.c @@ -1773,6 +1773,7 @@ w_selproperties_create (void) { gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (w->base.widget), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w->tree = gtk_tree_view_new (); gtk_widget_show (w->tree); + gtk_tree_view_set_enable_search (GTK_TREE_VIEW (w->tree), FALSE); gtk_container_add (GTK_CONTAINER (w->base.widget), w->tree); w->base.message = selproperties_message; |