diff options
author | 2011-10-23 11:50:41 +0200 | |
---|---|---|
committer | 2011-10-23 11:50:41 +0200 | |
commit | a9c813ddbda28a2d0beff104fe8cf80299292533 (patch) | |
tree | 5630dfd20c5e4484148dc4fde06fdb2a0e9aeefa /plugins/gtkui/mainplaylist.c | |
parent | 2f2937a5554d4cdca177eb546a0e0c449b16c700 (diff) | |
parent | 50208fdf54d7afaf8b42abc511ddc675b9475184 (diff) |
Merge branch 'master' into devel
Conflicts:
deadbeef.h
metacache.c
playlist.c
plugins.c
plugins/gtkui/Makefile.am
plugins/gtkui/ddbcellrenderertextmultiline.c
plugins/gtkui/ddbcellrenderertextmultiline.h
plugins/gtkui/ddbequalizer.c
plugins/gtkui/ddbequalizer.h
plugins/gtkui/ddbseekbar.c
plugins/gtkui/ddbseekbar.h
plugins/gtkui/ddbtabstrip.c
plugins/gtkui/fileman.c
plugins/gtkui/gtkui.c
plugins/gtkui/interface.c
plugins/gtkui/plcommon.c
plugins/gtkui/trkproperties.c
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 17083b7c..ceb61573 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -118,6 +118,7 @@ main_drag_n_drop (DdbListviewIter before, DdbPlaylistHandle from_playlist, uint3 } deadbeef->plt_unref (plt); deadbeef->pl_unlock (); + deadbeef->pl_save_all (); } void main_external_drag_n_drop (DdbListviewIter before, char *mem, int length) { @@ -161,13 +162,13 @@ void main_selection_changed (DdbListviewIter it, int idx) { deadbeef->sendmessage (DB_EV_SELCHANGED, 0, deadbeef->plt_get_curr_idx (), PL_MAIN); } -void main_draw_group_title (DdbListview *listview, GdkDrawable *drawable, DdbListviewIter it, int x, int y, int width, int height) { +void main_draw_group_title (DdbListview *listview, cairo_t *drawable, DdbListviewIter it, int x, int y, int width, int height) { if (group_by_str && group_by_str[0]) { char str[1024]; deadbeef->pl_format_title ((DB_playItem_t *)it, -1, str, sizeof (str), -1, group_by_str); int theming = !gtkui_override_listview_colors (); if (theming) { - GdkColor *clr = &theme_treeview->style->fg[GTK_STATE_NORMAL]; + GdkColor *clr = >k_widget_get_style(theme_treeview)->fg[GTK_STATE_NORMAL]; float rgb[] = {clr->red/65535.f, clr->green/65535.f, clr->blue/65535.f}; draw_set_fg_color (rgb); } @@ -186,6 +187,7 @@ void main_draw_group_title (DdbListview *listview, GdkDrawable *drawable, DdbLis void main_delete_selected (void) { deadbeef->pl_delete_selected (); + deadbeef->pl_save_all (); main_refresh (); search_refresh (); } |