summaryrefslogtreecommitdiff
path: root/plugins/Console
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-20 23:51:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-20 23:51:53 +0000
commit57abc51aad272a656282a52a460a47abe24e07d6 (patch)
treec6f3538e63c9c736cfa7129423d1b498273278b6 /plugins/Console
parentb9f120f97699286410fe902f93135235eed0b127 (diff)
- MS_SKIN2_ADDICON replaced with Skin_AddIcon;
- SKINICONDESC_SIZE* constants removed and replaced with sizeof(sid); - added SIDF_PATH_UNICODE for all plugins; - dynamic translation fixed in the icolib options dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@507 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Console')
-rw-r--r--plugins/Console/Console.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Console/Console.c b/plugins/Console/Console.c
index c0e02f994b..2a568d98fa 100644
--- a/plugins/Console/Console.c
+++ b/plugins/Console/Console.c
@@ -1311,25 +1311,25 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
}
if (ServiceExists(MS_TB_ADDBUTTON)) {
- SKINICONDESC sid={0};
TBButton tbb = {0};
- char szModuleFileName[MAX_PATH]={0};
-
- GetModuleFileNameA(hInst,szModuleFileName,MAX_PATH);
+ SKINICONDESC sid={0};
+ TCHAR szModuleFileName[MAX_PATH]={0};
+ GetModuleFileName(hInst, szModuleFileName, SIZEOF(szModuleFileName));
sid.cbSize = sizeof(sid);
- sid.pszSection = Translate("Console");
- sid.pszDefaultFile = szModuleFileName;
+ sid.pszSection = "Console";
+ sid.ptszDefaultFile = szModuleFileName;
+ sid.flags = SIDF_PATH_TCHAR;
- sid.pszDescription = Translate("Show");
+ sid.pszDescription = "Show";
sid.pszName = "Console_Up";
sid.iDefaultIndex = -IDI_BTN_UP;
- CallService(MS_SKIN2_ADDICON,0,(LPARAM)&sid);
+ Skin_AddIcon(&sid);
- sid.pszDescription = Translate("Hide");
+ sid.pszDescription = "Hide";
sid.pszName = "Console_Down";
sid.iDefaultIndex = -IDI_BTN_DN;
- CallService(MS_SKIN2_ADDICON,0,(LPARAM)&sid);
+ Skin_AddIcon(&sid);
tbb.cbSize = sizeof(TBButton);
tbb.pszButtonID = "console_btn";