diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-09-17 16:25:09 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-09-17 16:25:09 +0300 |
commit | 4b42369bedd87f02c959303a817e7974bfd580c6 (patch) | |
tree | 6ab28fb01d5dca0a76094dea38fc8f2ed932d679 /plugins/TopToolBar/src/main.cpp | |
parent | 11627574479496d731b5c8954e13c459d6bba8ba (diff) |
TopToolBar: all icons added to icolib (fixes #303)
Diffstat (limited to 'plugins/TopToolBar/src/main.cpp')
-rw-r--r-- | plugins/TopToolBar/src/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/TopToolBar/src/main.cpp b/plugins/TopToolBar/src/main.cpp index 24e6fbe66d..17c3ad9b97 100644 --- a/plugins/TopToolBar/src/main.cpp +++ b/plugins/TopToolBar/src/main.cpp @@ -25,6 +25,20 @@ extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) return &pluginInfo;
}
+IconItem iconList[] =
+{
+ { LPGEN("Execute"), "run", IDI_RUN },
+ { LPGEN("Hide offline contacts"), "hide_offline", IDI_HIDEOFFLINE },
+ { LPGEN("Show offline contacts"), "show_offline", IDI_SHOWOFFLINE },
+ { LPGEN("Disable groups"), "groups_off", IDI_GROUPSOFF },
+ { LPGEN("Enable groups"), "groups_on", IDI_GROUPSON },
+ { LPGEN("Disable sounds"), "sounds_off", IDI_SOUNDSOFF },
+ { LPGEN("Enable sounds"), "sounds_on", IDI_SOUNDSON },
+ { LPGEN("Disable metacontacts"), "meta_off", IDI_METAON },
+ { LPGEN("Enable metacontacts"), "meta_on", IDI_METAOFF },
+ { LPGEN("Separator"), "separator", IDI_SEPARATOR }
+};
+
/////////////////////////////////////////////////////////////////////////////////////////
extern "C" int __declspec(dllexport) Load(void)
@@ -32,6 +46,8 @@ extern "C" int __declspec(dllexport) Load(void) mir_getLP(&pluginInfo);
pcli = Clist_GetInterface();
+ Icon_Register(hInst, TTB_OPTDIR, iconList, _countof(iconList), TTB_OPTDIR);
+
LoadToolbarModule();
return 0;
}
|