totem r5352 - in trunk: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r5352 - in trunk: . src
- Date: Tue, 8 Apr 2008 23:29:07 +0100 (BST)
Author: hadess
Date: Tue Apr 8 23:29:07 2008
New Revision: 5352
URL: http://svn.gnome.org/viewvc/totem?rev=5352&view=rev
Log:
2008-04-08 Bastien Nocera <hadess hadess net>
* src/totem-playlist.c (totem_playlist_mrl_to_title):
Have a nicer label when loading tracks from a DVD (Closes: #526037)
Modified:
trunk/ChangeLog
trunk/src/totem-playlist.c
Modified: trunk/src/totem-playlist.c
==============================================================================
--- trunk/src/totem-playlist.c (original)
+++ trunk/src/totem-playlist.c Tue Apr 8 23:29:07 2008
@@ -267,6 +267,12 @@
GFile *file;
char *filename_for_display, *unescaped;
+ if (g_str_has_prefix (mrl, "dvd://") != FALSE) {
+ /* This is "Title 3", where title is a DVD title
+ * Note: NOT a DVD chapter */
+ return g_strdup_printf (_("Title %d"), (int) g_strtod (mrl + 6, NULL));
+ }
+
file = g_file_new_for_uri (mrl);
unescaped = g_file_get_basename (file);
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]