Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | too many things checked in.... not intentional. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | mistake |
Files: | files | file ages | folders |
SHA1: |
c5c2bb89ab8a15dc6ae72aca85f5a293 |
User & Date: | jan.nijtmans 2012-08-09 10:19:23 |
Original Comment: | it's no longer necessary to set _USE_32BIT_TIME_T in Tk |
Context
2012-08-09
| ||
10:19 | too many things checked in.... not intentional. Closed-Leaf check-in: c5c2bb89 user: jan.nijtmans tags: mistake | |
08:22 | formatting, unnecessary if's check-in: ec385b79 user: jan.nijtmans tags: trunk | |
Changes
Changes to generic/tkMain.c.
︙ | ︙ | |||
25 26 27 28 29 30 31 | # undef _UNICODE # else # define UNICODE # define _UNICODE # endif #endif | < < < < < | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # undef _UNICODE # else # define UNICODE # define _UNICODE # endif #endif #include "tkInt.h" #include <ctype.h> #include <stdio.h> #include <string.h> #ifdef NO_STDLIB_H # include "../compat/stdlib.h" #else |
︙ | ︙ |
Changes to library/console.tcl.
︙ | ︙ | |||
495 496 497 498 499 500 501 | [%W compare insert > promptEnd]} { %W delete insert-1c %W see insert } } bind Console <Control-h> [bind Console <BackSpace>] | | < | < | 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 | [%W compare insert > promptEnd]} { %W delete insert-1c %W see insert } } bind Console <Control-h> [bind Console <BackSpace>] bind Console <<LineStart>> { if {[%W compare insert < promptEnd]} { tk::TextSetCursor %W {insert linestart} } else { tk::TextSetCursor %W promptEnd } } bind Console <<LineEnd>> { tk::TextSetCursor %W {insert lineend} } bind Console <Control-d> { if {[%W compare insert < promptEnd]} { break } %W delete insert } bind Console <<Console_KillLine>> { |
︙ | ︙ |
Changes to library/demos/entry3.tcl.
︙ | ︙ | |||
165 166 167 168 169 170 171 | # Click to focus goes to the first editable character... bind $w.l3.e <FocusIn> { if {"%d" ne "NotifyAncestor"} { %W icursor 3 after idle {%W selection clear} } } | | | | 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | # Click to focus goes to the first editable character... bind $w.l3.e <FocusIn> { if {"%d" ne "NotifyAncestor"} { %W icursor 3 after idle {%W selection clear} } } bind $w.l3.e <<PrevChar>> {phoneSkipLeft %W} bind $w.l3.e <<NextChar>> {phoneSkipRight %W} pack $w.l3.e -fill x -expand 1 -padx 1m -pady 1m labelframe $w.l4 -text "Password Entry" entry $w.l4.e -validate key -show "*" -vcmd {expr {[string length %P]<=8}} pack $w.l4.e -fill x -expand 1 -padx 1m -pady 1m lower [frame $w.mid] |
︙ | ︙ |
Changes to library/entry.tcl.
︙ | ︙ | |||
223 224 225 226 227 228 229 | bind Entry <Insert> { catch {tk::EntryInsert %W [::tk::GetSelection %W PRIMARY]} } } # Additional emacs-like bindings: | < < < < < < < < < < | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | bind Entry <Insert> { catch {tk::EntryInsert %W [::tk::GetSelection %W PRIMARY]} } } # Additional emacs-like bindings: bind Entry <Control-b> { if {!$tk_strictMotif} { tk::EntrySetCursor %W [expr {[%W index insert] - 1}] } } bind Entry <Control-d> { if {!$tk_strictMotif} { %W delete insert } } bind Entry <Control-f> { if {!$tk_strictMotif} { tk::EntrySetCursor %W [expr {[%W index insert] + 1}] } } bind Entry <Control-h> { if {!$tk_strictMotif} { |
︙ | ︙ |
Changes to library/iconlist.tcl.
︙ | ︙ | |||
442 443 444 445 446 447 448 | [namespace code {my Double1 %x %y}] bind $canvas <Control-B1-Motion> {;} bind $canvas <Shift-B1-Motion> [namespace code {my ShiftMotion1 %x %y}] bind $canvas <Up> [namespace code {my UpDown -1}] bind $canvas <Down> [namespace code {my UpDown 1}] | | | | 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | [namespace code {my Double1 %x %y}] bind $canvas <Control-B1-Motion> {;} bind $canvas <Shift-B1-Motion> [namespace code {my ShiftMotion1 %x %y}] bind $canvas <Up> [namespace code {my UpDown -1}] bind $canvas <Down> [namespace code {my UpDown 1}] bind $canvas <<PrevChar>> [namespace code {my LeftRight -1}] bind $canvas <<NextChar>> [namespace code {my LeftRight 1}] bind $canvas <Return> [namespace code {my ReturnKey}] bind $canvas <KeyPress> [namespace code {my KeyPress %A}] bind $canvas <Control-KeyPress> ";" bind $canvas <Alt-KeyPress> ";" bind $canvas <FocusIn> [namespace code {my FocusIn}] bind $canvas <FocusOut> [namespace code {my FocusOut}] |
︙ | ︙ |
Changes to library/listbox.tcl.
︙ | ︙ | |||
77 78 79 80 81 82 83 | } bind Listbox <Down> { tk::ListboxUpDown %W 1 } bind Listbox <Shift-Down> { tk::ListboxExtendUpDown %W 1 } | | | | | | | | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | } bind Listbox <Down> { tk::ListboxUpDown %W 1 } bind Listbox <Shift-Down> { tk::ListboxExtendUpDown %W 1 } bind Listbox <<PrevChar>> { %W xview scroll -1 units } bind Listbox <<PrevWord>> { %W xview scroll -1 pages } bind Listbox <<NextChar>> { %W xview scroll 1 units } bind Listbox <<NextWord>> { %W xview scroll 1 pages } bind Listbox <Prior> { %W yview scroll -1 pages %W activate @0,0 } bind Listbox <Next> { %W yview scroll 1 pages %W activate @0,0 } bind Listbox <Control-Prior> { %W xview scroll -1 pages } bind Listbox <Control-Next> { %W xview scroll 1 pages } bind Listbox <<LineStart>> { %W xview moveto 0 } bind Listbox <<LineEnd>> { %W xview moveto 1 } bind Listbox <Control-Home> { %W activate 0 %W see 0 %W selection clear 0 end %W selection set 0 |
︙ | ︙ |
Changes to library/menu.tcl.
︙ | ︙ | |||
145 146 147 148 149 150 151 | } bind Menu <Return> { tk::MenuInvoke %W 0 } bind Menu <Escape> { tk::MenuEscape %W } | | | | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | } bind Menu <Return> { tk::MenuInvoke %W 0 } bind Menu <Escape> { tk::MenuEscape %W } bind Menu <<PrevChar>> { tk::MenuLeftArrow %W } bind Menu <<NextChar>> { tk::MenuRightArrow %W } bind Menu <Up> { tk::MenuUpArrow %W } bind Menu <Down> { tk::MenuDownArrow %W |
︙ | ︙ |
Changes to library/scale.tcl.
︙ | ︙ | |||
73 74 75 76 77 78 79 | } bind Scale <Up> { tk::ScaleIncrement %W up little noRepeat } bind Scale <Down> { tk::ScaleIncrement %W down little noRepeat } | | | | | | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | } bind Scale <Up> { tk::ScaleIncrement %W up little noRepeat } bind Scale <Down> { tk::ScaleIncrement %W down little noRepeat } bind Scale <<PrevChar>> { tk::ScaleIncrement %W up little noRepeat } bind Scale <<NextChar>> { tk::ScaleIncrement %W down little noRepeat } bind Scale <Control-Up> { tk::ScaleIncrement %W up big noRepeat } bind Scale <Control-Down> { tk::ScaleIncrement %W down big noRepeat } bind Scale <<PrevWord>> { tk::ScaleIncrement %W up big noRepeat } bind Scale <<NextWord>> { tk::ScaleIncrement %W down big noRepeat } bind Scale <<LineStart>> { %W set [%W cget -from] } bind Scale <<LineEnd>> { %W set [%W cget -to] } # ::tk::ScaleActivate -- # This procedure is invoked to check a given x-y position in the # scale and activate the slider if the x-y position falls within # the slider. |
︙ | ︙ |
Changes to library/scrlbar.tcl.
︙ | ︙ | |||
99 100 101 102 103 104 105 | } bind Scrollbar <Control-Up> { tk::ScrollByPages %W v -1 } bind Scrollbar <Control-Down> { tk::ScrollByPages %W v 1 } | | | | | | | | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | } bind Scrollbar <Control-Up> { tk::ScrollByPages %W v -1 } bind Scrollbar <Control-Down> { tk::ScrollByPages %W v 1 } bind Scrollbar <<PrevChar>> { tk::ScrollByUnits %W h -1 } bind Scrollbar <<NextChar>> { tk::ScrollByUnits %W h 1 } bind Scrollbar <<PrevWord>> { tk::ScrollByPages %W h -1 } bind Scrollbar <<NextWord>> { tk::ScrollByPages %W h 1 } bind Scrollbar <Prior> { tk::ScrollByPages %W hv -1 } bind Scrollbar <Next> { tk::ScrollByPages %W hv 1 } bind Scrollbar <<LineStart>> { tk::ScrollToPos %W 0 } bind Scrollbar <<LineEnd>> { tk::ScrollToPos %W 1 } } switch [tk windowingsystem] { "aqua" { bind Scrollbar <MouseWheel> { tk::ScrollByUnits %W v [expr {- (%D)}] |
︙ | ︙ |
Changes to library/spinbox.tcl.
︙ | ︙ | |||
227 228 229 230 231 232 233 | bind Spinbox <Insert> { catch {::tk::EntryInsert %W [::tk::GetSelection %W PRIMARY]} } } # Additional emacs-like bindings: | < < < < < < < < < < | 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | bind Spinbox <Insert> { catch {::tk::EntryInsert %W [::tk::GetSelection %W PRIMARY]} } } # Additional emacs-like bindings: bind Spinbox <Control-b> { if {!$tk_strictMotif} { ::tk::EntrySetCursor %W [expr {[%W index insert] - 1}] } } bind Spinbox <Control-d> { if {!$tk_strictMotif} { %W delete insert } } bind Spinbox <Control-f> { if {!$tk_strictMotif} { ::tk::EntrySetCursor %W [expr {[%W index insert] + 1}] } } bind Spinbox <Control-h> { if {!$tk_strictMotif} { |
︙ | ︙ |
Changes to library/text.tcl.
︙ | ︙ | |||
283 284 285 286 287 288 289 | bind Text <KP_Enter> {# nothing} if {[tk windowingsystem] eq "aqua"} { bind Text <Command-KeyPress> {# nothing} } # Additional emacs-like bindings: | < < < < < < < < < < | 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | bind Text <KP_Enter> {# nothing} if {[tk windowingsystem] eq "aqua"} { bind Text <Command-KeyPress> {# nothing} } # Additional emacs-like bindings: bind Text <Control-b> { if {!$tk_strictMotif} { tk::TextSetCursor %W insert-1displayindices } } bind Text <Control-d> { if {!$tk_strictMotif && [%W compare end != insert+1c]} { %W delete insert } } bind Text <Control-f> { if {!$tk_strictMotif} { tk::TextSetCursor %W insert+1displayindices } } bind Text <Control-k> { if {!$tk_strictMotif && [%W compare end != insert+1c]} { |
︙ | ︙ | |||
386 387 388 389 390 391 392 | %W delete [tk::TextPrevPos %W insert tcl_startOfPreviousWord] insert } } # Macintosh only bindings: if {[tk windowingsystem] eq "aqua"} { | < < < < < < < < < < < < | | 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 | %W delete [tk::TextPrevPos %W insert tcl_startOfPreviousWord] insert } } # Macintosh only bindings: if {[tk windowingsystem] eq "aqua"} { bind Text <Option-Up> { tk::TextSetCursor %W [tk::TextPrevPara %W insert] } bind Text <Option-Down> { tk::TextSetCursor %W [tk::TextNextPara %W insert] } bind Text <Shift-Option-Up> { tk::TextKeySelect %W [tk::TextPrevPara %W insert] } bind Text <Shift-Option-Down> { tk::TextKeySelect %W [tk::TextNextPara %W insert] } bind Text <<Paste>> { tk::TextScrollPages %W 1 } # End of Mac only bindings } # A few additional bindings of my own. |
︙ | ︙ |
Changes to library/ttk/entry.tcl.
︙ | ︙ | |||
137 138 139 140 141 142 143 | } # Tk-on-Cocoa generates characters for these two keys. [Bug 2971663] bind TEntry <Down> {# nothing} bind TEntry <Up> {# nothing} ## Additional emacs-like bindings: # | < < | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | } # Tk-on-Cocoa generates characters for these two keys. [Bug 2971663] bind TEntry <Down> {# nothing} bind TEntry <Up> {# nothing} ## Additional emacs-like bindings: # bind TEntry <Control-Key-b> { ttk::entry::Move %W prevchar } bind TEntry <Control-Key-d> { ttk::entry::Delete %W } bind TEntry <Control-Key-f> { ttk::entry::Move %W nextchar } bind TEntry <Control-Key-h> { ttk::entry::Backspace %W } bind TEntry <Control-Key-k> { %W delete insert end } ### Clipboard procedures. # |
︙ | ︙ |
Changes to library/ttk/scale.tcl.
︙ | ︙ | |||
17 18 19 20 21 22 23 | bind TScale <B2-Motion> { ttk::scale::Drag %W %x %y } bind TScale <ButtonRelease-2> { ttk::scale::Release %W %x %y } bind TScale <ButtonPress-3> { ttk::scale::Jump %W %x %y } bind TScale <B3-Motion> { ttk::scale::Drag %W %x %y } bind TScale <ButtonRelease-3> { ttk::scale::Release %W %x %y } | > > > > > | | | | < < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | bind TScale <B2-Motion> { ttk::scale::Drag %W %x %y } bind TScale <ButtonRelease-2> { ttk::scale::Release %W %x %y } bind TScale <ButtonPress-3> { ttk::scale::Jump %W %x %y } bind TScale <B3-Motion> { ttk::scale::Drag %W %x %y } bind TScale <ButtonRelease-3> { ttk::scale::Release %W %x %y } ## Keyboard navigation bindings: # bind TScale <<LineStart>> { %W set [%W cget -from] } bind TScale <<LineEnd>> { %W set [%W cget -to] } bind TScale <<PrevChar>> { ttk::scale::Increment %W -1 } bind TScale <Up> { ttk::scale::Increment %W -1 } bind TScale <<NextChar>> { ttk::scale::Increment %W 1 } bind TScale <Down> { ttk::scale::Increment %W 1 } bind TScale <<PrevWord>> { ttk::scale::Increment %W -10 } bind TScale <Control-Up> { ttk::scale::Increment %W -10 } bind TScale <<NextWord>> { ttk::scale::Increment %W 10 } bind TScale <Control-Down> { ttk::scale::Increment %W 10 } proc ttk::scale::Press {w x y} { variable State set State(dragging) 0 switch -glob -- [$w identify $x $y] { *track - |
︙ | ︙ |