diff options
author | 2010-05-02 16:25:57 +0200 | |
---|---|---|
committer | 2010-05-02 16:25:57 +0200 | |
commit | 04e5f2de14af45f8965834256d3a5398703bce8a (patch) | |
tree | f90779f3ef0d7545230e57b8d35a4c648b049f03 /plugins/gtkui/mainplaylist.c | |
parent | 6f1afe36cd5f4584c889d54353ccd209fce15f23 (diff) |
added custom grouping;
removed group-by submenu from search window;
few minor tweaks to dialog buttons
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 |