support for own license text

This commit is contained in:
berkeviktor@aol.com
2011-05-31 00:40:13 +02:00
parent 36eb489794
commit 5e4a60debe
4 changed files with 20 additions and 2 deletions

View File

@@ -476,10 +476,22 @@ fe_set_title (session *sess)
break;
default:
def:
gtk_window_set_title (GTK_WINDOW (sess->gui->window), DISPLAY_NAME);
snprintf (tbuf, sizeof (tbuf), DISPLAY_NAME);
if (strcmp (prefs.gui_license, "")) /* zero means gui_license is empty */
{
strcat (tbuf, " - ");
strcat (tbuf, prefs.gui_license);
}
gtk_window_set_title (GTK_WINDOW (sess->gui->window), tbuf);
return;
}
if (strcmp (prefs.gui_license, "")) /* zero means gui_license is empty */
{
strcat (tbuf, " - ");
strcat (tbuf, prefs.gui_license);
}
gtk_window_set_title (GTK_WINDOW (sess->gui->window), tbuf);
}