From 8b819d6d1fb442bdfc3b5643a646437842f7e89f Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 7 Jul 2017 06:54:20 +0000 Subject: fixed test plug-in. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3570 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ plugin/test/test.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e4e5d55..900c94d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-07-07 + + * plugin/test/test.c: made app_exit_handler_id static to prevent conflicts + of symbols. + 2017-06-28 * version 3.6.0 diff --git a/plugin/test/test.c b/plugin/test/test.c index 21372068..3276f7ae 100644 --- a/plugin/test/test.c +++ b/plugin/test/test.c @@ -62,7 +62,7 @@ static void inc_finished_cb(GObject *obj, gint new_messages); static void create_window(void); static void create_folderview_sub_widget(void); -gulong app_exit_handler_id = 0; +static gulong test_app_exit_handler_id = 0; void plugin_load(void) { @@ -94,7 +94,7 @@ void plugin_load(void) g_signal_connect_after(syl_app_get(), "init-done", G_CALLBACK(init_done_cb), NULL); - app_exit_handler_id = + test_app_exit_handler_id = g_signal_connect(syl_app_get(), "app-exit", G_CALLBACK(app_exit_cb), NULL); syl_plugin_signal_connect("folderview-menu-popup", @@ -126,7 +126,7 @@ void plugin_load(void) void plugin_unload(void) { g_print("test plug-in unloaded!\n"); - g_signal_handler_disconnect(syl_app_get(), app_exit_handler_id); + g_signal_handler_disconnect(syl_app_get(), test_app_exit_handler_id); } SylPluginInfo *plugin_info(void) -- cgit v1.2.3