[Goodies-commits] r5202 - xfburn/trunk/xfburn

David Mohr squisher at xfce.org
Wed Aug 6 00:51:41 CEST 2008


Author: squisher
Date: 2008-08-05 22:51:41 +0000 (Tue, 05 Aug 2008)
New Revision: 5202

Modified:
   xfburn/trunk/xfburn/xfburn-hal-manager.c
Log:
Fixing compilation without thunar-vfs

Modified: xfburn/trunk/xfburn/xfburn-hal-manager.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-hal-manager.c	2008-08-05 21:47:27 UTC (rev 5201)
+++ xfburn/trunk/xfburn/xfburn-hal-manager.c	2008-08-05 22:51:41 UTC (rev 5202)
@@ -33,7 +33,9 @@
 #include <errno.h>
 
 #include <libxfce4util/libxfce4util.h>
-#include <thunar-vfs/thunar-vfs.h>
+#ifdef HAVE_THUNAR_VFS
+# include <thunar-vfs/thunar-vfs.h>
+#endif
 #include <libxfcegui4/libxfcegui4.h>
 
 #include "xfburn-global.h"
@@ -462,7 +464,7 @@
   ThunarVfsVolumeManager *th_volman;
   ThunarVfsVolume *th_vol;
   ThunarVfsPath *th_path;
-  gboolean unmounted;
+  gboolean unmounted = FALSE;
   
   vol = libhal_volume_from_device_file (priv->hal_context, device->addr);
   if (vol == NULL) {
@@ -473,6 +475,7 @@
   if (!libhal_volume_is_mounted (vol))
     return TRUE;
 
+#ifdef HAVE_THUNAR_VFS
   mp = libhal_volume_get_mount_point (vol);
   DBG ("%s is mounted at %s", device->addr, mp);
 
@@ -515,6 +518,7 @@
   }
 
   g_object_unref (th_volman);
+#endif
   return unmounted;
 }
 




More information about the Goodies-commits mailing list