From 4188e27c76f8bd7c82df11b9eeeb77b78553b61a Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Wed, 11 Feb 2009 15:07:56 +0000 Subject: [PATCH] fixing the sample svn path=/trunk/gtk-sharp/; revision=126612 --- sample/gio/Volume.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/gio/Volume.cs b/sample/gio/Volume.cs index 9a3d5bec6..b47424515 100644 --- a/sample/gio/Volume.cs +++ b/sample/gio/Volume.cs @@ -11,7 +11,7 @@ namespace TestGio VolumeMonitor monitor = VolumeMonitor.Default; Console.WriteLine ("Volumes:"); foreach (Volume v in monitor.Volumes) - Console.WriteLine ("\t{0}", v); + Console.WriteLine ("\t{0}", v.Name); Console.WriteLine ("\nMounts:"); foreach (Mount m in monitor.Mounts) { Console.WriteLine ("\tName:{0}, UUID:{1}, root:{2}, CanUnmount: {3}", m.Name, m.Uuid, m.Root, m.CanUnmount); @@ -23,8 +23,8 @@ namespace TestGio Console.WriteLine ("\t\tDrive:{0}", d.Name); } Console.WriteLine ("\nConnectedDrives:"); - foreach (object o in monitor.ConnectedDrives) - Console.WriteLine ("\t{0}", o); + foreach (Drive d in monitor.ConnectedDrives) + Console.WriteLine ("\t{0}, HasVolumes:{1}", d.Name, d.HasVolumes); } } }