diff options
Diffstat (limited to 'audio/gmpc/patches/patch-af')
-rw-r--r-- | audio/gmpc/patches/patch-af | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/audio/gmpc/patches/patch-af b/audio/gmpc/patches/patch-af index 82dda357a66..0d5965c1e58 100644 --- a/audio/gmpc/patches/patch-af +++ b/audio/gmpc/patches/patch-af @@ -1,30 +1,19 @@ -$NetBSD: patch-af,v 1.1 2005/12/18 20:24:46 rillig Exp $ +$NetBSD: patch-af,v 1.2 2006/04/07 17:40:22 rpaulo Exp $ -Keywords: c90 - ---- src/playlist3.c.orig Sun Aug 14 15:01:07 2005 -+++ src/playlist3.c Sun Dec 18 21:09:30 2005 -@@ -193,7 +193,7 @@ unsigned long pl3_find_view_browser() - if(loop) - { - GtkTreeIter piter; -- int id = 0, ttime = 0;; -+ int id = 0, ttime = 0; - char *icon; - gtk_tree_model_get(GTK_TREE_MODEL(pl2_store), &iter, SONG_ID, &id, SONG_STOCK_ID, &icon, -1); - gtk_list_store_append(pl3_store, &piter); -@@ -1239,9 +1239,12 @@ void pl3_playlist_row_activated(GtkTreeV - */ - void pl3_reinitialize_tree() +--- src/playlist3.c.orig 2006-02-15 21:09:17.000000000 +0000 ++++ src/playlist3.c 2006-04-06 21:51:40.000000000 +0100 +@@ -105,10 +105,12 @@ int pl3_cat_get_selected_browser() + void pl3_initialize_tree() { + int i; + GtkTreePath *path; + GtkTreeSelection *sel; -+ if(pl3_xml == NULL) return; + - GtkTreePath *path = gtk_tree_path_new_from_string("0"); - GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(glade_xml_get_widget(pl3_xml, "cat_tree"))); + path = gtk_tree_path_new_from_string("0"); + sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(glade_xml_get_widget(pl3_xml, "cat_tree"))); - gtk_tree_store_clear(pl3_tree); - /* add the current playlist */ - pl3_current_playlist_add(); + if((old_type&PLUGIN_ID_MARK || old_type&PLUGIN_ID_INTERNALL) != 0) + { + if(old_type >= 0) |