summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-11 22:41:15 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-11 22:41:15 +0200
commit1f1c76a5d8e4456d844bf19400aca68900e0e878 (patch)
tree1f9d7541ece8a29c4941b386102a749ec571f437
parent534cd2802f807e4ca33a8586508619e6a52c3667 (diff)
Initial rebranding in code
-rw-r--r--plugins/xtray/callbacks.cpp2
-rw-r--r--plugins/xtray/xtray.cpp2
-rw-r--r--src/common/ctcp.c4
-rw-r--r--src/common/xchat.c6
-rw-r--r--src/fe-gtk/fe-gtk.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/plugins/xtray/callbacks.cpp b/plugins/xtray/callbacks.cpp
index 1b7f452f..c7de9626 100644
--- a/plugins/xtray/callbacks.cpp
+++ b/plugins/xtray/callbacks.cpp
@@ -344,7 +344,7 @@ LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wparam, LPARAM lparam)
 			if(msg == RegisterWindowMessage(_T("TaskbarCreated")))

 			{

 				char szVersion[64];

-				_snprintf(szVersion, 64, "XChat-WDK [%s]", xchat_get_info(ph, "version"));

+				_snprintf(szVersion, 64, "HexChat [%s]", xchat_get_info(ph, "version"));

 				AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);

 			}

 		}

diff --git a/plugins/xtray/xtray.cpp b/plugins/xtray/xtray.cpp
index ec5e34f8..b49c7ed7 100644
--- a/plugins/xtray/xtray.cpp
+++ b/plugins/xtray/xtray.cpp
@@ -116,7 +116,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
 	/************************* Add our icon to the tray ************************************************************************/

 	/***************************************************************************************************************************/

 	char szVersion[64];

-	_snprintf(szVersion, 64, "XChat-WDK %s", xchat_get_info(ph, "wdk_version"));

+	_snprintf(szVersion, 64, "HexChat %s", xchat_get_info(ph, "wdk_version"));

 	AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);

 

 	/***************************************************************************************************************************/

diff --git a/src/common/ctcp.c b/src/common/ctcp.c
index 36952db7..0bf2f465 100644
--- a/src/common/ctcp.c
+++ b/src/common/ctcp.c
@@ -138,10 +138,10 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
 	if (!g_ascii_strcasecmp (msg, "VERSION") && !prefs.hidever)
 	{
 #ifdef WIN32
-		snprintf (outbuf, sizeof (outbuf), "VERSION XChat-WDK "PACKAGE_VERSION" [x%d] / %s",
+		snprintf (outbuf, sizeof (outbuf), "VERSION HexChat "PACKAGE_VERSION" [x%d] / %s",
 					 get_cpu_arch (), get_cpu_str ());
 #else
-		snprintf (outbuf, sizeof (outbuf), "VERSION XChat-WDK "PACKAGE_VERSION" %s",
+		snprintf (outbuf, sizeof (outbuf), "VERSION HexChat "PACKAGE_VERSION" %s",
 					 get_cpu_str ());
 #endif
 		serv->p_nctcp (serv, nick, outbuf);
diff --git a/src/common/xchat.c b/src/common/xchat.c
index 845f262b..0849e234 100644
--- a/src/common/xchat.c
+++ b/src/common/xchat.c
@@ -924,13 +924,13 @@ enum_windows_impl (HWND current_window, LPARAM lParam)
 	}
 
 	GetWindowText (current_window, window_name, 10);
-	if (stricmp (window_name, "xchat-wdk") == 0)
+	if (stricmp (window_name, "hexchat") == 0)
 	{
 		/* use a separate if block, this way we don't have to call GetWindowModuleFileName() for each hit */
 		ZeroMemory (&module_path, sizeof (module_path));
 		GetWindowModuleFileName (current_window, module_path, sizeof (module_path));
 
-		if (strstr (module_path, "xchat.exe"))	/* We've found it, stop */
+		if (strstr (module_path, "hexchat.exe"))	/* We've found it, stop */
 		{
 			xchat_restore_window (current_window);
 			return FALSE;
@@ -972,7 +972,7 @@ main (int argc, char *argv[])
 	{
 		DWORD error;
 
-		mutex = CreateMutex (NULL, TRUE, "Local\xchat");
+		mutex = CreateMutex (NULL, TRUE, "Local\hexchat");
 		error = GetLastError ();
 
 		if (error == ERROR_ALREADY_EXISTS || mutex == NULL)
diff --git a/src/fe-gtk/fe-gtk.h b/src/fe-gtk/fe-gtk.h
index 8fffb3cc..f4188a01 100644
--- a/src/fe-gtk/fe-gtk.h
+++ b/src/fe-gtk/fe-gtk.h
@@ -1,6 +1,6 @@
 #include "../../config.h"
 
-#define DISPLAY_NAME "XChat-WDK"
+#define DISPLAY_NAME "HexChat"
 
 #ifndef WIN32
 #include <sys/types.h>