summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-12-27 22:45:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-12-27 22:45:05 (GMT)
commit190f66ab3a2c8bdf2f56b2f590afe49461e6cf24 (patch)
tree69c8fe9c11da3a906e16cdaf446aaeb1a574ead1 /src/gui/panels
parent17fed33fbde85312aef489e8c7115e414a1a74e7 (diff)
Updated the error panel summary in the main thread.
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/errors.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c
index 57fedaf..f62e684 100644
--- a/src/gui/panels/errors.c
+++ b/src/gui/panels/errors.c
@@ -37,6 +37,7 @@
#include "../core/global.h"
#include "../../core/global.h"
#include "../../format/format.h"
+#include "../../glibext/signal.h"
#include "../../gtkext/support.h"
@@ -469,7 +470,8 @@ static void update_panel_with_binary_errors(GErrorPanel *panel, GLoadedBinary *b
fcount + pcount,
(pu_fallback_cb)update_error_panel);
- g_signal_connect(update, "work-completed", G_CALLBACK(update_error_panel_summary), panel);
+ g_signal_connect_to_main(update, "work-completed", G_CALLBACK(update_error_panel_summary), panel,
+ g_cclosure_marshal_VOID__VOID);
g_work_queue_schedule_work(get_work_queue(), G_DELAYED_WORK(update), DEFAULT_WORK_GROUP);
@@ -772,7 +774,8 @@ static void on_error_filter_toggled(GtkToggleButton *button, GErrorPanel *panel)
panel->count,
(pu_fallback_cb)filter_error_panel);
- g_signal_connect(update, "work-completed", G_CALLBACK(update_error_panel_summary), panel);
+ g_signal_connect_to_main(update, "work-completed", G_CALLBACK(update_error_panel_summary), panel,
+ g_cclosure_marshal_VOID__VOID);
g_work_queue_schedule_work(get_work_queue(), G_DELAYED_WORK(update), DEFAULT_WORK_GROUP);