summaryrefslogtreecommitdiff
path: root/plugins/gtkui/callbacks.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-25 21:49:34 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-25 21:49:34 +0200
commit43a277e9d2dfaa2055184617495e1d3a48b8d9cc (patch)
tree6e98e5d4df0299825c6ec21ca51c37ca23ccf9d2 /plugins/gtkui/callbacks.c
parent3d8f7348c65f7b071ad488c6d09ecfa6e3baaee6 (diff)
new future-proof playlist API, potentially reducing locking, and allowing more flexibility
Diffstat (limited to 'plugins/gtkui/callbacks.c')
-rw-r--r--plugins/gtkui/callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c
index 1cbbe523..3bf04373 100644
--- a/plugins/gtkui/callbacks.c
+++ b/plugins/gtkui/callbacks.c
@@ -354,7 +354,7 @@ on_mainwin_key_press_event (GtkWidget *widget,
else if ((maskedstate == GDK_MOD1_MASK || maskedstate == 0) && event->keyval >= GDK_1 && event->keyval <= GDK_9) {
int pl = event->keyval - GDK_1;
if (pl >= 0 && pl < deadbeef->plt_get_count ()) {
- deadbeef->plt_set_curr (pl);
+ deadbeef->plt_set_curr_idx (pl);
deadbeef->conf_set_int ("playlist.current", pl);
}
}
@@ -983,7 +983,7 @@ on_new_playlist1_activate (GtkMenuItem *menuitem,
{
int pl = gtkui_add_new_playlist ();
if (pl != -1) {
- deadbeef->plt_set_curr (pl);
+ deadbeef->plt_set_curr_idx (pl);
deadbeef->conf_set_int ("playlist.current", pl);
}
}