From cc28cc0177aee6fc93436443597078e5be374354 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Fri, 13 Jul 2012 19:20:55 +0200 Subject: Make the About screen and CTCP VERSION consistent and remove the license text option --- src/fe-gtk/about.c | 25 ++++++++++--------------- src/fe-gtk/maingui.c | 11 ----------- src/fe-gtk/setup.c | 2 -- 3 files changed, 10 insertions(+), 28 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/about.c b/src/fe-gtk/about.c index a150eb60..228a7f28 100644 --- a/src/fe-gtk/about.c +++ b/src/fe-gtk/about.c @@ -115,37 +115,32 @@ menu_about (GtkWidget * wid, gpointer sess) g_get_charset (&locale); (snprintf) (buf, sizeof (buf), ""DISPLAY_NAME" "PACKAGE_VERSION"\n" -#ifdef WIN32 - "%s%s%s" - "\nXChat Revision: r"XCHAT_REVISION"\n\n" + "\n%s\n\n" + "XChat Revision: r"XCHAT_REVISION"\n" "OS: %s\n" "Charset: %s " +#ifdef WIN32 "GTK+: %i.%i.%i\n" +#else + "Renderer: %s\n" +#endif "Compiled: "__DATE__"\n" +#ifdef WIN32 "Portable Mode: %s\n" "Build Type: x%d\n\n" +#endif "\302\251 1998-2010 Peter \305\275elezn\303\275 <zed@xchat.org>\n" "\302\251 2009-2011 Berke Viktor <bviktor@hexchat.org>", - (strcmp (prefs.gui_license, "") ? "" : ""), - (strcmp (prefs.gui_license, "") ? prefs.gui_license : ""), - (strcmp (prefs.gui_license, "") ? "\n" : ""), + _("A multiplatform IRC Client"), get_cpu_str (), locale, +#ifdef WIN32 gtk_major_version, gtk_minor_version, gtk_micro_version, (portable_mode () ? "Yes" : "No"), get_cpu_arch () #else - "\n%s\n\n" - "%s\n" - "Charset: %s " - "Renderer: %s\n" - "Compiled: "__DATE__"\n\n" - "\302\251 1998-2010 Peter \305\275elezn\303\275 <zed@xchat.org>", - _("A multiplatform IRC Client"), - get_cpu_str (), - locale, #ifdef USE_XFT "Xft" #else diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 1ff59354..62a35746 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -479,21 +479,10 @@ fe_set_title (session *sess) default: def: 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); } diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index ab17626a..ffe9f4f0 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -416,7 +416,6 @@ static const setting advanced_settings[] = {ST_TOGGLE, N_("Display MODEs in raw form"), P_OFFINTNL(raw_modes), 0, 0, 0}, {ST_TOGGLE, N_("Whois on notify"), P_OFFINTNL(whois_on_notifyonline), N_("Sends a /WHOIS when a user comes online in your notify list"), 0, 0}, {ST_TOGGLE, N_("Hide join and part messages"), P_OFFINTNL(confmode), N_("Hide channel join/part messages by default"), 0, 0}, - {ST_ENTRY, N_("License Text:"), P_OFFSETNL(gui_license), 0, 0, sizeof prefs.gui_license}, {ST_HEADER, N_("Auto Open DCC Windows"),0,0,0}, {ST_TOGGLE, N_("Send window"), P_OFFINTNL(autoopendccsendwindow), 0, 0, 0}, {ST_TOGGLE, N_("Receive window"), P_OFFINTNL(autoopendccrecvwindow), 0, 0, 0}, @@ -434,7 +433,6 @@ static const setting advanced_settings_oneinstance[] = {ST_TOGGLE, N_("Whois on notify"), P_OFFINTNL(whois_on_notifyonline), N_("Sends a /WHOIS when a user comes online in your notify list"), 0, 0}, {ST_TOGGLE, N_("Hide join and part messages"), P_OFFINTNL(confmode), N_("Hide channel join/part messages by default"), 0, 0}, {ST_TOGGLE, N_("Allow only one instance of XChat to run"), P_OFFINTNL(gui_one_instance), 0, 0, 0}, - {ST_ENTRY, N_("License Text:"), P_OFFSETNL(gui_license), 0, 0, sizeof prefs.gui_license}, {ST_HEADER, N_("Auto Open DCC Windows"),0,0,0}, {ST_TOGGLE, N_("Send window"), P_OFFINTNL(autoopendccsendwindow), 0, 0, 0}, {ST_TOGGLE, N_("Receive window"), P_OFFINTNL(autoopendccrecvwindow), 0, 0, 0}, -- cgit 1.4.1