changeset 594:424d51558e0a trunk

[svn] - Adapted song_change plugin to new hook functions
author mf0102
date Thu, 01 Feb 2007 05:10:14 -0800
parents 988b130d66d3
children 99e8b9881cb9
files ChangeLog src/song_change/song_change.c
diffstat 2 files changed, 17 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Feb 01 00:20:25 2007 -0800
+++ b/ChangeLog	Thu Feb 01 05:10:14 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-01 08:20:25 +0000  
+  revision [1272]
+  * Update Japanese translation.
+  
+  trunk/po/ja.po |  116 ++++++++++++++++++++++++++++-----------------------------
+  1 file changed, 58 insertions(+), 58 deletions(-)
+
+
 2007-01-31 20:12:23 +0000  Giacomo Lozito <james@develia.org>
   revision [1270]
   - aosd: immediately hide osd window by single clicking (with mouse button 1) on it
--- a/src/song_change/song_change.c	Thu Feb 01 00:20:25 2007 -0800
+++ b/src/song_change/song_change.c	Thu Feb 01 05:10:14 2007 -0800
@@ -26,9 +26,9 @@
 static void init(void);
 static void cleanup(void);
 static GtkWidget *configure(void);
-static void songchange_playback_begin(gpointer unused);
-static void songchange_playback_end(gpointer unused);
-static void songchange_playlist_eof(gpointer unused);
+static void songchange_playback_begin(gpointer unused, gpointer unused2);
+static void songchange_playback_end(gpointer unused, gpointer unused2);
+static void songchange_playlist_eof(gpointer unused, gpointer unused2);
 
 static char *cmd_line = NULL;
 static char *cmd_line_after = NULL;
@@ -433,15 +433,15 @@
 	configure_vbox = configure();
 	prefswin_page_new(configure_vbox, "Song Change", DATA_DIR "/images/plugins.png");
 
-	hook_associate("playback begin", songchange_playback_begin);
-	hook_associate("playback end", songchange_playback_end);
-	hook_associate("playlist end reached", songchange_playlist_eof);
+	hook_associate("playback begin", songchange_playback_begin, NULL);
+	hook_associate("playback end", songchange_playback_end, NULL);
+	hook_associate("playlist end reached", songchange_playlist_eof, NULL);
 
 	configure_ok_cb(NULL, NULL);
 }
 
 static void
-songchange_playback_begin(gpointer unused)
+songchange_playback_begin(gpointer unused, gpointer unused2)
 {
 	int pos;
 	char *current_file;
@@ -455,7 +455,7 @@
 }
 
 static void
-songchange_playback_end(gpointer unused)
+songchange_playback_end(gpointer unused, gpointer unused2)
 {
 	int pos;
 	char *current_file;
@@ -469,7 +469,7 @@
 }
 
 static void
-songchange_playlist_eof(gpointer unused)
+songchange_playlist_eof(gpointer unused, gpointer unused2)
 {
 	int pos;
 	char *current_file;