time-selector: set the right lower bound

There was a typo in function name, which was only setting
the upper bound for 24 hour time format. As the default
lower bound is 0, no issue was known so far.

But in cases like the user switched from 12 hour to 24 hour
format there is a chance for some issues to appear as the lower
bound of 12 Hour format is 1, and it won't be reset to 0 when
the user has switched to 24 hour format.

https://bugzilla.gnome.org/show_bug.cgi?id=781448
This commit is contained in:
Mohammed Sadiq
2017-04-18 09:32:37 -03:00
committed by Georges Basile Stavracas Neto
parent 1c9686b937
commit cf787ea5b2
+1 -1
View File
@@ -198,7 +198,7 @@ gcal_time_selector_set_time_format (GcalTimeSelector *selector,
if (format_24h)
{
gtk_adjustment_set_upper (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (selector->hour_spin)), 0.0);
gtk_adjustment_set_lower (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (selector->hour_spin)), 0.0);
gtk_adjustment_set_upper (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (selector->hour_spin)), 23.0);
}
else