[gnome-calendar] time-selector: set the right lower bound



commit cf787ea5b2862f15e74f4819757e6fe1484b60d9
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Tue Apr 18 17:48:28 2017 +0530

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-time-selector.c b/src/gcal-time-selector.c
index f4f2905..416c60d 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]