From 9dda74a059f96ac0ba803b56ee9eafd119e2c6f0 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Fri, 6 Feb 2009 15:49:07 +0000 Subject: [PATCH] 2009-02-06 Alberto Garcia * 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 | 6 ++++++ src/hildon-date-selector.c | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 30ea5f7..9523518 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-02-06 Alberto Garcia + + * 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 * src/hildon-touch-selector.c: (_create_new_column), diff --git a/src/hildon-date-selector.c b/src/hildon-date-selector.c index 44cf7b1..69d0f0c 100644 --- a/src/hildon-date-selector.c +++ b/src/hildon-date-selector.c @@ -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 -- 1.7.9.5