diff options
author | 2010-01-01 16:05:48 +0100 | |
---|---|---|
committer | 2010-01-01 16:05:48 +0100 | |
commit | 98ac1eb4b44bb3e076c30e1ba4f49d1250af339f (patch) | |
tree | 768c7128f5224a0b5ff5653ccc52074fd2541c03 /plugins/gtkui/gtkplaylist.c | |
parent | 41cfc696168bea068350e18d571082a04e4557d7 (diff) |
fixed pcspeaker beeps when pressing home/end, etc
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); |