diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-12 11:21:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-12 11:21:41 +0000 |
commit | 9778744e014c310fad29b1d0536ef6985e909470 (patch) | |
tree | 89fe0c18d8f404ed605ffff410b0a30d3442b737 /plugins | |
parent | aceb6d0e476267170a41f6870dd408d67e71e696 (diff) |
various TTB buttons quirks
git-svn-id: http://svn.miranda-ng.org/main/trunk@917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/BossKeyPlus/src/BossKey.cpp | 6 | ||||
-rw-r--r-- | plugins/Sessions/Src/Main.cpp | 16 | ||||
-rw-r--r-- | plugins/UserInfoEx/dlg_anniversarylist.cpp | 4 | ||||
-rw-r--r-- | plugins/UserInfoEx/svc_reminder.cpp | 4 | ||||
-rw-r--r-- | plugins/WhenWasIt/icons.cpp | 2 |
5 files changed, 15 insertions, 17 deletions
diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index b61d3f3624..be4221173b 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -687,9 +687,9 @@ static int ModernToolbarInit(WPARAM, LPARAM) // Modern toolbar support TTBButton button = {0};
button.cbSize = sizeof(button);
button.pszService = MS_BOSSKEY_HIDE;
- button.pszTooltipUp = button.pszTooltipDn = button.name = LPGEN("Hide Miranda IM");
- button.dwFlags = TTBBF_DISABLED|TTBBF_SHOWTOOLTIP;
- button.hIconHandleUp = button.hIconHandleDn = g_hIcon;
+ button.pszTooltipUp = button.name = LPGEN("Hide Miranda IM");
+ button.dwFlags = TTBBF_DISABLED | TTBBF_SHOWTOOLTIP;
+ button.hIconHandleUp = g_hIcon;
TopToolbar_AddButton(&button);
return 0;
}
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index da51bde5fe..53027ee6e3 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -859,23 +859,23 @@ static int CreateButtons(WPARAM wparam,LPARAM lparam) button.dwFlags = TTBBF_SHOWTOOLTIP | TTBBF_VISIBLE | TTBBF_ICONBYHANDLE;
button.pszService = MS_SESSIONS_OPENMANAGER;
- button.pszTooltipUp = button.pszTooltipUp = button.name = LPGEN("Open Sessions Manager");
- button.hIconHandleDn = button.hIconHandleUp = hibSessionsLoad;
+ button.pszTooltipUp = button.name = LPGEN("Open Sessions Manager");
+ button.hIconHandleUp = hibSessionsLoad;
TopToolbar_AddButton(&button);
button.pszService = MS_SESSIONS_SAVEUSERSESSION;
- button.pszTooltipUp = button.pszTooltipUp = button.name = LPGEN("Save Session");
- button.hIconHandleDn = button.hIconHandleUp = hibSessionsSave;
+ button.pszTooltipUp = button.name = LPGEN("Save Session");
+ button.hIconHandleUp = hibSessionsSave;
TopToolbar_AddButton(&button);
button.pszService = MS_SESSIONS_RESTORELASTSESSION;
- button.pszTooltipUp = button.pszTooltipUp = button.name = LPGEN("Restore Last Session");
- button.hIconHandleDn = button.hIconHandleUp = hibSessionsLoadLast;
+ button.pszTooltipUp = button.name = LPGEN("Restore Last Session");
+ button.hIconHandleUp = hibSessionsLoadLast;
TopToolbar_AddButton(&button);
button.pszService = MS_SESSIONS_SHOWFAVORITESMENU;
- button.pszTooltipUp = button.pszTooltipUp = button.name = LPGEN("Show Favorite Sessions Menu");
- button.hIconHandleDn = button.hIconHandleUp = hibChecked;
+ button.pszTooltipUp = button.name = LPGEN("Show Favorite Sessions Menu");
+ button.hIconHandleUp = hibChecked;
TopToolbar_AddButton(&button);
return 0;
}
diff --git a/plugins/UserInfoEx/dlg_anniversarylist.cpp b/plugins/UserInfoEx/dlg_anniversarylist.cpp index 827e4e7b78..539ba3bd6b 100644 --- a/plugins/UserInfoEx/dlg_anniversarylist.cpp +++ b/plugins/UserInfoEx/dlg_anniversarylist.cpp @@ -1094,8 +1094,8 @@ VOID DlgAnniversaryListOnTopToolBarLoaded() ttb.cbSize = sizeof(ttb);
ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ICONBYHANDLE;
ttb.pszService = MS_USERINFO_REMINDER_LIST;
- ttb.hIconHandleDn = ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_ANNIVERSARY);
- ttb.pszTooltipDn = ttb.pszTooltipUp = LPGEN("Anniversary list");
+ ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_ANNIVERSARY);
+ ttb.pszTooltipUp = LPGEN("Anniversary list");
ttb.name = "Anniversary list";
TopToolbar_AddButton(&ttb);
}
diff --git a/plugins/UserInfoEx/svc_reminder.cpp b/plugins/UserInfoEx/svc_reminder.cpp index e9a6658ad2..98f52f9c21 100644 --- a/plugins/UserInfoEx/svc_reminder.cpp +++ b/plugins/UserInfoEx/svc_reminder.cpp @@ -910,8 +910,8 @@ VOID SvcReminderOnTopToolBarLoaded() ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ICONBYHANDLE;
ttb.pszService = MS_USERINFO_REMINDER_CHECK;
ttb.name = "Check anniversaries";
- ttb.pszTooltipUp = ttb.pszTooltipDn = LPGEN("Check anniversaries");
- ttb.hIconHandleDn = ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_BIRTHDAY);
+ ttb.pszTooltipUp = LPGEN("Check anniversaries");
+ ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_BIRTHDAY);
TopToolbar_AddButton(&ttb);
}
diff --git a/plugins/WhenWasIt/icons.cpp b/plugins/WhenWasIt/icons.cpp index 805593ade4..0b24c21442 100644 --- a/plugins/WhenWasIt/icons.cpp +++ b/plugins/WhenWasIt/icons.cpp @@ -68,9 +68,7 @@ int LoadIcons() GetIcons();
if (ServiceExists(MS_EXTRAICON_REGISTER))
- {
hWWIExtraIcons = ExtraIcon_Register("WhenWasIt", Translate("WhenWasIt birthday reminder"), "MenuCheck", OnExtraIconListRebuild, OnExtraImageApply);
- }
return 0;
}
|