summaryrefslogtreecommitdiff
path: root/src/trg-stats-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-20 22:08:15 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-20 22:08:15 +0000
commit740df25896ef41a079160c0cdec5007f0f51a2e6 (patch)
treee252f568e5782164b1b45112b69677c667ae17e7 /src/trg-stats-dialog.c
parentdcca1f0b20e2c154dfb3e5b51918bf7e7c96ed73 (diff)
ugh, forgot to lock the GDK thread in the new update-blocklist/port-test callbacks.
Diffstat (limited to 'src/trg-stats-dialog.c')
-rw-r--r--src/trg-stats-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trg-stats-dialog.c b/src/trg-stats-dialog.c
index 9edb79c..315d3e2 100644
--- a/src/trg-stats-dialog.c
+++ b/src/trg-stats-dialog.c
@@ -202,6 +202,8 @@ static void on_stats_reply(JsonObject * response, int status,
TrgStatsDialogPrivate *priv;
JsonObject *args;
+ gdk_threads_enter();
+
if (!TRG_IS_STATS_DIALOG(data)) {
response_unref(response);
return;
@@ -224,6 +226,8 @@ static void on_stats_reply(JsonObject * response, int status,
trg_error_dialog(GTK_WINDOW(data), status, response);
}
+ gdk_threads_leave();
+
response_unref(response);
}