summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.cpp b/init.cpp
index 1cfdc3c..8c6c66e 100644
--- a/init.cpp
+++ b/init.cpp
@@ -18,7 +18,7 @@
HINSTANCE hInst;
-static HANDLE hAccountsChanges, hDbContactAdded, hTabsrmmButtonPressed;
+static HANDLE hAccountsChanges, hDbContactAdded, hTabsrmmButtonPressed, hTabsrmmToolBarReload;
PLUGINLINK *pluginLink;
static int OnModulesLoaded(WPARAM wParam,LPARAM lParam);
extern char *date();
@@ -94,7 +94,7 @@ extern int HandleDbNewContact(WPARAM w, LPARAM l);
extern int HandleDbContactDeleted(WPARAM w, LPARAM l);
extern int HandleTabsrmmButtonPressed(WPARAM l, LPARAM w);
extern void FindJuickAccounts();
-extern int CreateButtons();
+extern int CreateButtons(WPARAM, LPARAM);
static int OnModulesLoaded(WPARAM wParam,LPARAM lParam)
{
GetJabberInterface(0,0);
@@ -104,7 +104,7 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam)
hDbContactAdded = HookEvent(ME_DB_CONTACT_DELETED, HandleDbContactDeleted);
hTabsrmmButtonPressed = HookEvent(ME_MSG_BUTTONPRESSED, HandleTabsrmmButtonPressed);
FindJuickAccounts();
- CreateButtons();
+ hTabsrmmToolBarReload = HookEvent(ME_MSG_TOOLBARLOADED, CreateButtons);
return 0;
}