summaryrefslogtreecommitdiff
path: root/plugins/TranslitSwitcher/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 19:01:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 19:01:35 +0300
commitee23690fa6c847a5284f8145e73328cdaab2b617 (patch)
treefc9fa53601eb0babccec11021dc9638c07522f9c /plugins/TranslitSwitcher/src
parenta455124c53674338f581a1970768182223c3a49a (diff)
SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY
Diffstat (limited to 'plugins/TranslitSwitcher/src')
-rw-r--r--plugins/TranslitSwitcher/src/TranslitSwitcher.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp
index eee021c5bd..833907bd98 100644
--- a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp
+++ b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp
@@ -85,27 +85,27 @@ int OnModulesLoaded(WPARAM, LPARAM)
g_plugin.registerIcon("TabSRMM/TranslitSwitcher", iconList);
BBButton bbd = {};
- bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISCHATBUTTON | BBBF_ISRSIDEBUTTON;
+ bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISCHATBUTTON | BBBF_ISRSIDEBUTTON | BBBF_NOREADONLY;
bbd.pszModuleName = "Switch Layout and Send";
bbd.pwszTooltip = TranslateT("Switch Layout and Send");
bbd.hIcon = iconList[0].hIcolib;
bbd.dwButtonID = 1;
bbd.dwDefPos = 30;
- Srmm_AddButton(&bbd, &g_plugin);
+ g_plugin.addButton(&bbd);
bbd.pszModuleName = "Translit and Send";
bbd.pwszTooltip = TranslateT("Translit and Send");
bbd.hIcon = iconList[1].hIcolib;
bbd.dwButtonID = 1;
bbd.dwDefPos = 40;
- Srmm_AddButton(&bbd, &g_plugin);
+ g_plugin.addButton(&bbd);
bbd.pszModuleName = "Invert Case and Send";
bbd.pwszTooltip = TranslateT("Invert Case and Send");
bbd.hIcon = iconList[2].hIcolib;
bbd.dwButtonID = 1;
bbd.dwDefPos = 50;
- Srmm_AddButton(&bbd, &g_plugin);
+ g_plugin.addButton(&bbd);
return 0;
}