* hildon/hildon-time-selector.c: (update_format_policy): Do
not call update_format_dependant_columns() if not necessary.
(update_format_dependant_columns): Remove unnecessary check for
the number of columns.
+2009-06-25 Claudio Saavedra <csaavedra@igalia.com>
+
+ * hildon/hildon-time-selector.c: (update_format_policy): Do
+ not call update_format_dependant_columns() if not necessary.
+ (update_format_dependant_columns): Remove unnecessary check for
+ the number of columns.
+
2009-06-24 Claudio Saavedra <csaavedra@igalia.com>
* hildon/hildon-note.c (+hildon_note_constructor),
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);
}
}
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));