[totem] Bug 579860 – Downloaded subtitles not available anymore after totem restart.



commit 73403dc6056f94bd5afc20a618b6a39cbfb9039e
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 24 14:17:41 2009 +0100

    Bug 579860 â?? Downloaded subtitles not available anymore after totem restart.
    
    2009-04-24  Bastien Nocera  <hadess hadess net>
    
    	* src/totem-uri.c (totem_add_subtitle):
    	Add the cache subtitles directory to the subtitle file
    	selection dialogue's shortcuts (Closes: #579860)
---
 ChangeLog       |    6 ++++++
 src/totem-uri.c |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1bbb840..e86828b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-24  Bastien Nocera  <hadess hadess net>
+
+	* src/totem-uri.c (totem_add_subtitle):
+	Add the cache subtitles directory to the subtitle file
+	selection dialogue's shortcuts (Closes: #579860)
+
 2009-04-23  Bastien Nocera  <hadess hadess net>
 
 	* src/plugins/opensubtitles/opensubtitles.py:
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 021a4ea..137865c 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -567,6 +567,13 @@ totem_add_subtitle (GtkWindow *parent, const char *path)
 	conf = gconf_client_get_default ();
 	set_folder = TRUE;
 
+	new_path = g_build_filename (g_get_user_cache_dir (),
+				     "totem",
+				     "subtitles",
+				     NULL);
+	gtk_file_chooser_add_shortcut_folder_uri (GTK_FILE_CHOOSER (fs), new_path, NULL);
+	g_free (new_path);
+
 	new_path = gconf_client_get_string (conf, "/apps/totem/open_path", NULL);
 	if (new_path != NULL && *new_path != '\0') {
 		set_folder = gtk_file_chooser_set_current_folder_uri



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]