[gnome-screensaver] Ensure the initial state of the clock is correct



commit 4dfb06771bb9e8b792dbe42d7571592652c4fc4a
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Mar 17 01:57:32 2011 -0400

    Ensure the initial state of the clock is correct

 src/gs-window-x11.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index 57b01b6..5120476 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -2306,8 +2306,6 @@ create_panel (GSWindow *window)
         gtk_box_pack_start (GTK_BOX (window->priv->panel), alignment, FALSE, FALSE, 0);
         window->priv->clock = gtk_label_new (NULL);
         gtk_misc_set_padding (GTK_MISC (window->priv->clock), 4, 4);
-        update_clock (window);
-        queue_clock_update (window);
         gtk_container_add (GTK_CONTAINER (alignment), window->priv->clock);
 
         right_alignment = gtk_alignment_new (1, 0.5, 1, 1);
@@ -2402,6 +2400,8 @@ gs_window_init (GSWindow *window)
         window->priv->clock_format = g_settings_get_enum (window->priv->clock_settings, "clock-format");
         g_signal_connect (window->priv->clock_settings, "changed::clock-format",
                           G_CALLBACK (update_clock_format), window);
+        update_clock (window);
+        queue_clock_update (window);
 
         force_no_pixmap_background (window->priv->drawing_area);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]