[gnome-screensaver] Fix clock to actually update every minute
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Fix clock to actually update every minute
- Date: Mon, 12 Sep 2011 12:21:54 +0000 (UTC)
commit e2b44ece90711752dfe970f64b290d7921119399
Author: Vincent Untz <vuntz gnome org>
Date: Sun Sep 11 15:40:00 2011 +0200
Fix clock to actually update every minute
https://bugzilla.gnome.org/show_bug.cgi?id=658746
src/gs-window-x11.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index a0de35a..6956874 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -2190,6 +2190,14 @@ update_clock (GSWindow *window)
g_free (markup);
}
+static void
+on_clock_changed (GnomeWallClock *clock,
+ GParamSpec *pspec,
+ gpointer user_data)
+{
+ update_clock (GS_WINDOW (user_data));
+}
+
static char *
get_user_display_name (void)
{
@@ -2339,6 +2347,7 @@ gs_window_init (GSWindow *window)
create_info_bar (window);
window->priv->clock_tracker = g_object_new (GNOME_TYPE_WALL_CLOCK, NULL);
+ g_signal_connect (window->priv->clock_tracker, "notify::clock", G_CALLBACK (on_clock_changed), window);
update_clock (window);
force_no_pixmap_background (window->priv->drawing_area);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]