summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-12-15 19:36:02 +0000
committerjoerg <joerg@pkgsrc.org>2013-12-15 19:36:02 +0000
commit2adaae10d70bfe115f74f4730fe0f2f4cf99ffc5 (patch)
treee22a028f4d0730f8545d0f1a4657b348b5a72a96 /audio
parent4292642985d1deaabf9f1018db5649ea28e9b33d (diff)
downloadpkgsrc-2adaae10d70bfe115f74f4730fe0f2f4cf99ffc5.tar.gz
DIR is reserved for dirent.h, so use a different type name.
Diffstat (limited to 'audio')
-rw-r--r--audio/gimmix/distinfo3
-rw-r--r--audio/gimmix/patches/patch-src_gimmix-playlist.c112
2 files changed, 114 insertions, 1 deletions
diff --git a/audio/gimmix/distinfo b/audio/gimmix/distinfo
index 49fee06e092..64036f37a5f 100644
--- a/audio/gimmix/distinfo
+++ b/audio/gimmix/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2011/08/01 03:40:58 dholland Exp $
+$NetBSD: distinfo,v 1.6 2013/12/15 19:36:02 joerg Exp $
SHA1 (gimmix-0.5.7.1.tar.bz2) = d32f272e4c6b4107081355c19bf813b69096ee7d
RMD160 (gimmix-0.5.7.1.tar.bz2) = be664504014a23f3ff7327730508cb18a9e0d356
Size (gimmix-0.5.7.1.tar.bz2) = 330368 bytes
+SHA1 (patch-src_gimmix-playlist.c) = db9ea0a63db64b8e3d03cf8fe436b8b9513830b6
SHA1 (patch-src_gimmix_covers_c) = 3c438232c6fa414ceaa5f131e259a1f810e58771
SHA1 (patch-src_gimmix_lyrics_c) = 944af1a9b66e1eaeb457fd5705ec1c64d48039ea
diff --git a/audio/gimmix/patches/patch-src_gimmix-playlist.c b/audio/gimmix/patches/patch-src_gimmix-playlist.c
new file mode 100644
index 00000000000..7539dbc9b09
--- /dev/null
+++ b/audio/gimmix/patches/patch-src_gimmix-playlist.c
@@ -0,0 +1,112 @@
+$NetBSD: patch-src_gimmix-playlist.c,v 1.1 2013/12/15 19:36:02 joerg Exp $
+
+--- src/gimmix-playlist.c.orig 2013-12-15 15:32:41.000000000 +0000
++++ src/gimmix-playlist.c
+@@ -39,7 +39,7 @@ typedef enum {
+
+ typedef enum {
+ SONG = 1,
+- DIR,
++ DIRECTORY,
+ PLAYLIST
+ } GimmixFileType;
+
+@@ -149,7 +149,7 @@ on_drag_data_get (GtkWidget *widget, Gdk
+ gtk_tree_model_get_iter (model, &iter, list->data);
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, -1);
+
+- if (type == DIR || type == SONG)
++ if (type == DIRECTORY || type == SONG)
+ {
+ switch (target_type)
+ {
+@@ -671,7 +671,7 @@ gimmix_library_and_playlists_populate (v
+ GDK_TYPE_PIXBUF, /* icon (0) */
+ G_TYPE_STRING, /* name (1) */
+ G_TYPE_STRING, /* path (2) */
+- G_TYPE_INT, /* type DIR/SONG (3) */
++ G_TYPE_INT, /* type DIRECTORY/SONG (3) */
+ G_TYPE_INT); /* id (4) */
+
+ pls_store = gtk_list_store_new (2,
+@@ -696,7 +696,7 @@ gimmix_library_and_playlists_populate (v
+ 0, dir_pixbuf,
+ 1, path,
+ 2, data->directory,
+- 3, DIR,
++ 3, DIRECTORY,
+ -1);
+ g_free (path);
+ }
+@@ -954,7 +954,7 @@ cb_library_dir_activated (gpointer data)
+ gtk_tree_model_get_iter (model, &iter, list->data);
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, -1);
+
+- if (type == DIR)
++ if (type == DIRECTORY)
+ {
+ gimmix_update_library_with_dir (path);
+ }
+@@ -1005,7 +1005,7 @@ cb_library_popup_add_clicked (GtkWidget
+ gtk_tree_model_get_iter (model, &iter, list->data);
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, -1);
+
+- if (type == DIR)
++ if (type == DIRECTORY)
+ {
+ mpd_playlist_queue_add (gmo, path);
+ }
+@@ -1023,7 +1023,7 @@ cb_library_popup_add_clicked (GtkWidget
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, -1);
+
+
+- if (type == DIR)
++ if (type == DIRECTORY)
+ {
+ mpd_playlist_queue_add (gmo, path);
+ g_free (path);
+@@ -1081,7 +1081,7 @@ cd_library_popup_replace_clicked (GtkWid
+ gtk_tree_model_get_iter (model, &iter, list->data);
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, -1);
+
+- if (type == DIR)
++ if (type == DIRECTORY)
+ {
+ mpd_playlist_queue_add (gmo, path);
+ }
+@@ -1099,7 +1099,7 @@ cd_library_popup_replace_clicked (GtkWid
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, -1);
+
+
+- if (type == DIR)
++ if (type == DIRECTORY)
+ {
+ mpd_playlist_queue_add (gmo, path);
+ g_free (path);
+@@ -1245,7 +1245,7 @@ gimmix_update_library_with_dir (gchar *d
+ 0, dir_pixbuf,
+ 1, "..",
+ 2, parent,
+- 3, DIR,
++ 3, DIRECTORY,
+ -1);
+ g_free (parent);
+ }
+@@ -1260,7 +1260,7 @@ gimmix_update_library_with_dir (gchar *d
+ 0, dir_pixbuf,
+ 1, directory,
+ 2, data->directory,
+- 3, DIR,
++ 3, DIRECTORY,
+ -1);
+ g_free (directory);
+ }
+@@ -1341,7 +1341,7 @@ gimmix_library_song_info (void)
+ gtk_tree_model_get_iter (model, &iter, list->data);
+ gtk_tree_model_get (model, &iter, 2, &path, 3, &type, 4, &id, -1);
+
+- if (type == DIR)
++ if (type == DIRECTORY)
+ {
+ g_free (path);
+ return;