(trunk gtk) #2251: gtk client should use GDK-safe versions of g_idle_add() and g_timeout_add*()

This commit is contained in:
Charles Kerr
2009-06-29 17:22:35 +00:00
parent 6b7a400cee
commit bd5c9cf3a8
7 changed files with 68 additions and 21 deletions

View File

@@ -24,8 +24,6 @@
#include "tracker-list.h"
#include "util.h"
#define UPDATE_INTERVAL_MSEC 200
#define UI_KEY "ui"
#define ANNOUNCE_KEY "recent-announce-url"
@@ -230,7 +228,7 @@ response_cb( GtkDialog* d,
gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( ui->
private_check ) ) );
tag = g_timeout_add ( UPDATE_INTERVAL_MSEC, refresh_cb, ui );
tag = gtr_timeout_add_seconds( 1, refresh_cb, ui );
g_object_set_data_full ( G_OBJECT( d ), "tag", GUINT_TO_POINTER(
tag ), remove_tag );