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
This commit is contained in:
Ernestas Kulik
2016-07-27 16:36:36 -03:00
committed by Georges Basile Stavracas Neto
parent 0a4f0c0e46
commit dd4142f255
+3 -6
View File
@@ -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