From e0b1fbf35cc17f73de8049cb72494c95669a9195 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 12 Jul 2012 13:56:54 +0000 Subject: minor toptoolbar fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/dlg_anniversarylist.cpp | 5 ++--- plugins/UserInfoEx/svc_reminder.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/UserInfoEx') diff --git a/plugins/UserInfoEx/dlg_anniversarylist.cpp b/plugins/UserInfoEx/dlg_anniversarylist.cpp index 53bd90f0ef..1b0cd689da 100644 --- a/plugins/UserInfoEx/dlg_anniversarylist.cpp +++ b/plugins/UserInfoEx/dlg_anniversarylist.cpp @@ -1090,13 +1090,12 @@ INT_PTR DlgAnniversaryListShow(WPARAM wParam, LPARAM lParam) VOID DlgAnniversaryListOnTopToolBarLoaded() { - TTBButton ttb = { 0 }; + TTBButton ttb = {0}; ttb.cbSize = sizeof(ttb); ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; ttb.pszService = MS_USERINFO_REMINDER_LIST; ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_ANNIVERSARY); - ttb.pszTooltipUp = LPGEN("Anniversary list"); - ttb.name = "Anniversary list"; + ttb.name = ttb.pszTooltipUp = LPGEN("Anniversary list"); TopToolbar_AddButton(&ttb); } diff --git a/plugins/UserInfoEx/svc_reminder.cpp b/plugins/UserInfoEx/svc_reminder.cpp index f5f42bc20c..f91ba47f33 100644 --- a/plugins/UserInfoEx/svc_reminder.cpp +++ b/plugins/UserInfoEx/svc_reminder.cpp @@ -904,13 +904,12 @@ static INT OnContactSettingChanged(HANDLE hContact, DBCONTACTWRITESETTING* pdbcw VOID SvcReminderOnTopToolBarLoaded() { - TTBButton ttb = { 0 }; + TTBButton ttb = {0}; ttb.cbSize = sizeof(ttb); ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; ttb.pszService = MS_USERINFO_REMINDER_CHECK; - ttb.name = "Check anniversaries"; - ttb.pszTooltipUp = LPGEN("Check anniversaries"); + ttb.name = ttb.pszTooltipUp = LPGEN("Check anniversaries"); ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_BIRTHDAY); TopToolbar_AddButton(&ttb); } -- cgit v1.2.3