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 1098:4f2750753a6c
prev1066:ddffe9d2b332
author nkeynes
date Sun Jan 31 18:36:06 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Show '<no disc>' in the title bar when there is no cdrom disc attached
file annotate diff log raw
1.1 --- a/src/gtkui/gtk_win.c Sun Jul 05 13:53:48 2009 +1000
1.2 +++ b/src/gtkui/gtk_win.c Sun Jan 31 18:36:06 2010 +1000
1.3 @@ -422,12 +422,12 @@
1.4 void main_window_update_title( main_window_t win )
1.5 {
1.6 const char *disc = gdrom_get_current_disc_title();
1.7 + char buf[256];
1.8
1.9 if( disc == NULL ) {
1.10 - gtk_window_set_title( GTK_WINDOW(win->window), lxdream_package_name );
1.11 + snprintf( buf, sizeof(buf), "%s - <%s>", lxdream_package_name, _("no disc") );
1.12 } else {
1.13 - char buf[256];
1.14 snprintf( buf, sizeof(buf), "%s - %s", lxdream_package_name, disc );
1.15 - gtk_window_set_title( GTK_WINDOW(win->window), buf );
1.16 }
1.17 + gtk_window_set_title( GTK_WINDOW(win->window), buf );
1.18 }
.