[maemo-commits] [maemo-commits] r14257 - in projects/haf/trunk/hildon-fm: . debian hildon-fm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Oct 2 13:25:36 EEST 2007
Author: kihamala
Date: 2007-10-02 13:25:33 +0300 (Tue, 02 Oct 2007)
New Revision: 14257

Modified:
   projects/haf/trunk/hildon-fm/ChangeLog
   projects/haf/trunk/hildon-fm/debian/changelog
   projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-voldev.c
Log:
listen to memory card cover changes


Modified: projects/haf/trunk/hildon-fm/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-fm/ChangeLog	2007-10-02 07:32:34 UTC (rev 14256)
+++ projects/haf/trunk/hildon-fm/ChangeLog	2007-10-02 10:25:33 UTC (rev 14257)
@@ -1,3 +1,9 @@
+2007-10-02  Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>
+
+	* hildon-fm/hildon-file-system-voldev.c (gconf_value_changed): Add 
+	listening to the Gconf keys for memory card covers. Fixes an issue
+	with showing corrupted cards even when the cover is open.
+
 2007-10-01  Marius Vollmer  <marius.vollmer at nokia.com>
 
 	* hildon-fm/hildon-file-system-voldev.c (GCONF_PATH_MMC): New.

Modified: projects/haf/trunk/hildon-fm/debian/changelog
===================================================================
--- projects/haf/trunk/hildon-fm/debian/changelog	2007-10-02 07:32:34 UTC (rev 14256)
+++ projects/haf/trunk/hildon-fm/debian/changelog	2007-10-02 10:25:33 UTC (rev 14257)
@@ -1,6 +1,7 @@
 libhildonfm (1:1.9.42~unreleased) unstable; urgency=low
 
   * Fixes: NB#71426.
+  * Listen to memory card cover Gconf key changes.
   
  -- Marius Vollmer <marius.vollmer at nokia.com>  Mon, 01 Oct 2007 13:46:31 +0300
 

Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-voldev.c
===================================================================
--- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-voldev.c	2007-10-02 07:32:34 UTC (rev 14256)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-voldev.c	2007-10-02 10:25:33 UTC (rev 14257)
@@ -89,6 +89,12 @@
     else if (voldev->vol_type == EXT_CARD &&
              g_ascii_strcasecmp (entry->key, USED_OVER_USB_KEY) == 0)
       change = TRUE;
+    else if (voldev->vol_type == INT_CARD &&
+             g_ascii_strcasecmp (entry->key, OPEN_INTERNAL_MMC_COVER_KEY) == 0)
+      change = TRUE;
+    else if (voldev->vol_type == EXT_CARD &&
+             g_ascii_strcasecmp (entry->key, OPEN_MMC_COVER_KEY) == 0)
+      change = TRUE;
 
     if (change)
       {


More information about the maemo-commits mailing list