summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-08 20:51:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-08 20:51:14 +0000
commit696f4ea57845f48d6d979ecd9d66bb22bd9f738d (patch)
treec32ac05d363bff47320c1b204561b966aa1c81fd /plugins/WhenWasIt
parent3b396a2da6b0b8e0f4d2c051aca133772d317820 (diff)
TopToolbar usage fixed everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhenWasIt')
-rw-r--r--plugins/WhenWasIt/hooked_events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/WhenWasIt/hooked_events.cpp b/plugins/WhenWasIt/hooked_events.cpp
index dca0cbf879..e80c3e3258 100644
--- a/plugins/WhenWasIt/hooked_events.cpp
+++ b/plugins/WhenWasIt/hooked_events.cpp
@@ -175,12 +175,12 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
int OnTopToolBarModuleLoaded(WPARAM wParam, LPARAM lParam)
{
TTBButton ttb = {0};
- ttb.cbSize = sizeof(TTBButton);
+ ttb.cbSize = sizeof(ttb);
ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP;
ttb.pszService = MS_WWI_CHECK_BIRTHDAYS;
ttb.hIconUp = ttb.hIconDn = hiCheckMenu;
ttb.name = "Check for birthdays";
- CallService(MS_TTB_ADDBUTTON, (WPARAM) &ttb, 0);
+ TopToolbar_AddButton(&ttb);
return 0;
}