[gnome-control-center] common: time-editor: Fix initial AM/PM label value
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: time-editor: Fix initial AM/PM label value
- Date: Mon, 15 Aug 2022 01:00:20 +0000 (UTC)
commit ff39de678b4ea8f63455240b2c1254eb29a52bdd
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sun Aug 14 21:31:00 2022 +0530
common: time-editor: Fix initial AM/PM label value
We set AM/PM label on format change in init(),
but we shall not have set the time in the editor
in init() which results in wrong label if the time
is PM.
Fix it by updating clock label after time changes
panels/common/cc-time-editor.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/common/cc-time-editor.c b/panels/common/cc-time-editor.c
index a38ca0137..572fc85f0 100644
--- a/panels/common/cc-time-editor.c
+++ b/panels/common/cc-time-editor.c
@@ -108,6 +108,7 @@ time_editor_time_changed_cb (CcTimeEditor *self)
{
g_assert (CC_IS_TIME_EDITOR (self));
+ time_editor_clock_changed_cb (self);
g_signal_emit (self, signals[TIME_CHANGED], 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]