2009-02-06 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Fri, 6 Feb 2009 15:49:07 +0000 (15:49 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Fri, 6 Feb 2009 15:49:07 +0000 (15:49 +0000)
* src/hildon-date-selector.c (hildon_date_selector_init)
(hildon_date_selector_constructor): Don't connect to the "changed"
signal until the selector is completely constructed.

ChangeLog
src/hildon-date-selector.c

index 30ea5f7..9523518 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-06  Alberto Garcia  <agarcia@igalia.com>
+
+       * src/hildon-date-selector.c (hildon_date_selector_init)
+       (hildon_date_selector_constructor): Don't connect to the "changed"
+       signal until the selector is completely constructed.
+
 2009-02-05  Claudio Saavedra  <csaavedra@igalia.com>
 
        * src/hildon-touch-selector.c: (_create_new_column),
index 44cf7b1..69d0f0c 100644 (file)
@@ -352,6 +352,8 @@ hildon_date_selector_constructor (GType                  type,
 
   hildon_date_selector_construct_ui (HILDON_DATE_SELECTOR (object));
 
+  g_signal_connect (object, "changed", G_CALLBACK (_manage_selector_change_cb), NULL);
+
   return object;
 }
 
@@ -373,10 +375,6 @@ hildon_date_selector_init (HildonDateSelector * selector)
   _get_real_date (&selector->priv->creation_year,
                   &selector->priv->creation_month, &selector->priv->creation_day);
   selector->priv->current_num_days = 31;
-
-
-  g_signal_connect (G_OBJECT (selector),
-                    "changed", G_CALLBACK (_manage_selector_change_cb), NULL);
 }
 
 static void