Mercurial > pidgin
diff pidgin/gtkdebug.c @ 26531:b162300ab1e7
A patch from Arunan Balasubramaniam to use timeouts in seconds instead of
milliseconds in Pidgin. This enables grouping of timers for greater power
efficiency.
Fixes #8834.
committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author | foss@abala.me |
---|---|
date | Fri, 10 Apr 2009 06:32:57 +0000 |
parents | e23a74d7c97c |
children | f59dd3e9875d 48ea900ee72a a70f05468fb4 |
line wrap: on
line diff
--- a/pidgin/gtkdebug.c Fri Apr 10 06:18:08 2009 +0000 +++ b/pidgin/gtkdebug.c Fri Apr 10 06:32:57 2009 +0000 @@ -94,7 +94,7 @@ if(debug_win->timer != 0) { const gchar *text; - g_source_remove(debug_win->timer); + purple_timeout_remove(debug_win->timer); text = gtk_entry_get_text(GTK_ENTRY(debug_win->expression)); purple_prefs_set_string(PIDGIN_PREFS_ROOT "/debug/regex", text); @@ -552,7 +552,7 @@ } if(win->timer == 0) - win->timer = purple_timeout_add(5000, (GSourceFunc)regex_timer_cb, win); + win->timer = purple_timeout_add_seconds(5, (GSourceFunc)regex_timer_cb, win); regex_compile(win); }