[ttssh2-commit] [9947] VT ウィンドウのアイコンを変更する関数名を変更

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 5月 23日 (月) 21:39:58 JST


Revision: 9947
          https://osdn.net/projects/ttssh2/scm/svn/commits/9947
Author:   nmaya
Date:     2022-05-23 21:39:58 +0900 (Mon, 23 May 2022)
Log Message:
-----------
VT ウィンドウのアイコンを変更する関数名を変更

SetVTIcon() -> SetVTIconID()

cf. ttssh2-dev 404

Modified Paths:
--------------
    branches/adjust_icon/teraterm/common/tttypes.h
    branches/adjust_icon/teraterm/teraterm/vtwin.cpp
    branches/adjust_icon/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: branches/adjust_icon/teraterm/common/tttypes.h
===================================================================
--- branches/adjust_icon/teraterm/common/tttypes.h	2022-05-21 13:56:41 UTC (rev 9946)
+++ branches/adjust_icon/teraterm/common/tttypes.h	2022-05-23 12:39:58 UTC (rev 9947)
@@ -650,7 +650,7 @@
 	HINSTANCE PluginVTIconInstance;
 	WORD PluginVTIconID;
 
-	void (*SetVTIcon)(TTTSet *ts, HINSTANCE hInstance, WORD IconID);
+	void (*SetVTIconID)(TTTSet *ts, HINSTANCE hInstance, WORD IconID);
 };
 
   /* New Line modes */

Modified: branches/adjust_icon/teraterm/teraterm/vtwin.cpp
===================================================================
--- branches/adjust_icon/teraterm/teraterm/vtwin.cpp	2022-05-21 13:56:41 UTC (rev 9946)
+++ branches/adjust_icon/teraterm/teraterm/vtwin.cpp	2022-05-23 12:39:58 UTC (rev 9947)
@@ -241,7 +241,7 @@
 	AutoDisconnectedPort = port;
 }
 
-static void SetVTIcon(TTTSet *ts, HINSTANCE hInstance, WORD IconID)
+static void SetVTIconID(TTTSet *ts, HINSTANCE hInstance, WORD IconID)
 {
 	HINSTANCE inst;
 	WORD icon_id;
@@ -269,7 +269,7 @@
 	m_hInst = hInstance;
 
 	CommInit(&cv);
-	ts.SetVTIcon = SetVTIcon;
+	ts.SetVTIconID = SetVTIconID;
 	isFirstInstance = StartTeraTerm(&ts);
 
 	TTXInit(&ts, &cv); /* TTPLUG */

Modified: branches/adjust_icon/ttssh2/ttxssh/ttxssh.c
===================================================================
--- branches/adjust_icon/ttssh2/ttxssh/ttxssh.c	2022-05-21 13:56:41 UTC (rev 9946)
+++ branches/adjust_icon/ttssh2/ttxssh/ttxssh.c	2022-05-23 12:39:58 UTC (rev 9947)
@@ -182,7 +182,7 @@
 	FWD_end(pvar);
 	FWDUI_end(pvar);
 
-	pvar->ts->SetVTIcon(pvar->ts, NULL, 0);
+	pvar->ts->SetVTIconID(pvar->ts, NULL, 0);
 	if (IsWindows2000()) {
 		SetCustomNotifyIconID(NULL, 0, TRUE);
 	}
@@ -662,7 +662,7 @@
 
 void notify_established_secure_connection(PTInstVar pvar)
 {
-	pvar->ts->SetVTIcon(pvar->ts, hInst, pvar->settings.IconID);
+	pvar->ts->SetVTIconID(pvar->ts, hInst, pvar->settings.IconID);
 
 	// \x92ʒm\x97̈\xE6\x82̃A\x83C\x83R\x83\x93
 	// Windows 2000 \x82̃^\x83X\x83N\x83g\x83\x8C\x83C\x83A\x83C\x83R\x83\x93\x82\xCD 4bit \x82̂ݑΉ\x9E\x82Ȃ̂ŁAID \x82\xF0\x95ۑ\xB6\x82\xB5\x82Ă\xA8\x82\xA2\x82ĕ\\x8E\xA6\x82̂Ƃ\xAB\x82ɓǂݍ\x9E\x82\xF1\x82ł\xE0\x82炤


ttssh2-commit メーリングリストの案内
Back to archive index