[geany/geany-plugins] a7b4a0: Use plugin_signal_connect to avoid crash after unloading

Matthew Brush git-noreply at geany.org
Sun Nov 11 18:33:49 UTC 2012


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <matt at geany.org>
Date:        Sun, 11 Nov 2012 18:33:49 UTC
Commit:      a7b4a0e54cffc79a9a6440fcb80b131e04f7d38b
             https://github.com/geany/geany-plugins/commit/a7b4a0e54cffc79a9a6440fcb80b131e04f7d38b

Log Message:
-----------
Use plugin_signal_connect to avoid crash after unloading


Modified Paths:
--------------
    devhelp/src/dhp-object.c

Modified: devhelp/src/dhp-object.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -400,7 +400,8 @@ static void devhelp_plugin_init_edit_menu(DevhelpPlugin *self)
 		gtk_widget_show(man_item);
 	}
 
-	g_signal_connect(geany->main_widgets->editor_menu, "show", G_CALLBACK(on_editor_menu_popup), self);
+	plugin_signal_connect(geany_plugin, G_OBJECT(geany->main_widgets->editor_menu), "show", TRUE,
+		G_CALLBACK(on_editor_menu_popup), self);
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(p->editor_menu_item), doc_menu);
 	gtk_menu_shell_append(GTK_MENU_SHELL(geany->main_widgets->editor_menu), p->editor_menu_sep);
 	gtk_menu_shell_append(GTK_MENU_SHELL(geany->main_widgets->editor_menu), p->editor_menu_item);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).


More information about the Plugins-Commits mailing list