diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-18 17:57:01 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-18 17:57:01 +0000 |
commit | a681a90c2166722fedb52ecbbd4f9c56f97ebcd3 (patch) | |
tree | 1b091b3bded90822dbbfd66141a22bcb046ff5da /src/trg-stats-dialog.c | |
parent | fb9d075b4558f4d81331382fbd74f75ac443e768 (diff) |
fix crash in stats dialog introduced by g_idle_add() changes
Diffstat (limited to 'src/trg-stats-dialog.c')
-rw-r--r-- | src/trg-stats-dialog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/trg-stats-dialog.c b/src/trg-stats-dialog.c index 5688083..f370fc3 100644 --- a/src/trg-stats-dialog.c +++ b/src/trg-stats-dialog.c @@ -210,7 +210,7 @@ static gboolean on_stats_reply(gpointer data) update_time_stat(args, priv->rr_active, "secondsActive"); if (trg_client_is_connected(priv->client)) - g_timeout_add_seconds(STATS_UPDATE_INTERVAL, trg_update_stats_timerfunc, data); + g_timeout_add_seconds(STATS_UPDATE_INTERVAL, trg_update_stats_timerfunc, response->cb_data); } else { trg_error_dialog(GTK_WINDOW(data), response); } @@ -303,7 +303,6 @@ static GObject *trg_stats_dialog_constructor(GType type, gtk_container_set_border_width(GTK_CONTAINER(tv), GUI_PAD); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(obj)->vbox), tv, TRUE, TRUE, 0); - gtk_window_set_default_size(GTK_WINDOW(obj), 400, 220); dispatch_async(priv->client, session_stats(), on_stats_reply, obj); |