diff options
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 4ff9c95f..8247106b 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -39,6 +39,7 @@ GdkPixbuf *play16_pixbuf; GdkPixbuf *pause16_pixbuf; GdkPixbuf *buffering16_pixbuf; + // HACK!! extern GtkWidget *theme_treeview; @@ -143,8 +144,6 @@ void main_selection_changed (DdbListviewIter it, int idx) { ddb_listview_draw_row (search, search_get_idx ((DB_playItem_t *)it), it); } -const char *group_by_str = ""; - void main_draw_group_title (DdbListview *listview, GdkDrawable *drawable, DdbListviewIter it, int x, int y, int width, int height) { if (group_by_str && group_by_str[0]) { char str[1024]; @@ -314,7 +313,8 @@ main_playlist_init (GtkWidget *widget) { g_object_set_property (G_OBJECT (widget), "has-tooltip", &value); g_signal_connect (G_OBJECT (widget), "query-tooltip", G_CALLBACK (playlist_tooltip_handler), NULL); } - group_by_str = deadbeef->conf_get_str ("playlist.group_by", ""); + strncpy (group_by_str, deadbeef->conf_get_str ("playlist.group_by", ""), sizeof (group_by_str)); + group_by_str[sizeof (group_by_str)-1] = 0; } void |