Skip to content

Commit 2f20d25

Browse files
author
csaba
committed
Fix for bug [5255360864]: Wrong appearance of the ttk::menubutton indicator of the "xpnative" theme.
1 parent a633db2 commit 2f20d25

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

win/ttkWinXPTheme.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,19 +1151,20 @@ static ElementInfo ElementInfoTable[] = {
11511151
{ "NotebookPane.background", &GenericElementSpec, L"TAB",
11521152
TABP_BODY, null_statemap, NOPAD, 0 },
11531153
{ "Toolbutton.border", &GenericElementSpec, L"TOOLBAR",
1154-
TP_BUTTON, toolbutton_statemap, NOPAD,0 },
1154+
TP_BUTTON, toolbutton_statemap, NOPAD, 0 },
11551155
{ "Menubutton.button", &GenericElementSpec, L"TOOLBAR",
1156-
TP_SPLITBUTTON,toolbutton_statemap, NOPAD,0 },
1157-
{ "Menubutton.dropdown", &GenericElementSpec, L"TOOLBAR",
1158-
TP_SPLITBUTTONDROPDOWN,toolbutton_statemap, NOPAD,0 },
1156+
TP_SPLITBUTTON, toolbutton_statemap, NOPAD, 0 },
1157+
{ "Menubutton.dropdown", &GenericSizedElementSpec, L"TOOLBAR",
1158+
TP_SPLITBUTTONDROPDOWN, toolbutton_statemap, NOPAD,
1159+
(SM_CXVSCROLL << 8) | SM_CYVSCROLL },
11591160
{ "Treeview.field", &GenericElementSpec, L"TREEVIEW",
11601161
TVP_TREEITEM, treeview_statemap, PAD(1, 1, 1, 1), IGNORE_THEMESIZE },
11611162
{ "Treeitem.indicator", &TreeIndicatorElementSpec, L"TREEVIEW",
11621163
TVP_GLYPH, tvpglyph_statemap, PAD(1,1,6,0), PAD_MARGINS },
11631164
{ "Treeheading.border", &GenericElementSpec, L"HEADER",
1164-
HP_HEADERITEM, header_statemap, PAD(4,0,4,0),0 },
1165+
HP_HEADERITEM, header_statemap, PAD(4,0,4,0), 0 },
11651166
{ "sizegrip", &GenericElementSpec, L"STATUS",
1166-
SP_GRIPPER, null_statemap, NOPAD,0 },
1167+
SP_GRIPPER, null_statemap, NOPAD, 0 },
11671168
{ "Spinbox.field", &GenericElementSpec, L"EDIT",
11681169
EP_EDITTEXT, edittext_statemap, PAD(1, 1, 1, 1), 0 },
11691170
{ "Spinbox.uparrow", &SpinboxArrowElementSpec, L"SPIN",
@@ -1174,9 +1175,9 @@ static ElementInfo ElementInfoTable[] = {
11741175
PAD_MARGINS | ((SM_CXVSCROLL << 8) | SM_CYVSCROLL) },
11751176
#ifdef BROKEN_TEXT_ELEMENT
11761177
{ "Labelframe.text", &TextElementSpec, L"BUTTON",
1177-
BP_GROUPBOX, groupbox_statemap, NOPAD,0 },
1178+
BP_GROUPBOX, groupbox_statemap, NOPAD, 0 },
11781179
#endif
1179-
{ 0,0,0,0,0,NOPAD,0 }
1180+
{ 0, 0, 0, 0, 0, NOPAD, 0 }
11801181
};
11811182
#undef PAD
11821183

0 commit comments

Comments
 (0)