[maemo-commits] [maemo-commits] r11787 - projects/haf/trunk/hildon-fm/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed May 23 18:47:36 EEST 2007
- Previous message: [maemo-commits] r11786 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r11788 - projects/haf/trunk/hildon-fm/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll
Date: 2007-05-23 18:47:35 +0300 (Wed, 23 May 2007)
New Revision: 11787
Modified:
projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-voldev.c
Log:
* hildon-fm/hildon-file-system-voldev.c
(hildon_file_system_voldev_volumes_changed): Translate Gnome icon
names to Hildon icons, as a 'temporary' measure.
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-05-23 15:35:39 UTC (rev 11786)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-voldev.c 2007-05-23 15:47:35 UTC (rev 11787)
@@ -186,8 +186,21 @@
location->fixed_icon = gnome_vfs_drive_get_icon (voldev->drive);
}
- /* XXX */
- location->fixed_icon = "qgn_list_filesys_mmc_root";
+ /* XXX - GnomeVFS should provide the right icons and display names.
+ */
+ if (strcmp (location->fixed_icon, "gnome-dev-removable-usb") == 0
+ || strcmp (location->fixed_icon, "gnome-dev-harddisk-usb") == 0)
+ location->fixed_icon = "qgn_list_filesys_removable_storage";
+ else if (strcmp (location->fixed_icon, "gnome-dev-removable") == 0
+ || strcmp (location->fixed_icon, "gnome-dev-media-sdmmcb") == 0)
+ {
+ if (g_str_has_prefix (location->basepath, "drive:///dev/mmcblk0")
+ || g_str_has_prefix (location->basepath, "file:///media/mmc0"))
+ location->fixed_icon = "qgn_list_gene_internal_memory_card";
+ else
+ location->fixed_icon = "qgn_list_gene_removable_memory_card";
+ }
+
g_signal_emit_by_name (location, "changed");
}
- Previous message: [maemo-commits] r11786 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r11788 - projects/haf/trunk/hildon-fm/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
