diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-23 20:51:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-23 20:51:11 +0000 |
commit | 2e5c904f370d48a8e780ce64db2633d54ec0f5cd (patch) | |
tree | 9d18c3dd5cb067588c6a8e345f96230e323703c8 /plugins/Dropbox/src/dropbox_icons.cpp | |
parent | 8e146597bbd27b72a42a3a197c1db17153e2e0b3 (diff) |
Dropbox:
- fixed crash on file upload
- added upload icon (thx dracosha)
- resource fix
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@13797 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_icons.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_icons.cpp | 9 |
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;
|