[grilo] [test-ui] Fixed wrong callback signature for registry signals.
- From: Iago Toral Quiroga <itoral src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] [test-ui] Fixed wrong callback signature for registry signals.
- Date: Mon, 12 Apr 2010 14:05:46 +0000 (UTC)
commit 4b2633177c38d72afdd5dddc2f9cc9154bc097c3
Author: Iago Toral Quiroga <itoral igalia com>
Date: Mon Apr 12 16:04:12 2010 +0200
[test-ui] Fixed wrong callback signature for registry signals.
tools/grilo-test-ui/main.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 54c0e50..2c281e1 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1440,10 +1440,12 @@ reset_ui (void)
}
static void
-source_added_cb (GrlPluginRegistry *registry, gpointer user_data)
+source_added_cb (GrlPluginRegistry *registry,
+ GrlMediaPlugin *source,
+ gpointer user_data)
{
g_debug ("Detected new source available: '%s'",
- grl_metadata_source_get_name (GRL_METADATA_SOURCE (user_data)));
+ grl_metadata_source_get_name (GRL_METADATA_SOURCE (source)));
/* If showing the plugin list, refresh it */
if (!ui_state->cur_source && !ui_state->cur_container) {
@@ -1456,10 +1458,12 @@ source_added_cb (GrlPluginRegistry *registry, gpointer user_data)
}
static void
-source_removed_cb (GrlPluginRegistry *registry, gpointer user_data)
+source_removed_cb (GrlPluginRegistry *registry,
+ GrlMediaPlugin *source,
+ gpointer user_data)
{
g_debug ("Source '%s' is gone",
- grl_metadata_source_get_name (GRL_METADATA_SOURCE (user_data)));
+ grl_metadata_source_get_name (GRL_METADATA_SOURCE (source)));
if (!ui_state->cur_source && !ui_state->cur_container) {
/* If showing the plugin list, refresh it */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]