set slider range before setting duration
authorBrandon Lewis <brandon@collabora.co.uk>
Wed, 21 Jul 2010 16:15:56 +0000 (18:15 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 2 Sep 2010 16:04:25 +0000 (18:04 +0200)
tests/examples/ges-ui.c

index bfaff5d..73419a3 100644 (file)
@@ -364,13 +364,13 @@ layer_object_removed_cb (GESTimelineLayer * layer, GESTimelineObject * object,
 void
 connect_to_filesource (GESTimelineObject * object, App * app)
 {
-  g_signal_connect (G_OBJECT (object), "notify::duration",
-      G_CALLBACK (filesource_notify_duration_cb), app);
-  filesource_notify_duration_cb (object, NULL, app);
-
   g_signal_connect (G_OBJECT (object), "notify::max-duration",
       G_CALLBACK (filesource_notify_max_duration_cb), app);
   filesource_notify_max_duration_cb (object, NULL, app);
+
+  g_signal_connect (G_OBJECT (object), "notify::duration",
+      G_CALLBACK (filesource_notify_duration_cb), app);
+  filesource_notify_duration_cb (object, NULL, app);
 }
 
 void