[gvfs] Make gvfs-mount print should_automount for GVolume objects



commit e93df0133f5c6068a0d319cdbc2d9068fa21b02f
Author: David Zeuthen <davidz redhat com>
Date:   Fri Jun 12 12:21:13 2009 -0400

    Make gvfs-mount print should_automount for GVolume objects

 programs/gvfs-mount.c |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/programs/gvfs-mount.c b/programs/gvfs-mount.c
index 70936c9..b72b31d 100644
--- a/programs/gvfs-mount.c
+++ b/programs/gvfs-mount.c
@@ -490,17 +490,18 @@ list_volumes (GList *volumes,
               g_free (uri);
               g_object_unref (activation_root);
             }
-      icon = g_volume_get_icon (volume);
-      if (icon)
-        {
-          if (G_IS_THEMED_ICON (icon))
-            show_themed_icon_names (G_THEMED_ICON (icon), indent + 2);
+          icon = g_volume_get_icon (volume);
+          if (icon)
+            {
+              if (G_IS_THEMED_ICON (icon))
+                show_themed_icon_names (G_THEMED_ICON (icon), indent + 2);
 
-          g_object_unref (icon);
-        }
+              g_object_unref (icon);
+            }
 
 	  g_print ("%*scan_mount=%d\n", indent + 2, "", g_volume_can_mount (volume));
 	  g_print ("%*scan_eject=%d\n", indent + 2, "", g_volume_can_eject (volume));
+	  g_print ("%*sshould_automount=%d\n", indent + 2, "", g_volume_should_automount (volume));
 	  g_free (uuid);
 	}
       



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