Use g_timeout_add_seconds
svn path=/trunk/; revision=20921
This commit is contained in:
@ -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]:
|
||||
|
||||
@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user