diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-07-07 06:54:20 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-07-07 06:54:20 +0000 |
commit | 8b819d6d1fb442bdfc3b5643a646437842f7e89f (patch) | |
tree | ff70b74ae745632e9d129bd9cfb92d0f31ee6882 | |
parent | aef3f73c7d7b23b5fafa98605aec3c429a1c1949 (diff) |
fixed test plug-in.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3570 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | plugin/test/test.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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) |