gnome-system-monitor r2616 - trunk/src



Author: bdejean
Date: Tue Mar 31 22:45:07 2009
New Revision: 2616
URL: http://svn.gnome.org/viewvc/gnome-system-monitor?rev=2616&view=rev

Log:
Filesystems that have become hidden because blocks == 0 need to be
removed too.


Modified:
   trunk/src/disks.cpp

Modified: trunk/src/disks.cpp
==============================================================================
--- trunk/src/disks.cpp	(original)
+++ trunk/src/disks.cpp	Tue Mar 31 22:45:07 2009
@@ -184,8 +184,11 @@
 
 	glibtop_get_fsusage(&usage, entry->mountdir);
 
-	if (not show_all_fs and usage.blocks == 0)
+	if (not show_all_fs and usage.blocks == 0) {
+		if (find_disk_in_model(GTK_TREE_MODEL(list), entry->mountdir, &iter))
+			gtk_list_store_remove(list, &iter);
 		return;
+	}
 
 	fsusage_stats(&usage, &bused, &bfree, &bavail, &btotal, &percentage);
 	pixbuf = get_icon_for_device(entry->mountdir);



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