Use g_timeout_add_seconds

svn path=/trunk/; revision=20921
This commit is contained in:
Matthias Clasen
2008-07-31 22:19:07 +00:00
parent 47da2900a6
commit 29fc592dad
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-07-31 Matthisa Clasen <mclasen@redhat.com>
* gtk/gtkclipboard.c (gtk_clipboard_store): Use a second-grandularity
timer for the store timeout.
2008-07-31 Matthisa Clasen <mclasen@redhat.com>
* gdk/gdk.[hc]:

View File

@ -2023,7 +2023,7 @@ gtk_clipboard_store (GtkClipboard *clipboard)
clipboard->storing_selection = TRUE;
clipboard->store_loop = g_main_loop_new (NULL, TRUE);
clipboard->store_timeout = g_timeout_add (10000, (GSourceFunc) gtk_clipboard_store_timeout, clipboard);
clipboard->store_timeout = g_timeout_add_seconds (10, (GSourceFunc) gtk_clipboard_store_timeout, clipboard);
if (g_main_loop_is_running (clipboard->store_loop))
{