[anjuta] Remove a critical warning when closing the project while the debugger is active



commit e6bde4bfe1b24807e1c1bafa9fb4fc44add1cf94
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed Jan 20 22:37:40 2010 +0100

    Remove a critical warning when closing the project while the debugger is active

 plugins/message-view/plugin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/message-view/plugin.c b/plugins/message-view/plugin.c
index ecb7af2..f557f34 100644
--- a/plugins/message-view/plugin.c
+++ b/plugins/message-view/plugin.c
@@ -259,9 +259,9 @@ deactivate_plugin (AnjutaPlugin *plugin)
 										  G_CALLBACK (on_session_load),
 										  plugin);
 #endif
-	/* Widget is destroyed as soon as it is removed */
+	/* Widget is removed as soon as it is destroyed */
 	if (mplugin->widget_shown)
-		anjuta_shell_remove_widget (plugin->shell, mplugin->msgman, NULL);
+		gtk_widget_destroy (mplugin->msgman);
 	anjuta_ui_unmerge (ui, mplugin->uiid);
 	anjuta_ui_remove_action_group (ui, mplugin->action_group);
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]