diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-09 13:41:44 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-09 13:41:44 +0000 |
commit | 2ccff7e383bff7353da806a29d0d969991cb271f (patch) | |
tree | f5d18dbc95c3140a7f999fe9fb8cbc628a76c7e2 /plugins/ChangeKeyboardLayout | |
parent | 0f65e9f5bc3c6a543ff66ac92f954f812fcae125 (diff) |
ChangeKeyboardLayout and ModernOpt compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@372 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ChangeKeyboardLayout')
-rw-r--r-- | plugins/ChangeKeyboardLayout/main.c | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/plugins/ChangeKeyboardLayout/main.c b/plugins/ChangeKeyboardLayout/main.c index 23bbb9359e..82f5f8f167 100644 --- a/plugins/ChangeKeyboardLayout/main.c +++ b/plugins/ChangeKeyboardLayout/main.c @@ -6,11 +6,7 @@ int hLangpack; PLUGININFOEX pluginInfoEx={
sizeof(PLUGININFOEX),
- #if defined (_UNICODE)
- "Change Keyboard Layout (Unicode)",
- #else
- "Change Keyboard Layout (ANSI)",
- #endif
+ "Change Keyboard Layout",
VERSION,
"Plugin for change keyboard layout of text (multilayout).",
"Yasnovidyashii",
@@ -18,28 +14,10 @@ PLUGININFOEX pluginInfoEx={ "© 2006-2009 Mikhail Yur'ev",
"http://lemnews.com/forum/viewtopic.php?t=1493",
0, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{0xc5ef53a8, 0x80d4, 0x4ce9, { 0xb3, 0x41, 0xec, 0x90, 0xd3, 0xec, 0x91, 0x56 }} //{c5ef53a8-80d4-4ce9-b341-ec90d3ec9156}
};
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
- #if defined (_UNICODE)
- "Change Keyboard Layout (UNICODE)",
- #else
- "Change Keyboard Layout (ANSI)",
- #endif
- VERSION,
- "Plugin for change keyboard layout of text (multilayout)",
- "Yasnovidyashii",
- "Yasnovidyashii@gmail.com",
- "© 2006-2009 Mikhail Yur'ev",
- "http://lemnews.com/forum/viewtopic.php?t=1493",
- 0, //not transient
- 0 //doesn't replace anything built-in
-};
-
-
LPCTSTR ptszKeybEng=_T("`1234567890-=\\qwertyuiop[]asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+|QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?");
HKL hklEng=(HKL)0x04090409;
@@ -62,24 +40,10 @@ __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) return &pluginInfoEx;
}
-__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
-{
- dwMirandaVersion = mirandaVersion;
- return &pluginInfo;
-}
-
-
-#if defined (_UNICODE)
- static const MUUID interfaces[] = {MIID_CKL_UNICODE, MIID_LAST};
-#else
- static const MUUID interfaces[] = {MIID_CKL_ANSI, MIID_LAST};
-#endif
+static const MUUID interfaces[] = {{0xc5ef53a8, 0x80d4, 0x4ce9, { 0xb3, 0x41, 0xec, 0x90, 0xd3, 0xec, 0x91, 0x56 }}, MIID_LAST};
__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
- #if defined (_UNICODE)
- pluginInfoEx.flags = 1; // dynamic UNICODE_AWARE
- #endif
return interfaces;
}
|