[anjuta] project-wizard: Remove a critical warning
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: Remove a critical warning
- Date: Sun, 27 Jan 2013 21:45:18 +0000 (UTC)
commit 7e24c09e378adc069f10a3ef8e869224c789a7e2
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sun Jan 27 18:41:53 2013 +0100
project-wizard: Remove a critical warning
The critical warning happens in gtk_assistant_set_page_complete called when
the druid widget is destroyed in on_druid_project_update_selected. At that time
the project page has already been removed.
plugins/project-wizard/druid.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/project-wizard/druid.c b/plugins/project-wizard/druid.c
index ebee3ec..565f278 100644
--- a/plugins/project-wizard/druid.c
+++ b/plugins/project-wizard/druid.c
@@ -1316,6 +1316,8 @@ npw_druid_free (NPWDruid* druid)
g_object_unref (G_OBJECT (druid->gen));
if (druid->parser != NULL) npw_page_parser_free (druid->parser);
npw_header_list_free (druid->header_list);
+ /* Destroy project notebook first to avoid a critical warning */
+ gtk_widget_destroy (GTK_WIDGET (druid->project_book));
gtk_widget_destroy (GTK_WIDGET (druid->window));
g_object_unref (druid->error_page);
g_object_unref (druid->progress_page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]