gedit r6789 - in trunk: . plugins/filebrowser



Author: jessevdk
Date: Thu Jan  1 21:30:10 2009
New Revision: 6789
URL: http://svn.gnome.org/viewvc/gedit?rev=6789&view=rev

Log:
	* plugins/filebrowser/gedit-file-browser-store.c: fixed wrong
	calculation of node path


Modified:
   trunk/ChangeLog
   trunk/plugins/filebrowser/gedit-file-browser-store.c

Modified: trunk/plugins/filebrowser/gedit-file-browser-store.c
==============================================================================
--- trunk/plugins/filebrowser/gedit-file-browser-store.c	(original)
+++ trunk/plugins/filebrowser/gedit-file-browser-store.c	Thu Jan  1 21:30:10 2009
@@ -609,7 +609,7 @@
 
 			check = (FileBrowserNode *) (item->data);
 
-			if (model_node_visibility (model, check)) {
+			if (model_node_visibility (model, check) && (check == node || check->inserted)) {
 				if (check == node) {
 					gtk_tree_path_prepend_index (path,
 								     num);
@@ -1401,7 +1401,7 @@
 		
 		return;
 	}
-
+	
 	if (path == NULL)
 		path_child =
 		    gedit_file_browser_store_get_path_real (model, node);
@@ -1706,7 +1706,7 @@
 				path =
 				    gedit_file_browser_store_get_path_real
 				    (model, dummy);
-
+				    
 				row_inserted (model, &path, &iter);
 				gtk_tree_path_free (path);
 			}



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