X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=hildon%2Fhildon-time-selector.c;h=bf6ff130575b3e3205d76f539b323656a61253fb;hb=50d9c2ed3c66110399b422ef6bd390b6526a111a;hp=e64d3752e726a8d89b411f904774544773371811;hpb=a39066c813c7b6efa34223bcbb93f2c377745094;p=hildon diff --git a/hildon/hildon-time-selector.c b/hildon/hildon-time-selector.c index e64d375..bf6ff13 100644 --- a/hildon/hildon-time-selector.c +++ b/hildon/hildon-time-selector.c @@ -548,7 +548,7 @@ update_format_policy (HildonTimeSelector *selector, break; } - if (prev_ampm_format != selector->priv->ampm_format) { + if (prev_ampm_format != selector->priv->ampm_format && num_columns >= 2) { update_format_dependant_columns (selector, hours, minutes); } } @@ -559,13 +559,6 @@ update_format_dependant_columns (HildonTimeSelector *selector, guint hours, guint minutes) { - gint num_columns = -1; - - num_columns = hildon_touch_selector_get_num_columns (HILDON_TOUCH_SELECTOR (selector)); - if (num_columns < 2) {/* we are on the object construction */ - return; - } - /* To avoid an extra and wrong VALUE_CHANGED signal on the model update */ hildon_touch_selector_block_changed (HILDON_TOUCH_SELECTOR(selector));