diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-09-11 14:05:06 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-09-11 14:05:06 +0000 |
commit | 6350c87eb3284b0ceafe6bd16fa7d04553c41602 (patch) | |
tree | 224a7171cbd897a110604bb7752332a140e4af79 | |
parent | a4078fcca0e3f8db76b73ef9f6bb6d9108e96fc8 (diff) |
ExtraIcons: Disable gender, account, homepage, phone/sms and e-mail icons by default
git-svn-id: http://svn.miranda-ng.org/main/trunk@17284 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/mir_app/src/DefaultExtraIcons.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mir_app/src/DefaultExtraIcons.cpp b/src/mir_app/src/DefaultExtraIcons.cpp index d7e6ec54cb..81765bddf4 100644 --- a/src/mir_app/src/DefaultExtraIcons.cpp +++ b/src/mir_app/src/DefaultExtraIcons.cpp @@ -105,6 +105,7 @@ struct Info int iSkinIcon;
const char *db[8];
void(*OnClick)(Info *info, const char *text);
+ int flags;
HANDLE hIcolib, hExtraIcon;
};
@@ -125,13 +126,13 @@ static Info infos[] = {
{ "homepage", "Homepage", SKINICON_OTHER_MIRANDAWEB,
{ NULL, "Homepage", "UserInfo", "Homepage" },
- &HomepageOnClick },
+ &HomepageOnClick, EIF_DISABLED_BY_DEFAULT },
{ "sms", "Phone/SMS", SKINICON_OTHER_SMS,
{ NULL, "Cellular", "UserInfo", "Cellular", "UserInfo", "Phone", "UserInfo", "MyPhone0" },
- NULL },
+ NULL, EIF_DISABLED_BY_DEFAULT },
{ "email", "E-mail", SKINICON_OTHER_SENDEMAIL,
{ NULL, "e-mail", "UserInfo", "e-mail", "UserInfo", "Mye-mail0" },
- &EmailOnClick },
+ &EmailOnClick, EIF_DISABLED_BY_DEFAULT },
};
static void SetExtraIcons(MCONTACT hContact)
@@ -303,17 +304,17 @@ void DefaultExtraIcons_Load() {
hExtraChat = ExtraIcon_RegisterIcolib("chat_activity", LPGEN("Chat activity"), "ChatActivity");
hExtraVisibility = ExtraIcon_RegisterIcolib("visibility", "Visibility", Skin_GetIconName(SKINICON_OTHER_VISIBLE_ALL));
- hExtraGender = ExtraIcon_RegisterIcolib("gender", "Gender", "gender_male");
+ hExtraGender = ExtraIcon_RegisterIcolib("gender", "Gender", "gender_male", 0, 0, EIF_DISABLED_BY_DEFAULT);
hExtraProto = ExtraIcon_RegisterCallback("protocol", "Account", Skin_GetIconName(SKINICON_OTHER_ACCMGR),
- &ProtocolRebuildIcons, &ProtocolApplyIcon, &ProtocolOnClick);
+ &ProtocolRebuildIcons, &ProtocolApplyIcon, &ProtocolOnClick, 0, EIF_DISABLED_BY_DEFAULT);
for (int i = 0; i < _countof(infos); i++) {
Info &p = infos[i];
p.hIcolib = Skin_GetIconHandle(p.iSkinIcon);
if (p.OnClick)
- p.hExtraIcon = ExtraIcon_RegisterIcolib(p.name, p.desc, Skin_GetIconName(p.iSkinIcon), DefaultOnClick, (LPARAM)&p);
+ p.hExtraIcon = ExtraIcon_RegisterIcolib(p.name, p.desc, Skin_GetIconName(p.iSkinIcon), DefaultOnClick, (LPARAM)&p, p.flags);
else
- p.hExtraIcon = ExtraIcon_RegisterIcolib(p.name, p.desc, Skin_GetIconName(p.iSkinIcon));
+ p.hExtraIcon = ExtraIcon_RegisterIcolib(p.name, p.desc, Skin_GetIconName(p.iSkinIcon), 0, 0, p.flags);
}
for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) {
|