Skip to content

Commit

Permalink
Merge 8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Jan 15, 2024
2 parents 1869d71 + 9417cb6 commit a1b1d6d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/ttk_combobox.n
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ the last element of the list, moreover the same simple interpretation as
for the command \fBstring index\fR is supported, with simple integer index
arithmetic and indexing relative to \fBend\fR).
Otherwise, returns the index of the current value in the list of
\fB\-values\fR or \fB\{}\fR if the current value does not appear in the list.
\fB\-values\fR or \fB{}\fR if the current value does not appear in the list.
.TP
\fIpathName \fBget\fR
Returns the current value of the combobox.
Expand Down
2 changes: 1 addition & 1 deletion generic/tkMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static const Tk_OptionSpec tkMenuConfigSpecs[] = {
DEF_MENU_POST_COMMAND,
offsetof(TkMenu, postCommandPtr), TCL_INDEX_NONE, TK_OPTION_NULL_OK, NULL, 0},
{TK_OPTION_RELIEF, "-relief", "relief", "Relief",
DEF_MENU_RELIEF, offsetof(TkMenu, reliefPtr), TCL_INDEX_NONE, 0, NULL, 0},
DEF_MENU_RELIEF, TCL_INDEX_NONE, offsetof(TkMenu, relief), 0, NULL, 0},
{TK_OPTION_COLOR, "-selectcolor", "selectColor", "Background",
DEF_MENU_SELECT_COLOR, offsetof(TkMenu, indicatorFgPtr), TCL_INDEX_NONE, 0,
DEF_MENU_SELECT_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 @@ -284,7 +284,7 @@ typedef struct TkMenu {
* active element (if any). */
Tcl_Obj *activeBorderWidthPtr;
/* Width of border around active element. */
Tcl_Obj *reliefPtr; /* 3-d effect: TK_RELIEF_RAISED, etc. */
int relief; /* 3-d effect: TK_RELIEF_RAISED, etc. */
Tcl_Obj *fontPtr; /* Text font for menu entries. */
Tcl_Obj *fgPtr; /* Foreground color for entries. */
Tcl_Obj *disabledFgPtr; /* Foreground color when disabled. NULL means
Expand Down
4 changes: 1 addition & 3 deletions generic/tkMenuDraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ DisplayMenu(
int width;
int borderWidth;
Tk_3DBorder border;
int relief;


menuPtr->menuFlags &= ~REDRAW_PENDING;
Expand Down Expand Up @@ -732,10 +731,9 @@ DisplayMenu(
width, height, 0, TK_RELIEF_FLAT);
}

Tk_GetReliefFromObj(NULL, menuPtr->reliefPtr, &relief);
Tk_Draw3DRectangle(menuPtr->tkwin, Tk_WindowId(tkwin),
border, 0, 0, Tk_Width(tkwin), Tk_Height(tkwin), borderWidth,
relief);
menuPtr->relief);
}

/*
Expand Down
8 changes: 4 additions & 4 deletions tests/textTag.test
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ test textTag-1.12 {tag configuration options} -body {
} -cleanup {
.t tag configure x -justify [lindex [.t tag configure x -justify] 3]
} -result {left}
test textTag-1.13 {configuration options} -constraint needsTcl87 -body {
test textTag-1.13 {configuration options} -body {
.t tag configure x -justify middle
} -cleanup {
.t tag configure x -justify [lindex [.t tag configure x -justify] 3]
Expand Down Expand Up @@ -190,7 +190,7 @@ test textTag-1.22 {tag configuration options} -body {
} -cleanup {
.t tag configure x -relief [lindex [.t tag configure x -relief] 3]
} -result {raised}
test textTag-1.23 {configuration options} -constraint needsTcl87 -body {
test textTag-1.23 {configuration options} -body {
.t tag configure x -relief stupid
} -cleanup {
.t tag configure x -relief [lindex [.t tag configure x -relief] 3]
Expand Down Expand Up @@ -538,13 +538,13 @@ test textTag-5.8 {TkTextTagCmd - "configure" option} -body {
} -cleanup {
.t tag delete x
} -result {-justify {} {} {} left}
test textTag-5.9 {TkTextTagCmd - "configure" option} -constraint needsTcl87 -body {
test textTag-5.9 {TkTextTagCmd - "configure" option} -body {
.t tag delete x
.t tag configure x -justify bogus
} -cleanup {
.t tag delete x
} -returnCodes error -result {bad justification "bogus": must be left, right, center, or ""}
test textTag-5.10 {TkTextTagCmd - "configure" option} -constraint needsTcl87 -body {
test textTag-5.10 {TkTextTagCmd - "configure" option} -body {
.t tag delete x
.t tag configure x -justify fill
} -cleanup {
Expand Down

0 comments on commit a1b1d6d

Please sign in to comment.