From 4f399666321a8fb4e0a9b871e76e50be07af253e Mon Sep 17 00:00:00 2001 From: Callum McKenzie Date: Thu, 19 Mar 2009 23:33:42 +0000 Subject: Patch from gQuigs to replace g_timeout_add with g_timeout_add_seconds where appropriate. Bug 57360. svn path=/trunk/; revision=11390 --- stickynotes/ChangeLog | 5 +++++ stickynotes/stickynotes.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'stickynotes') diff --git a/stickynotes/ChangeLog b/stickynotes/ChangeLog index 199ed861e..634325ba6 100644 --- a/stickynotes/ChangeLog +++ b/stickynotes/ChangeLog @@ -1,3 +1,8 @@ +2009-03-20 Callum McKenzie + + * stickynotes.c: Patch from gQuigs to replace g_timeout_add with + g_timeout_add_seconds where appropriate. Bug 57360. + ==================== 2.26.0 ====================== ==================== 2.25.92 ====================== diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 860d0f74e..bd7e9a9cc 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -79,7 +79,7 @@ buffer_changed (GtkTextBuffer *buffer, gpointer data) the timer triggers, we will save the buffer if there have been no subsequent changes. */ ++stickynotes->last_timeout_data; - g_timeout_add (1000 * 10, (GSourceFunc) timeout_happened, + g_timeout_add_seconds (10, (GSourceFunc) timeout_happened, GUINT_TO_POINTER (stickynotes->last_timeout_data)); } @@ -852,7 +852,7 @@ stickynotes_save (void) { /* If a save isn't already schedules, save everything a minute from now. */ if (!save_scheduled) { - g_timeout_add (60*1000, (GSourceFunc) stickynotes_save_now, NULL); + g_timeout_add_seconds (60, (GSourceFunc) stickynotes_save_now, NULL); save_scheduled = TRUE; } } -- cgit v1.2.3