Fix the docs for hildon_time_selector_new_step()
[hildon] / hildon / hildon-time-selector.c
index e605d40..e6a855f 100644 (file)
@@ -519,14 +519,15 @@ update_format_policy                            (HildonTimeSelector *selector,
                                                  HildonTimeSelectorFormatPolicy new_policy)
 {
   gboolean prev_ampm_format = FALSE;
-  guint hours;
-  guint minutes;
   gint num_columns = -1;
 
   num_columns = hildon_touch_selector_get_num_columns (HILDON_TOUCH_SELECTOR (selector));
   prev_ampm_format = selector->priv->ampm_format;
 
   if (new_policy != selector->priv->format_policy) {
+    guint hours;
+    guint minutes;
+
     selector->priv->format_policy = new_policy;
 
     /* We get the hour previous all the changes, to avoid problems with the
@@ -547,10 +548,10 @@ update_format_policy                            (HildonTimeSelector *selector,
         check_automatic_ampm_format (selector);
         break;
       }
-  }
 
-  if (prev_ampm_format != selector->priv->ampm_format) {
-    update_format_dependant_columns (selector, hours, minutes);
+    if (prev_ampm_format != selector->priv->ampm_format) {
+      update_format_dependant_columns (selector, hours, minutes);
+    }
   }
 }
 
@@ -622,10 +623,10 @@ hildon_time_selector_new ()
 
 /**
  * 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
  *