nautilus r14379 - in trunk: . src



Author: cneumair
Date: Sun Jul 20 18:18:06 2008
New Revision: 14379
URL: http://svn.gnome.org/viewvc/nautilus?rev=14379&view=rev

Log:
2008-07-20  Christian Neumair  <cneumair gnome org>

	* src/nautilus-pathbar.c (nautilus_path_bar_check_parent_path),
	(nautilus_path_bar_update_path):
	Do not treat top-level mounts (i.e. sftp://server/) as fake roots, and
	consequently do not display up slider.


Modified:
   trunk/ChangeLog
   trunk/src/nautilus-pathbar.c

Modified: trunk/src/nautilus-pathbar.c
==============================================================================
--- trunk/src/nautilus-pathbar.c	(original)
+++ trunk/src/nautilus-pathbar.c	Sun Jul 20 18:18:06 2008
@@ -1594,7 +1594,8 @@
 	      			ButtonData *button_data;
 
 	      			button_data = list->data;
-	      			if (BUTTON_IS_FAKE_ROOT (button_data)) {
+	      			if (list->prev != NULL &&
+				    BUTTON_IS_FAKE_ROOT (button_data)) {
 		  			path_bar->fake_root = list;
 		  			break;
 				}
@@ -1646,7 +1647,8 @@
 
                 new_buttons = g_list_prepend (new_buttons, button_data);
 
-		if (BUTTON_IS_FAKE_ROOT (button_data)) {
+		if (parent_file != NULL &&
+		    BUTTON_IS_FAKE_ROOT (button_data)) {
 			fake_root = new_buttons;
 		}
 		



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