Search
lxdream.org :: lxdream/src/gdrom/gdrom.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.c
changeset 837:4eae2ddccf9c
prev759:f16975739abc
next1023:264e2fd90be8
author nkeynes
date Thu Aug 28 01:39:51 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Extract the disc title (where available) and display in the title bar
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.c Mon Jul 21 01:01:39 2008 +0000
1.2 +++ b/src/gdrom/gdrom.c Thu Aug 28 01:39:51 2008 +0000
1.3 @@ -125,7 +125,7 @@
1.4 gdrom_disc->close(gdrom_disc);
1.5 }
1.6 gdrom_disc = disc;
1.7 - gdrom_image_dump_info( disc );
1.8 + gdrom_image_read_info( disc );
1.9 gdrom_fire_disc_changed( disc );
1.10 }
1.11 }
1.12 @@ -163,6 +163,15 @@
1.13 }
1.14 }
1.15
1.16 +const gchar *gdrom_get_current_disc_title()
1.17 +{
1.18 + if( gdrom_disc == NULL || gdrom_disc->title[0] == '\0' ) {
1.19 + return NULL;
1.20 + } else {
1.21 + return gdrom_disc->title;
1.22 + }
1.23 +}
1.24 +
1.25 gchar *gdrom_get_relative_filename( const gchar *base_name, const gchar *rel_name )
1.26 {
1.27 gchar *dirname = g_path_get_dirname(base_name);
1.28 @@ -170,3 +179,4 @@
1.29 g_free(dirname);
1.30 return pathname;
1.31 }
1.32 +
.