commit bc6eac4fbae2d1a63518da8a732a404c6aca2f71
Author: Christophe Fergeau <teuf@gnome.org>
Date: Sat May 17 17:35:06 2008 +0200
Don't connect to notify::name before priv::ipod_db is created, fixes #524985
diff --git a/plugins/ipod/rb-ipod-source.c b/plugins/ipod/rb-ipod-source.c
index b7c9a31..f3488fa 100644
--- a/plugins/ipod/rb-ipod-source.c
+++ b/plugins/ipod/rb-ipod-source.c
@@ -194,8 +194,6 @@ rb_ipod_source_name_changed_cb (RBiPodSource *source, GParamSpec *spec,
static void
rb_ipod_source_init (RBiPodSource *source)
{
- g_signal_connect (G_OBJECT (source), "notify::name",
- (GCallback)rb_ipod_source_name_changed_cb, NULL);
}
static GObject *
@@ -936,6 +934,9 @@ rb_ipod_load_songs (RBiPodSource *source)
"name", name,
NULL);
}
+ g_signal_connect (G_OBJECT (source), "notify::name",
+ (GCallback)rb_ipod_source_name_changed_cb,
+ NULL);
priv->load_idle_id = g_idle_add ((GSourceFunc)load_ipod_db_idle_cb, source);
}
g_object_unref (volume);