anjuta r4314 - in trunk: . plugins/run-program



Author: sgranjoux
Date: Thu Oct  2 20:08:56 2008
New Revision: 4314
URL: http://svn.gnome.org/viewvc/anjuta?rev=4314&view=rev

Log:
	* plugins/run-program/parameters.c:
	Fix #554337 could not find glade file while executing a program


Modified:
   trunk/ChangeLog
   trunk/plugins/run-program/parameters.c

Modified: trunk/plugins/run-program/parameters.c
==============================================================================
--- trunk/plugins/run-program/parameters.c	(original)
+++ trunk/plugins/run-program/parameters.c	Thu Oct  2 20:08:56 2008
@@ -648,6 +648,10 @@
 	}
 	g_object_unref (model);
 
+	/* Fill working directory list */
+	g_list_foreach (plugin->recent_dirs, on_add_directory_in_chooser, dlg->dirs);	
+	if (plugin->recent_dirs != NULL) gtk_file_chooser_set_uri (dlg->dirs, (const char *)plugin->recent_dirs->data);
+	
 	/* Fill target combo box */
 	model = GTK_TREE_MODEL (gtk_list_store_new (1, GTK_TYPE_STRING));
 	gtk_combo_box_set_model (dlg->target, model);
@@ -700,8 +704,6 @@
 		gtk_entry_set_text (GTK_ENTRY (GTK_BIN (dlg->target)->child), local);
 		g_free (local);
 	}
-	/* Fill working directory list */
-	g_list_foreach (plugin->recent_dirs, on_add_directory_in_chooser, dlg->dirs);	
 	
 	/* Fill environment variable list */
 	model = GTK_TREE_MODEL (gtk_list_store_new (ENV_N_COLUMNS,



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