[rhythmbox] rhythmdb: fix signal handler prototype and test case for entry-changed



commit 38c71816b76c0e37a06b6c461b50327bf8ffd0e2
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Jun 18 18:28:01 2010 +1000

    rhythmdb: fix signal handler prototype and test case for entry-changed

 rhythmdb/rhythmdb.h   |    2 +-
 tests/test-rhythmdb.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rhythmdb/rhythmdb.h b/rhythmdb/rhythmdb.h
index b3eb7ee..d2453a2 100644
--- a/rhythmdb/rhythmdb.h
+++ b/rhythmdb/rhythmdb.h
@@ -301,7 +301,7 @@ struct _RhythmDBClass
 
 	/* signals */
 	void	(*entry_added)		(RhythmDB *db, RhythmDBEntry *entry);
-	void	(*entry_changed)	(RhythmDB *db, RhythmDBEntry *entry, GSList *changes); /* list of RhythmDBEntryChanges */
+	void	(*entry_changed)	(RhythmDB *db, RhythmDBEntry *entry, GValueArray *changes); /* array of RhythmDBEntryChanges */
 	void	(*entry_deleted)	(RhythmDB *db, RhythmDBEntry *entry);
 	void	(*entry_keyword_added)	(RhythmDB *db, RhythmDBEntry *entry, RBRefString *keyword);
 	void	(*entry_keyword_removed)(RhythmDB *db, RhythmDBEntry *entry, RBRefString *keyword);
diff --git a/tests/test-rhythmdb.c b/tests/test-rhythmdb.c
index 77425f6..ee17212 100644
--- a/tests/test-rhythmdb.c
+++ b/tests/test-rhythmdb.c
@@ -472,10 +472,10 @@ START_TEST (test_rhythmdb_modify_after_delete)
 END_TEST
 
 static void
-commit_change_merge_cb (RhythmDB *db, RhythmDBEntry *entry, GSList *changes, gpointer ok)
+commit_change_merge_cb (RhythmDB *db, RhythmDBEntry *entry, GValueArray *changes, gpointer ok)
 {
 	int expected = GPOINTER_TO_INT (ok);
-	fail_unless (g_slist_length (changes) == expected, "commit change lists merged");
+	fail_unless (changes->n_values == expected, "commit change lists merged");
 }
 
 START_TEST (test_rhythmdb_commit_change_merging)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]