diff options
Diffstat (limited to 'plugins/WhenWasIt')
-rw-r--r-- | plugins/WhenWasIt/src/notifiers.cpp | 6 | ||||
-rw-r--r-- | plugins/WhenWasIt/src/notifiers.h | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/plugins/WhenWasIt/src/notifiers.cpp b/plugins/WhenWasIt/src/notifiers.cpp index f05ae5f1eb..6921a19619 100644 --- a/plugins/WhenWasIt/src/notifiers.cpp +++ b/plugins/WhenWasIt/src/notifiers.cpp @@ -87,7 +87,7 @@ int PopupNotifyBirthday(HANDLE hContact, int dtb, int age) POPUPDATAT pd = {0};
FillPopupData(pd, dtb);
pd.lchContact = hContact;
- pd.PluginWindowProc = (WNDPROC) DlgProcPopup;
+ pd.PluginWindowProc = (WNDPROC)DlgProcPopup;
pd.lchIcon = GetDTBIcon(dtb);
_stprintf(pd.lptzContactName, TranslateT("Birthday - %s"), name);
@@ -109,9 +109,9 @@ int PopupNotifyBirthday(HANDLE hContact, int dtb, int age) _stprintf(pd.lptzText, TranslateT("%s\n%s just turned %d."), text, sex, age);
PUAddPopUpT(&pd);
+
Skin_ReleaseIcon(pd.lchIcon);
free(name);
-
return 0;
}
@@ -132,7 +132,7 @@ int PopupNotifyMissedBirthday(HANDLE hContact, int dab, int age) POPUPDATAT pd = {0};
FillPopupData(pd, dab);
pd.lchContact = hContact;
- pd.PluginWindowProc = (WNDPROC) DlgProcPopup;
+ pd.PluginWindowProc = (WNDPROC)DlgProcPopup;
pd.lchIcon = GetDTBIcon(dab);
_stprintf(pd.lptzContactName, TranslateT("Birthday - %s"), name);
diff --git a/plugins/WhenWasIt/src/notifiers.h b/plugins/WhenWasIt/src/notifiers.h index 62f6dd4b4e..344774ce02 100644 --- a/plugins/WhenWasIt/src/notifiers.h +++ b/plugins/WhenWasIt/src/notifiers.h @@ -21,11 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_WWI_NOTIFIERS_H
#define M_WWI_NOTIFIERS_H
-
-#define POPUPDATAT POPUPDATAW
-#define PUAddPopUpT PUAddPopUpW
-
-
#define BIRTHDAY_TODAY_SOUND "WWIBirthdayToday"
#define BIRTHDAY_NEAR_SOUND "WWIBirthdayNear"
|