[gnome-calendar/gnome-3-20] edit-dialog: initially assume 24h format



commit 3340f587d9da1ffc780e56b45097aa9773447db6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Aug 31 17:21:12 2016 -0300

    edit-dialog: initially assume 24h format
    
    The current code assumes the code is 12h format
    when the UI is initially assumed to be 24h, causing
    the AM/PM selector to be hidden when it should be
    visible.
    
    Fix that by assuming 24h initially.

 src/gcal-edit-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 41cc0e5..d7d2a3a 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -370,6 +370,7 @@ static void
 gcal_edit_dialog_init (GcalEditDialog *self)
 {
   self->writable = TRUE;
+  self->format_24h = TRUE;
 
   gtk_widget_init_template (GTK_WIDGET (self));
 }


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