Search
lxdream.org :: lxdream/src/gtkui/gtkui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtkui.c
changeset 837:4eae2ddccf9c
prev773:146c3210768b
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/gtkui.c Mon Jul 28 04:47:28 2008 +0000
1.2 +++ b/src/gtkui/gtkui.c Thu Aug 28 01:39:51 2008 +0000
1.3 @@ -195,6 +195,11 @@
1.4 return gtk_gui_init_ok;
1.5 }
1.6
1.7 +gboolean gtk_gui_disc_changed( gdrom_disc_t disc, const gchar *disc_name, void *ptr )
1.8 +{
1.9 + main_window_update_title( main_win );
1.10 +}
1.11 +
1.12 gboolean gui_init( gboolean withDebug )
1.13 {
1.14 if( gtk_gui_init_ok ) {
1.15 @@ -231,6 +236,7 @@
1.16 if( withDebug ) {
1.17 gtk_gui_show_debugger();
1.18 }
1.19 + register_gdrom_disc_change_hook( gtk_gui_disc_changed, NULL );
1.20
1.21 return TRUE;
1.22 } else {
.