[anjuta/newproject] project-manager: Fix a crash when displaying properties dialog due to Gtk+3



commit d8fa732d6fafa915f31d58fab92a4b98ae001a3c
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed Nov 17 19:41:07 2010 +0100

    project-manager: Fix a crash when displaying properties dialog due to Gtk+3

 plugins/project-manager/dialogs.c     |    6 +++---
 plugins/project-manager/pm_dialogs.ui |    3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/project-manager/dialogs.c b/plugins/project-manager/dialogs.c
index 4c854ba..ed8313b 100644
--- a/plugins/project-manager/dialogs.c
+++ b/plugins/project-manager/dialogs.c
@@ -699,9 +699,9 @@ pm_project_create_properties_dialog (AnjutaPmProject *project, GtkWindow *parent
 {
 	const char *title;
 	PropertiesTable *table;
-	GtkWidget *dialog;
+	GtkWidget *dialog = NULL;
 
-	g_return_val_if_fail (node != NULL, FALSE);
+	g_return_val_if_fail (node != NULL, NULL);
 	
 	switch (anjuta_project_node_get_node_type (node))
 	{
@@ -718,7 +718,7 @@ pm_project_create_properties_dialog (AnjutaPmProject *project, GtkWindow *parent
 		title = _("Source properties");
 		break;
 	default:
-		return FALSE;
+		return NULL;
 	}
 
 	table = create_properties_table (project->project, node);
diff --git a/plugins/project-manager/pm_dialogs.ui b/plugins/project-manager/pm_dialogs.ui
index 0074090..64cb895 100644
--- a/plugins/project-manager/pm_dialogs.ui
+++ b/plugins/project-manager/pm_dialogs.ui
@@ -720,8 +720,9 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkComboBoxEntry" id="module_entry">
+                  <object class="GtkComboBoxText" id="module_entry">
                     <property name="visible">True</property>
+                    <property name="has-entry">True</property>
                   </object>
                   <packing>
                     <property name="position">1</property>



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