summaryrefslogtreecommitdiff
path: root/src/gui/panels/bookmarks.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-08-02 23:49:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-08-02 23:49:17 (GMT)
commitc3bfd743a8422e7c844ccf3247b142af548209b8 (patch)
tree7073f153d0f5a0589e0c44166b65649ec047040d /src/gui/panels/bookmarks.c
parent9226736f0702db296433466462cfbad5a11bf46b (diff)
Allowed to emit signals to GTK main thread for GUI updates in a generic way.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@563 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/panels/bookmarks.c')
-rw-r--r--src/gui/panels/bookmarks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c
index b3af70c..5b0649c 100644
--- a/src/gui/panels/bookmarks.c
+++ b/src/gui/panels/bookmarks.c
@@ -41,6 +41,8 @@
#include "../../common/cpp.h"
#include "../../common/extstr.h"
#include "../../core/params.h"
+#include "../../glibext/chrysamarshal.h"
+#include "../../glibext/signal.h"
#include "../../gtkext/easygtk.h"
#include "../../gtkext/support.h"
@@ -503,7 +505,8 @@ static void reload_bookmarks_into_treeview(GBookmarksPanel *panel, GLoadedBinary
g_object_ref(G_OBJECT(binary));
collec = g_loaded_binary_find_collection(binary, DBF_BOOKMARKS);
- g_signal_connect(collec, "content-changed", G_CALLBACK(on_collection_content_changed), panel);
+ g_signal_connect_to_main(collec, "content-changed", G_CALLBACK(on_collection_content_changed), panel,
+ g_cclosure_user_marshal_VOID__ENUM_OBJECT);
}