GNOME Bugzilla – Bug 512596
Port volume handling code to gio
Last modified: 2008-04-07 16:54:15 UTC
There's code scattered over totem-playlist, totem-uri, and totem itself, which uses GnomeVFSVolumes quite extensively to allow removal of files or stopping playback when ejecting devices.
In update_drives_menu_items, do you think just using the GDrive API would be OK, or should we continue to query for both mounted volumes and drives? There is no equivalent to GDrive in GnomeVFS, so I'm presuming it lists all drives properly (although I haven't checked).
I can always try the patch just using GDrive, and work the mounted volume stuff back in later if it's required, but GDrive handles mounted volumes already.
I'm not sure about the semantics in gio/gvfs. We use to show unmounted drives, and mounted drives, and we disabled "mounted" drives with CDDA items. Only one entry per physical drive.
Make sure your gvfs has HAL support builtin though :)
Patch to bug #512602 should fix this.
Leaving this open, as there's a FIXME in update_drive_menu_items in totem-menu.c where we have regressed slightly in not explicitly checking to see if a drive is a CD or DVD.
2008-03-14 Philip Withnall <email@example.com>
* src/totem-menu.c: (totem_action_add_recent),
* src/totem-playlist.c: (totem_playlist_mrl_to_title),
* src/totem-uri.c: (totem_get_mount_for_uri),
* src/totem.c: (totem_action_exit), (totem_action_eject),
(drag_video_cb), (update_media_menu_items), (main): Convert the bulk
of Totem to GIO, leaving the plugins and backends still to convert.
(Closes: #512594, helps: #512602)
2008-04-03 Bastien Nocera <firstname.lastname@example.org>
* src/totem-menu.c (add_drive_to_menu), (update_drive_menu_items):
Better media menu support through GIO