After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 512596 - Port volume handling code to gio
Port volume handling code to gio
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Movie player
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks: 512602
 
 
Reported: 2008-01-28 16:00 UTC by Bastien Nocera
Modified: 2008-04-07 16:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2008-01-28 16:00:03 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.
Comment 1 Philip Withnall 2008-02-12 00:32:44 UTC
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.
Comment 2 Bastien Nocera 2008-02-12 02:00:00 UTC
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 :)
Comment 3 Philip Withnall 2008-02-17 00:58:15 UTC
Patch to bug #512602 should fix this.
Comment 4 Philip Withnall 2008-03-14 23:11:23 UTC
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)
Comment 5 Bastien Nocera 2008-04-07 16:54:15 UTC
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