diff options
author | Bastien Nocera <hadess@hadess.net> | 2008-04-05 09:45:39 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2008-04-05 09:45:39 +0000 |
commit | a72b944643624b510882aee5afc85d23e5e79e4d (patch) | |
tree | 4170c1508045591c3887a6cc59901a08b98d91aa /src/totem-uri.c | |
parent | 13cc329563940a1e808b0d27791870bcb8cd5163 (diff) | |
download | totem-a72b944643624b510882aee5afc85d23e5e79e4d.tar.gz |
If the subtitle file isn't local, try to get its local FUSE path via GVFS
2008-04-05 Bastien Nocera <hadess@hadess.net>
* src/backend/bacon-video-widget-xine.c
(bacon_video_widget_get_subtitled): If the subtitle
file isn't local, try to get its local FUSE path via
GVFS (Closes: #520910)
* src/totem-uri.c (totem_add_subtitle): Allow loading remote
subtitles for all the backends
svn path=/trunk/; revision=5337
Diffstat (limited to 'src/totem-uri.c')
-rw-r--r-- | src/totem-uri.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/totem-uri.c b/src/totem-uri.c index 1ad776e17..1cb48b136 100644 --- a/src/totem-uri.c +++ b/src/totem-uri.c @@ -490,7 +490,7 @@ totem_add_subtitle (GtkWindow *parent, const char *path) GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); gtk_dialog_set_default_response (GTK_DIALOG (fs), GTK_RESPONSE_ACCEPT); - gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fs), TRUE); + gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fs), FALSE); gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (fs), filter_all); gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (fs), filter_subs); gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (fs), filter_subs); @@ -516,10 +516,7 @@ totem_add_subtitle (GtkWindow *parent, const char *path) totem_add_default_dirs (GTK_FILE_CHOOSER (fs)); if (gtk_dialog_run (GTK_DIALOG (fs)) == GTK_RESPONSE_ACCEPT) { - char *filename; - filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (fs)); - subtitle = g_filename_to_uri (filename, NULL, NULL); - g_free(filename); + subtitle = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (fs)); } gtk_widget_destroy (fs); |