From cf787ea5b2862f15e74f4819757e6fe1484b60d9 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Tue, 18 Apr 2017 17:48:28 +0530 Subject: [PATCH] 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 --- src/gcal-time-selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-time-selector.c b/src/gcal-time-selector.c index f4f29057..416c60de 100644 --- a/src/gcal-time-selector.c +++ b/src/gcal-time-selector.c @@ -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