diff options
author | waker <wakeroid@gmail.com> | 2011-04-13 21:03:52 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-13 21:15:54 +0200 |
commit | a0116d4496107e368b791d86295834c6e844a6e8 (patch) | |
tree | 0294bd3a66ea21a634190016bb6065c9c6f86b33 /plugins/gtkui/ddbtabstrip.c | |
parent | 8d6dab0928866350d981793cd9207d0fb284fb4d (diff) |
got rid of plt_lock and global_lock in favor of just using pl_lock for all playlist access;
added playlist modification time functions for tracking playlist changes;
fixed gtkui playlist group rebuilding
Diffstat (limited to 'plugins/gtkui/ddbtabstrip.c')
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c index 60b806c8..a1f2aa10 100644 --- a/plugins/gtkui/ddbtabstrip.c +++ b/plugins/gtkui/ddbtabstrip.c @@ -47,10 +47,10 @@ plt_get_title_wrapper (int plt, char *buffer, int len) { strcpy (buffer, ""); return; } - deadbeef->plt_lock (); + deadbeef->pl_lock (); void *p = deadbeef->plt_get_handle (plt); deadbeef->plt_get_title (p, buffer, len); - deadbeef->plt_unlock (); + deadbeef->pl_unlock (); char *end; if (!g_utf8_validate (buffer, -1, (const gchar **)&end)) { *end = 0; @@ -469,7 +469,7 @@ set_tab_text_color (int idx) { if (idx == -1) { return; } - deadbeef->plt_lock (); + deadbeef->pl_lock (); void *plt = deadbeef->plt_get_handle (idx); const char *clr = deadbeef->plt_find_meta (plt, "gui.color"); int fallback = 1; @@ -487,7 +487,7 @@ set_tab_text_color (int idx) { float fg[3] = {(float)color.red/0xffff, (float)color.green/0xffff, (float)color.blue/0xffff}; draw_set_fg_color (fg); } - deadbeef->plt_unlock (); + deadbeef->pl_unlock (); } void @@ -668,10 +668,10 @@ on_rename_playlist1_activate (GtkMenuItem *menuitem, int res = gtk_dialog_run (GTK_DIALOG (dlg)); if (res == GTK_RESPONSE_OK) { const char *text = gtk_entry_get_text (GTK_ENTRY (e)); - deadbeef->plt_lock (); + deadbeef->pl_lock (); void *p = deadbeef->plt_get_handle (tab_clicked); deadbeef->plt_set_title (p, text); - deadbeef->plt_unlock (); + deadbeef->pl_unlock (); } gtk_widget_destroy (dlg); } |