anjuta r4040 - in trunk: . libanjuta/interfaces plugins/file-loader src



Author: jhs
Date: Wed Jul  2 08:20:41 2008
New Revision: 4040
URL: http://svn.gnome.org/viewvc/anjuta?rev=4040&view=rev

Log:
2008-07-02  Johannes Schmid  <jhs gnome org>

	* libanjuta/interfaces/anjuta-idl-compiler.pl:
	Allow NULL GFiles
	
	* plugins/file-loader/plugin.c (on_session_load):
	Fixed typo
	
	* src/main.c (on_message_received):
	Fixed loading of files from the command line

Modified:
   trunk/ChangeLog
   trunk/libanjuta/interfaces/anjuta-idl-compiler.pl
   trunk/plugins/file-loader/plugin.c
   trunk/src/main.c

Modified: trunk/libanjuta/interfaces/anjuta-idl-compiler.pl
==============================================================================
--- trunk/libanjuta/interfaces/anjuta-idl-compiler.pl	(original)
+++ trunk/libanjuta/interfaces/anjuta-idl-compiler.pl	Wed Jul  2 08:20:41 2008
@@ -135,7 +135,6 @@
 	},
 	"GFile*" => {
 		"gtype" => "G_TYPE_OBJECT",
-		"assert" => "G_IS_FILE(__arg__)",
 		"fail_return" => "NULL"
 	}
 };

Modified: trunk/plugins/file-loader/plugin.c
==============================================================================
--- trunk/plugins/file-loader/plugin.c	(original)
+++ trunk/plugins/file-loader/plugin.c	Wed Jul  2 08:20:41 2008
@@ -1111,7 +1111,7 @@
 					ianjuta_file_loader_load (IANJUTA_FILE_LOADER (plugin),
 											  uri, FALSE, NULL);
 					*/
-					njuta_status_progress_tick (status, NULL, label);
+					anjuta_status_progress_tick (status, NULL, label);
 				}
 				else if (i != 0 &&
 						 (!mime_type ||

Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c	(original)
+++ trunk/src/main.c	Wed Jul  2 08:20:41 2008
@@ -237,7 +237,7 @@
 	{
 		IAnjutaFileLoader* loader =
 			anjuta_shell_get_interface(ANJUTA_SHELL(app), IAnjutaFileLoader, NULL);
-		GFile* gfile = g_file_new_for_uri(file->data);
+		GFile* gfile = g_file_new_for_commandline_arg(file->data);
 		if (gfile)
 		{
 			ianjuta_file_loader_load(loader, gfile, FALSE, NULL);



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