column = hildon_touch_selector_append_text_column (HILDON_TOUCH_SELECTOR (selector),
selector->priv->hours_model, TRUE);
- g_object_set (column, "text-column", 0, NULL);
-
+ hildon_touch_selector_column_set_text_column (column, 0);
/* we need initialization parameters in order to create minute models*/
selector->priv->minutes_step = selector->priv->minutes_step ? selector->priv->minutes_step : 1;
column = hildon_touch_selector_append_text_column (HILDON_TOUCH_SELECTOR (selector),
selector->priv->minutes_model, TRUE);
- g_object_set (column, "text-column", 0, NULL);
+ hildon_touch_selector_column_set_text_column (column, 0);
if (selector->priv->ampm_format) {
selector->priv->ampm_model = _create_ampm_model (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);
}
}
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));
/**
* hildon_time_selector_new_step:
- *
- * Creates a new #HildonTimeSelector
- * @minutes_step: step between the minutes we are going to show in the
- * selector
+ * @minutes_step: step between the minutes in the selector.
+
+ * Creates a new #HildonTimeSelector, with @minutes_step steps between
+ * the minutes in the minutes column.
*
* Returns: a new #HildonTimeSelector
*