[gnome-calendar/gnome-3-20] edit-dialog: set time format unconditionally
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-20] edit-dialog: set time format unconditionally
- Date: Wed, 14 Sep 2016 15:24:28 +0000 (UTC)
commit 1ace8d3973207478984167afe4a17fbf00380b5f
Author: Ernestas Kulik <ernestas kulik gmail com>
Date: Wed Jul 27 22:12:57 2016 +0300
edit-dialog: set time format unconditionally
If GcalEditDialog.format_24h is initialized to zero, the call to
gcal_edit_dialog_set_time_format() from GcalWindow will not make
period_combo boxes visible on systems, where 12-hour clocks are used.
This commit fixes that by removing the if statement from the function.
https://bugzilla.gnome.org/show_bug.cgi?id=765370
src/gcal-edit-dialog.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index d7d2a3a..313dda4 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -557,13 +557,10 @@ gcal_edit_dialog_set_time_format (GcalEditDialog *dialog,
{
g_return_if_fail (GCAL_IS_EDIT_DIALOG (dialog));
- if (dialog->format_24h != use_24h_format)
- {
- dialog->format_24h = use_24h_format;
+ dialog->format_24h = use_24h_format;
- gcal_time_selector_set_time_format (GCAL_TIME_SELECTOR (dialog->start_time_selector),
dialog->format_24h);
- gcal_time_selector_set_time_format (GCAL_TIME_SELECTOR (dialog->end_time_selector), dialog->format_24h);
- }
+ gcal_time_selector_set_time_format (GCAL_TIME_SELECTOR (dialog->start_time_selector), dialog->format_24h);
+ gcal_time_selector_set_time_format (GCAL_TIME_SELECTOR (dialog->end_time_selector), dialog->format_24h);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]