[anjuta/newproject: 112/114] am: Remove criticals warnings on property dialog



commit a083766fcd4f58d52f6f18b532c29d1094f6c4d4
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sun Mar 7 22:35:34 2010 +0100

    am: Remove criticals warnings on property dialog

 plugins/am-project/am-dialogs.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/am-project/am-dialogs.c b/plugins/am-project/am-dialogs.c
index 4082c17..9bb3a40 100644
--- a/plugins/am-project/am-dialogs.c
+++ b/plugins/am-project/am-dialogs.c
@@ -94,7 +94,7 @@ add_entry (AmpProject *project, AnjutaProjectNode *node, AnjutaProjectPropertyIt
 	{
 	case ANJUTA_PROJECT_PROPERTY_STRING:
 		entry = gtk_entry_new ();
-		gtk_entry_set_text (GTK_ENTRY (entry), info->value);
+		gtk_entry_set_text (GTK_ENTRY (entry), info->value != NULL ? info->value : "");
 		break;
 	case ANJUTA_PROJECT_PROPERTY_BOOLEAN:
 		entry = gtk_check_button_new ();
@@ -147,7 +147,6 @@ add_entry (AmpProject *project, AnjutaProjectNode *node, AnjutaProjectPropertyIt
 	default:
 		return;
 	}		
-	gtk_misc_set_alignment (GTK_MISC (entry), 0, -1);
 	gtk_widget_show (entry);
 	gtk_table_attach (GTK_TABLE (table), entry, 1, 2, *position, *position+1,
 			  GTK_FILL | GTK_EXPAND, GTK_FILL, 5, 3);



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