[gnome-control-center/gnome-3-34] background: Update clock in both preview modes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-34] background: Update clock in both preview modes
- Date: Mon, 30 Sep 2019 21:01:13 +0000 (UTC)
commit 7b940bc76da8919aa8ca33847ef62bd9e62a79e6
Author: Philip Chimento <philip endlessm com>
Date: Tue Sep 24 19:50:32 2019 +0000
background: Update clock in both preview modes
There is a clock widget both on the desktop preview and the lock screen.
Without this change, the clock on the desktop preview is always blank.
(cherry picked from commit ecd27846f85a532ca4fe83dfaad83e3bfe47ca14)
panels/background/cc-background-preview.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/panels/background/cc-background-preview.c b/panels/background/cc-background-preview.c
index a4fa31233..584ccca6b 100644
--- a/panels/background/cc-background-preview.c
+++ b/panels/background/cc-background-preview.c
@@ -232,10 +232,6 @@ cc_background_preview_set_property (GObject *object,
self->is_lock_screen = g_value_get_boolean (value);
gtk_stack_set_visible_child_name (self->stack,
self->is_lock_screen ? "lock" : "desktop");
- if (self->is_lock_screen)
- start_monitor_time (self);
- else
- stop_monitor_time (self);
break;
case PROP_ITEM:
@@ -351,6 +347,7 @@ cc_background_preview_init (CcBackgroundPreview *self)
update_clock_format (self);
load_custom_css (self);
+ start_monitor_time (self);
}
CcBackgroundItem*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]