Check-in [d39c4fd1ed]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add tk upstream changes
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d39c4fd1ed5a04e3175546a57bffeed4a906844c
User & Date: chw 2019-09-13 04:05:53
Context
2019-09-13
04:06
add selected tcl upstream changes check-in: 13d81a254d user: chw tags: trunk
04:05
add tk upstream changes check-in: d39c4fd1ed user: chw tags: trunk
2019-09-12
10:08
now build haiku undroidwish with jsmpeg and imgjp2 check-in: e956c9bbda user: chw tags: trunk
Changes

Changes to jni/sdl2tk/library/ttk/spinbox.tcl.

    77     77   }
    78     78   
    79     79   ## MouseWheel --
    80     80   #	Mousewheel callback.  Turn these into <<Increment>> (-1, up)
    81     81   # 	or <<Decrement> (+1, down) events.
    82     82   #
    83     83   proc ttk::spinbox::MouseWheel {w dir} {
           84  +    if {[$w instate disabled]} { return }
    84     85       if {$dir < 0} {
    85     86   	event generate $w <<Increment>>
    86     87       } else {
    87     88   	event generate $w <<Decrement>>
    88     89       }
    89     90   }
    90     91   
................................................................................
   128    129   ## Spin --
   129    130   #	Handle <<Increment>> and <<Decrement>> events.
   130    131   #	If -values is specified, cycle through the list.
   131    132   #	Otherwise cycle through numeric range based on
   132    133   #	-from, -to, and -increment.
   133    134   #
   134    135   proc ttk::spinbox::Spin {w dir} {
          136  +    if {[$w instate disabled]} { return }
   135    137       set nvalues [llength [set values [$w cget -values]]]
   136    138       set value [$w get]
   137    139       if {$nvalues} {
   138    140   	set current [lsearch -exact $values $value]
   139    141   	set index [Adjust $w [expr {$current + $dir}] 0 [expr {$nvalues - 1}]]
   140    142   	$w set [lindex $values $index]
   141    143       } else {