Skip to content

Commit

Permalink
Merge 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 1, 2024
2 parents 4374637 + df21e8d commit 9a5c966
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions generic/tkMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ static const Tk_OptionSpec tkMenuConfigSpecs[] = {
offsetof(TkMenu, activeFgPtr), TCL_INDEX_NONE, 0,
DEF_MENU_ACTIVE_FG_MONO, 0},
{TK_OPTION_RELIEF, "-activerelief", "activeRelief", "Relief",
DEF_MENU_ACTIVE_RELIEF, offsetof(TkMenu, activeReliefPtr),
TCL_INDEX_NONE, 0, NULL, 0},
DEF_MENU_ACTIVE_RELIEF, TCL_INDEX_NONE,
offsetof(TkMenu, activeRelief), 0, NULL, 0},
{TK_OPTION_BORDER, "-background", "background", "Background",
DEF_MENU_BG_COLOR, offsetof(TkMenu, borderPtr), TCL_INDEX_NONE, 0,
DEF_MENU_BG_MONO, 0},
Expand Down
2 changes: 1 addition & 1 deletion generic/tkMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ typedef struct TkMenu {
/* We actually have to allocate these because
* multiple menus get changed during one
* ConfigureMenu call. */
Tcl_Obj *activeReliefPtr; /* 3-d effect for active element. */
int activeRelief; /* 3-d effect for active element. */
Tcl_HashTable items; /* Map: id -> entry */
int serial; /* Next item # for autogenerated ids */
} TkMenu;
Expand Down
2 changes: 1 addition & 1 deletion unix/tkUnixMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ DrawMenuEntryBackground(
|| (menuPtr->postedCascade != mePtr))) {
relief = TK_RELIEF_FLAT;
} else {
Tk_GetReliefFromObj(NULL, menuPtr->activeReliefPtr, &relief);
relief = menuPtr->activeRelief;
}
Tk_GetPixelsFromObj(NULL, menuPtr->tkwin,
menuPtr->activeBorderWidthPtr, &activeBorderWidth);
Expand Down
2 changes: 1 addition & 1 deletion win/tkWinMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ DrawMenuEntryBackground(
|| (menuPtr->postedCascade != mePtr))) {
relief = TK_RELIEF_FLAT;
} else {
Tk_GetReliefFromObj(NULL, menuPtr->activeReliefPtr, &relief);
relief = menuPtr->activeRelief);
}
Tk_GetPixelsFromObj(NULL, menuPtr->tkwin,
menuPtr->activeBorderWidthPtr, &activeBorderWidth);
Expand Down

0 comments on commit 9a5c966

Please sign in to comment.