diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-06 20:42:58 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-06 20:42:58 +0200 |
commit | 61c87258bb9411046ffd7223437923e683ce020c (patch) | |
tree | 2492a696dff8602c7e0139c8aa4f33eec6e16353 /gtkplaylist.c | |
parent | e9463321934c8111e7e2e54729cbad88a357d040 (diff) |
moved most hotkeys to gtk accelerators
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 3a8e7f51..40da49f0 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -793,26 +793,29 @@ gtkpl_keypress (gtkplaylist_t *ps, int keyval, int state) { // search_start (); // } // else - if ((keyval == GDK_A || keyval == GDK_a) && (state & GDK_CONTROL_MASK)) { - // select all - pl_select_all (); - gtkpl_draw_playlist (ps, 0, 0, widget->allocation.width, widget->allocation.height); - gdk_draw_drawable (widget->window, widget->style->black_gc, ps->backbuf, 0, 0, 0, 0, widget->allocation.width, widget->allocation.height); - return; - } - else if ((keyval == GDK_P || keyval == GDK_p) && (state & GDK_CONTROL_MASK)) { - messagepump_push (M_PAUSESONG, 0, 0, 0); - } - else if (keyval == GDK_Return && ps->row != -1) { - messagepump_push (M_PLAYSONGNUM, 0, ps->row, 0); - return; - } - else if (keyval == GDK_Delete) { - pl_delete_selected (); - playlist_refresh (); - return; - } - else if (keyval == GDK_Down && ps->row < (*ps->pcount) - 1) { +// if ((keyval == GDK_A || keyval == GDK_a) && (state & GDK_CONTROL_MASK)) { +// // select all +// pl_select_all (); +// gtkpl_draw_playlist (ps, 0, 0, widget->allocation.width, widget->allocation.height); +// gdk_draw_drawable (widget->window, widget->style->black_gc, ps->backbuf, 0, 0, 0, 0, widget->allocation.width, widget->allocation.height); +// return; +// } +// else if ((keyval == GDK_P || keyval == GDK_p) && (state & GDK_CONTROL_MASK)) { +// messagepump_push (M_PAUSESONG, 0, 0, 0); +// } +// else +// if (keyval == GDK_Return && ps->row != -1) { +// messagepump_push (M_PLAYSONGNUM, 0, ps->row, 0); +// return; +// } +// else +// if (keyval == GDK_Delete) { +// pl_delete_selected (); +// playlist_refresh (); +// return; +// } +// else + if (keyval == GDK_Down && ps->row < (*ps->pcount) - 1) { ps->row++; if (ps->row > ps->scrollpos + widget->allocation.height / rowheight - 1) { newscroll = ps->row - widget->allocation.height / rowheight + 1; |