diff -bBp /root/temp/cvs/gnome2/gedit/gedit/gedit-mdi.c gedit-mdi.c 
 
*** /root/temp/cvs/gnome2/gedit/gedit/gedit-mdi.c	2004-03-03 16:19:26.000000000 +1100
--- gedit-mdi.c	2004-09-05 23:30:44.000000000 +1000
*************** gedit_mdi_set_active_window_title (Bonob
*** 1284,1289 ****
--- 1284,1302 ----
  
  	/* Truncate the URI so it doesn't get insanely wide. */
  	docname = eel_str_middle_truncate (uri, MAX_URI_IN_TITLE_LENGTH);
+ 
+ 	/* Finding the file name alone*/
+ 
+ 	GnomeVFSResult result;
+ 	GnomeVFSFileInfo *info;
+ 
+ 	info = gnome_vfs_file_info_new();
+ 
+ 	result = gnome_vfs_get_file_info(uri,info,GNOME_VFS_FILE_INFO_DEFAULT);
+ 
+ 	if (strcmp(g_strndup(docname,8),"Untitled") != 0)
+ 		docname = info->name;
+ 
  	g_free (uri);
  
  	if (gedit_document_get_modified (doc))
 
