diff options
Diffstat (limited to 'plugins/gtkui/gtkplaylist.c')
-rw-r--r-- | plugins/gtkui/gtkplaylist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/gtkui/gtkplaylist.c b/plugins/gtkui/gtkplaylist.c index e7860565..a5085d1f 100644 --- a/plugins/gtkui/gtkplaylist.c +++ b/plugins/gtkui/gtkplaylist.c @@ -214,6 +214,7 @@ gtkpl_init (void) { rowheight = draw_get_font_size () + 12; memcpy (colo_current, colo_white_blue, sizeof (colo_current)); theme_treeview = gtk_tree_view_new (); + GTK_WIDGET_UNSET_FLAGS (theme_treeview, GTK_CAN_FOCUS); gtk_widget_show (theme_treeview); GtkWidget *vbox1 = lookup_widget (mainwin, "vbox1"); gtk_box_pack_start (GTK_BOX (vbox1), theme_treeview, FALSE, FALSE, 0); @@ -912,6 +913,9 @@ gtkpl_keypress (gtkplaylist_t *ps, int keyval, int state) { if (cursor > 0) { cursor--; } + else if (cursor < 0 && ps->get_count () > 0) { + cursor = 0; + } } else if (keyval == GDK_Page_Down) { cursor = deadbeef->pl_get_cursor (ps->iterator); |