From 2e5c904f370d48a8e780ce64db2633d54ec0f5cd Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 23 May 2015 20:51:11 +0000 Subject: 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 --- plugins/Dropbox/src/dropbox_icons.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/Dropbox/src/dropbox_icons.cpp') 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; -- cgit v1.2.3