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 <pwithnall@svn.gnome.org> * configure.in: * src/plugins/publish/totem-publish.c: * src/totem-menu.c: (totem_action_add_recent), (on_play_dvb_activate), (add_drive_to_menu), (update_drive_menu_items), (on_movie_menu_select), (on_g_volume_monitor_event), (totem_setup_play_disc): * src/totem-playlist.c: (totem_playlist_mrl_to_title), (totem_playlist_compare_with_mount), (totem_playlist_clear_with_g_mount): * src/totem-playlist.h: * src/totem-private.h: * src/totem-uri.c: (totem_get_mount_for_uri), (totem_get_mount_for_media), (totem_is_special_mrl), (totem_create_full_path), (totem_action_on_unmount), (totem_setup_file_monitoring), (totem_uri_exists), (totem_uri_get_subtitle_in_subdir), (totem_uri_get_subtitle_uri), (totem_uri_escape_for_display): * src/totem-uri.h: * 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 <hadess@hadess.net> * src/totem-menu.c (add_drive_to_menu), (update_drive_menu_items): Better media menu support through GIO