diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-10 12:11:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-10 12:11:15 +0000 |
commit | 3edfebd9fbf17fd9e77b371ffc14a7ec264bb485 (patch) | |
tree | 770ac65c0d515935389ee3ff5248e679937c396d /plugins/Clist_nicer/src/clisttray.cpp | |
parent | 8e71ba6e620317052a0122135270e6fd4275e74a (diff) |
- fix for Clist Nicer status button
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clisttray.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clisttray.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_nicer/src/clisttray.cpp b/plugins/Clist_nicer/src/clisttray.cpp index 7a20e71ce3..f7d6c297c3 100644 --- a/plugins/Clist_nicer/src/clisttray.cpp +++ b/plugins/Clist_nicer/src/clisttray.cpp @@ -64,7 +64,7 @@ void TrayIconUpdateBase(const char *szChangedProto) if (cfg::getByte("CList", "AlwaysMulti", SETTING_ALWAYSMULTI_DEFAULT)) {
HICON hIcon = 0;
int iIcon = IconFromStatusMode(szChangedProto, averageMode, 0, &hIcon);
- if(hIcon)
+ if (hIcon)
changed = pcli->pfnTrayIconSetBaseInfo(CopyIcon(hIcon), szChangedProto);
else
changed = pcli->pfnTrayIconSetBaseInfo(ImageList_GetIcon(hCListImages, iIcon, ILD_NORMAL), szChangedProto);
@@ -77,7 +77,7 @@ void TrayIconUpdateBase(const char *szChangedProto) HICON hIcon = 0;
int iIcon = IconFromStatusMode(NULL, averageMode, 0, &hIcon);
- if(hIcon)
+ if (hIcon)
changed = pcli->pfnTrayIconSetBaseInfo(CopyIcon(hIcon), NULL);
else
changed = pcli->pfnTrayIconSetBaseInfo(ImageList_GetIcon(hCListImages, iIcon, ILD_NORMAL), NULL);
@@ -86,7 +86,7 @@ void TrayIconUpdateBase(const char *szChangedProto) HICON hIcon = 0;
int iIcon = IconFromStatusMode(NULL, averageMode, 0, &hIcon);
- if(hIcon)
+ if (hIcon)
changed = pcli->pfnTrayIconSetBaseInfo(CopyIcon(hIcon), NULL);
else
changed = pcli->pfnTrayIconSetBaseInfo(ImageList_GetIcon(hCListImages, iIcon, ILD_NORMAL), NULL);
@@ -104,7 +104,7 @@ void TrayIconUpdateBase(const char *szChangedProto) else
szProto = dbv.pszVal;
iIcon = IconFromStatusMode(szProto, szProto ? CallProtoService(szProto, PS_GETSTATUS, 0, 0) : CallService(MS_CLIST_GETSTATUSMODE, 0, 0), 0, &hIcon);
- if(hIcon)
+ if (hIcon)
changed = pcli->pfnTrayIconSetBaseInfo(CopyIcon(hIcon), NULL);
else
changed = pcli->pfnTrayIconSetBaseInfo(ImageList_GetIcon(hCListImages, iIcon, ILD_NORMAL), NULL);
@@ -117,7 +117,7 @@ void TrayIconUpdateBase(const char *szChangedProto) int iIcon = IconFromStatusMode(szChangedProto, CallProtoService(szChangedProto, PS_GETSTATUS, 0, 0), 0, &hIcon);
pcli->cycleTimerId = SetTimer(NULL, 0, cfg::getWord("CList", "CycleTime", SETTING_CYCLETIME_DEFAULT) * 1000, pcli->pfnTrayCycleTimerProc);
- if(hIcon)
+ if (hIcon)
changed = pcli->pfnTrayIconSetBaseInfo(CopyIcon(hIcon), NULL);
else
changed = pcli->pfnTrayIconSetBaseInfo(ImageList_GetIcon(hCListImages, iIcon, ILD_NORMAL), NULL);
@@ -130,7 +130,7 @@ void TrayIconUpdateBase(const char *szChangedProto) HICON hIcon = 0;
int iIcon = IconFromStatusMode(szChangedProto, CallProtoService(szChangedProto, PS_GETSTATUS, 0, 0), 0, &hIcon);
- if(hIcon)
+ if (hIcon)
changed = pcli->pfnTrayIconSetBaseInfo(CopyIcon(hIcon), szChangedProto);
else
changed = pcli->pfnTrayIconSetBaseInfo(ImageList_GetIcon(hCListImages, iIcon, ILD_NORMAL), szChangedProto);
|