Search
lxdream.org :: lxdream/src/gtkui/gtk_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtk_win.c
changeset 837:4eae2ddccf9c
prev763:b3ce4448f200
next839:51f1c4195790
author nkeynes
date Thu Aug 28 01:39:51 2008 +0000 (13 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/gtkui/gtk_win.c Tue Jul 22 04:40:55 2008 +0000
1.2 +++ b/src/gtkui/gtk_win.c Thu Aug 28 01:39:51 2008 +0000
1.3 @@ -379,3 +379,16 @@
1.4 win->use_grab = use_grab;
1.5 }
1.6 }
1.7 +
1.8 +void main_window_update_title( main_window_t win )
1.9 +{
1.10 + const char *disc = gdrom_get_current_disc_title();
1.11 +
1.12 + if( disc == NULL ) {
1.13 + gtk_window_set_title( GTK_WINDOW(win->window), lxdream_package_name );
1.14 + } else {
1.15 + char buf[256];
1.16 + snprintf( buf, sizeof(buf), "%s - %s", lxdream_package_name, disc );
1.17 + gtk_window_set_title( GTK_WINDOW(win->window), buf );
1.18 + }
1.19 +}
1.20 \ No newline at end of file
.