diff options
author | Callum McKenzie <callum@src.gnome.org> | 2009-03-19 23:33:42 +0000 |
---|---|---|
committer | Callum McKenzie <callum@src.gnome.org> | 2009-03-19 23:33:42 +0000 |
commit | 4f399666321a8fb4e0a9b871e76e50be07af253e (patch) | |
tree | 68ffbe96e67ac1bc72879bd0e6cfdc36123f9478 /stickynotes | |
parent | 2e6a6aa8afde5365579a0a2053948249ed5cab22 (diff) |
Patch from gQuigs to replace g_timeout_add
with g_timeout_add_seconds where appropriate. Bug 57360.
svn path=/trunk/; revision=11390
Diffstat (limited to 'stickynotes')
-rw-r--r-- | stickynotes/ChangeLog | 5 | ||||
-rw-r--r-- | stickynotes/stickynotes.c | 4 |
2 files changed, 7 insertions, 2 deletions
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 <callum@spooky-possum.org> + + * 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; } } |