[Goodies-commits] r2518 - in xfce4-mount-plugin/trunk: . panel-plugin

Fabian Nowak timystery at xfce.org
Tue Feb 27 23:21:36 CET 2007


Author: timystery
Date: 2007-02-27 22:21:36 +0000 (Tue, 27 Feb 2007)
New Revision: 2518

Modified:
   xfce4-mount-plugin/trunk/configure.ac
   xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c
Log:
- successfully finished exclusion of devices



Modified: xfce4-mount-plugin/trunk/configure.ac
===================================================================
--- xfce4-mount-plugin/trunk/configure.ac	2007-02-27 21:51:05 UTC (rev 2517)
+++ xfce4-mount-plugin/trunk/configure.ac	2007-02-27 22:21:36 UTC (rev 2518)
@@ -7,7 +7,7 @@
 dnl
 dnl for Xfce4-panel 4.3 and higher only!
 
-m4_define([mount_version],[0.5.0])
+m4_define([mount_version],[0.5.0alpha])
 
 AC_INIT([xfce4-mount-plugin], [mount_version()],
 	[timystery at arcor.de])

Modified: xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c
===================================================================
--- xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c	2007-02-27 21:51:05 UTC (rev 2517)
+++ xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c	2007-02-27 22:21:36 UTC (rev 2518)
@@ -233,15 +233,17 @@
     mt->pdisks = disks_new (mt->include_NFSs);
 
 	/* remove unwanted file systems from list */
-	array = g_ptr_array_new();
-	DBG("excluded_filesystems=%s\n", mt->excluded_filesystems);
-	res = seperate_list(array, mt->excluded_filesystems);
-	for (i=0; i<array->len; i++) {
-		dev_mp = (char*) g_ptr_array_index(array, i);
-		if ( strstr(dev_mp , "/dev") )
-			removed_device = disks_remove_device(mt->pdisks, dev_mp);
-		else
-			removed_device = disks_remove_mountpoint (mt->pdisks, dev_mp);
+		if (mt->exclude_FSs) {
+		array = g_ptr_array_new();
+		DBG("excluded_filesystems=%s\n", mt->excluded_filesystems);
+		res = seperate_list(array, mt->excluded_filesystems);
+		for (i=0; i<array->len; i++) {
+			dev_mp = (char*) g_ptr_array_index(array, i);
+			if ( strstr(dev_mp , "/dev") )
+				removed_device = disks_remove_device(mt->pdisks, dev_mp);
+			else
+				removed_device = disks_remove_mountpoint (mt->pdisks, dev_mp);
+		}
 	}
 
     /* get dynamic infos on mounts */




More information about the Goodies-commits mailing list