summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox_icons.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_icons.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/dropbox_icons.cpp b/plugins/Dropbox/src/dropbox_icons.cpp
index 881c41e7db..094c27bcb7 100644
--- a/plugins/Dropbox/src/dropbox_icons.cpp
+++ b/plugins/Dropbox/src/dropbox_icons.cpp
@@ -2,7 +2,8 @@
static IconItem iconList[] =
{
- { LPGEN("Protocol icon"), "main", IDI_DROPBOX }
+ { LPGEN("Protocol icon"), "main", IDI_DROPBOX },
+ { LPGEN("Upload file(s)"), "upload", IDI_UPLOAD }
};
void InitializeIcons()
@@ -10,10 +11,10 @@ void InitializeIcons()
Icon_Register(g_hInstance, "Protocols/" MODULE, iconList, SIZEOF(iconList), MODULE);
}
-HANDLE GetIconHandle(int iconId)
+HANDLE GetIconHandleByName(const char *name)
{
- for (unsigned i = 0; i < SIZEOF(iconList); i++)
- if (iconList[i].defIconID == iconId)
+ for (size_t i = 0; i < SIZEOF(iconList); i++)
+ if (mir_strcmpi(iconList[i].szName, name) == 0)
return iconList[i].hIcolib;
return NULL;