diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-08-13 18:05:18 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-08-13 18:05:18 +0000 |
commit | 9f478bb53be99c6ad5cf69c1a61cc14900cf72b8 (patch) | |
tree | 4dc4cce5c3a437d1f502834f70f97cf2fdef74bb /plugins/Rate/src | |
parent | f3700adeb2647b91f3613fe988be6e69e79c2e68 (diff) |
icons registration moved to Load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@10180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Rate/src')
-rw-r--r-- | plugins/Rate/src/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Rate/src/main.cpp b/plugins/Rate/src/main.cpp index 4abd350ee4..806981626d 100644 --- a/plugins/Rate/src/main.cpp +++ b/plugins/Rate/src/main.cpp @@ -99,9 +99,6 @@ static IconItem iconList[] = int onModulesLoaded(WPARAM wParam,LPARAM lParam)
{
- // IcoLib support
- Icon_Register(g_hInst, LPGEN("Contact rate"), iconList, SIZEOF(iconList));
-
// Set initial value for all contacts
for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
setExtraIcon(hContact, -1, FALSE);
@@ -123,11 +120,14 @@ extern "C" int __declspec(dllexport) Load(void) {
mir_getLP(&pluginInfo);
- HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
- HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);
+ HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);
+
+ // IcoLib support
+ Icon_Register(g_hInst, LPGEN("Contact rate"), iconList, SIZEOF(iconList));
- // Extra icon support
- hExtraIcon = ExtraIcon_Register("contact_rate", LPGEN("Contact rate"), "rate_high");
+ // Extra icon support
+ hExtraIcon = ExtraIcon_Register("contact_rate", LPGEN("Contact rate"), "rate_high");
return 0;
}
|