[Goodies-commits] r7499 - xfce4-volstatus-icon/trunk/xfce4-volstatus-icon

Brian Tarricone kelnos at xfce.org
Sun Jun 7 17:00:10 CEST 2009


Author: kelnos
Date: 2009-06-07 15:00:10 +0000 (Sun, 07 Jun 2009)
New Revision: 7499

Modified:
   xfce4-volstatus-icon/trunk/xfce4-volstatus-icon/main.c
Log:
use new ghal api for enumerating drives

Modified: xfce4-volstatus-icon/trunk/xfce4-volstatus-icon/main.c
===================================================================
--- xfce4-volstatus-icon/trunk/xfce4-volstatus-icon/main.c	2009-06-07 14:57:17 UTC (rev 7498)
+++ xfce4-volstatus-icon/trunk/xfce4-volstatus-icon/main.c	2009-06-07 15:00:10 UTC (rev 7499)
@@ -234,8 +234,7 @@
     g_signal_connect(G_OBJECT(context), "device-removed",
                      G_CALLBACK(xfce_volstatus_device_removed), icon);
     
-    drives = ghal_context_find_device_by_capability(context, "storage",
-                                                    &error);
+    drives = ghal_drive_get_all(context, &error);
     if(error) {
         xfce_message_dialog(NULL, _("Xfce Volstatus"), GTK_STOCK_DIALOG_ERROR,
                             _("Unable to get device list from HAL"),




More information about the Goodies-commits mailing list