diff options
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r-- | src/gui/editor.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c index 7047f32..ea2fe1f 100644 --- a/src/gui/editor.c +++ b/src/gui/editor.c @@ -1608,7 +1608,7 @@ static void notify_paned_handle_position_change(GObject *obj, GParamSpec *pspec, * Remarques : - * * * ******************************************************************************/ - +#include "../glibext/signal.h" static void notify_editor_project_change(GStudyProject *project, bool new) { @@ -1616,7 +1616,9 @@ static void notify_editor_project_change(GStudyProject *project, bool new) { - g_signal_connect(project, "content-added", G_CALLBACK(on_editor_loaded_content_added), NULL); + g_signal_connect_to_main(project, "content-added", G_CALLBACK(on_editor_loaded_content_added), NULL, + g_cclosure_marshal_VOID__OBJECT); + @@ -1630,8 +1632,8 @@ static void notify_editor_project_change(GStudyProject *project, bool new) g_study_project_hide(project); - - g_signal_handlers_disconnect_by_func(project, G_CALLBACK(on_editor_loaded_content_added), NULL); + // FIXME + //g_signal_handlers_disconnect_by_func(project, G_CALLBACK(on_editor_loaded_content_added), NULL); } |