Commit a10e3ad7 authored by William Jon McCann's avatar William Jon McCann Committed by Alexander Larsson

Don't allow audio preview in burn://. Workaround for #312275.

2005-08-25  William Jon McCann  <mccann@jhu.edu>

	* src/file-manager/fm-icon-view.c (should_preview_sound):
	Don't allow audio preview in burn://.  Workaround for
	#312275.
parent 15d313f9
2005-08-25 William Jon McCann <mccann@jhu.edu>
* src/file-manager/fm-icon-view.c (should_preview_sound):
Don't allow audio preview in burn://. Workaround for
#312275.
2005-08-29 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-factory.c:
......
......@@ -1870,11 +1870,20 @@ preview_audio (FMIconView *icon_view, NautilusFile *file, gboolean start_flag)
static gboolean
should_preview_sound (NautilusFile *file)
{
char *uri;
/* Check gnome config sound preference */
if (!gnome_esd_enabled_auto_value) {
return FALSE;
}
uri = nautilus_file_get_uri (file);
if (uri && eel_istr_has_prefix (uri, "burn:")) {
g_free (uri);
return FALSE;
}
g_free (uri);
/* Check user performance preference */
if (preview_sound_auto_value == NAUTILUS_SPEED_TRADEOFF_NEVER) {
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment