summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-04-03 21:27:49 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-04-03 21:27:49 +0000
commitba671fc7a6c70a9afa8a76ed6c79467e73dad006 (patch)
tree9a64e31ee9f82d25c053ddbb95e8ec47a8b3f299
parent6566cf16d616e8920c995e631e79601d4c856ceb (diff)
PluginUpdater: Show Languages in an own group
git-svn-id: http://svn.miranda-ng.org/main/trunk@8845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/PluginUpdater/src/DlgListNew.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp
index e9bca0acdb..1f3696c392 100644
--- a/plugins/PluginUpdater/src/DlgListNew.cpp
+++ b/plugins/PluginUpdater/src/DlgListNew.cpp
@@ -233,9 +233,13 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
lvg.pszHeader = TranslateT("Icons");
lvg.iGroupId = 2;
ListView_InsertGroup(hwndList, 0, &lvg);
+
+ lvg.pszHeader = TranslateT("Languages");
+ lvg.iGroupId = 3;
+ ListView_InsertGroup(hwndList, 0, &lvg);
lvg.pszHeader = TranslateT("Other");
- lvg.iGroupId = 3;
+ lvg.iGroupId = 4;
ListView_InsertGroup(hwndList, 0, &lvg);
ListView_EnableGroupView(hwndList, TRUE);
@@ -247,12 +251,12 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
///
OBJLIST<FILEINFO> &todo = *(OBJLIST<FILEINFO> *)lParam;
for (int i = 0; i < todo.getCount(); ++i) {
- int groupId = 3;
LVITEM lvi = {0};
lvi.mask = LVIF_PARAM | LVIF_GROUPID | LVIF_TEXT | LVIF_IMAGE;
+ int groupId = 4;
if (_tcschr(todo[i].tszOldName, L'\\') != NULL)
- groupId = _tcsstr(todo[i].tszOldName, L"Plugins") != NULL ? 1 : 2;
+ groupId = (_tcsstr(todo[i].tszOldName, _T("Plugins")) != NULL) ? 1 : ((_tcsstr(todo[i].tszOldName, _T("Languages")) != NULL) ? 3 : 2);
lvi.iItem = i;
lvi.lParam = (LPARAM)&todo[i];