mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 09:40:20 +00:00
support for own license text
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user