From 9546d0e5d967adf60bdc0e6506c7b846ebeb4008 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 29 Nov 2016 21:31:02 +0300 Subject: we don't need this code, everything works without it --- src/mir_app/src/button.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/button.cpp b/src/mir_app/src/button.cpp index a406d172c0..907cd73de3 100644 --- a/src/mir_app/src/button.cpp +++ b/src/mir_app/src/button.cpp @@ -422,16 +422,13 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR case BUTTONSETARROW: // turn arrow on/off if (wParam) { - if (!bct->arrow) { + if (!bct->arrow) bct->arrow = Skin_LoadIcon(SKINICON_OTHER_DOWNARROW); - SetHwndPropInt(bct, OBJID_CLIENT, CHILDID_SELF, PROPID_ACC_ROLE, ROLE_SYSTEM_BUTTONDROPDOWN); - } } else { if (bct->arrow) { IcoLib_ReleaseIcon(bct->arrow); bct->arrow = NULL; - SetHwndPropInt(bct, OBJID_CLIENT, CHILDID_SELF, PROPID_ACC_ROLE, ROLE_SYSTEM_PUSHBUTTON); } } InvalidateRect(bct->hwnd, NULL, TRUE); -- cgit v1.2.3