[gnome-calendar] edit-dialog: set time format unconditionally
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] edit-dialog: set time format unconditionally
- Date: Wed, 27 Jul 2016 19:36:39 +0000 (UTC)
commit dd4142f255b59aef0d3374f801ddc4dccd4bc89e
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 3e7569f..435c03a 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -974,13 +974,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]