diff options
-rw-r--r-- | ChangeLog | 21 | ||||
-rw-r--r-- | doc/selection.n | 8 |
2 files changed, 18 insertions, 11 deletions
@@ -1,6 +1,10 @@ +2008-12-17 Donal K. Fellows <dkf@users.sf.net> + + * doc/selection.n: Assorted small fixes. [Bugs 2441817,2441884] + 2008-12-16 Jan Nijtmans <nijtmans@users.sf.net> - * win/tkWinDialog.c: remove unused variables + * win/tkWinDialog.c: Remove unused variables 2008-12-15 Don Porter <dgp@users.sourceforge.net> @@ -16,9 +20,10 @@ * library/demos/widget: 2008-12-11 Jan Nijtmans <nijtmans@users.sf.net> - * generic/tk3d.c: Make error message from Tk_GetRelief the - same as for Tk_GetReliefFromObj - * tests/canvas.test Adapt test cases for changed error message + + * generic/tk3d.c: Make error message from Tk_GetRelief the same as + for Tk_GetReliefFromObj. + * tests/canvas.test Adapt test cases for changed error message. * tests/scrollbar.test * tests/textTag.test @@ -33,8 +38,8 @@ TIP #324 IMPLEMENTATION - * generic/tkCmds.c: Implementation of [tk fontchooser] - * generic/tkInt.h: as a Ttk dialog for X11 and as a native + * generic/tkCmds.c: Implementation of [tk fontchooser] as + * generic/tkInt.h: a Ttk dialog for X11 and as a native * win/tkWinDialog.c: platform dialog on Mac OS X & Windows. * win/tkWinInt.h: (thoyts, vetter, robert, steffen) * win/tkWinTest.c: [Patch 1477426] @@ -100,8 +105,8 @@ * macosx/ttkMacOSXTheme.c: Add native aqua elements for ttk::spinbox [Bug 2219588] * generic/ttk/ttkEntry.c, library/ttk/spinbox.tcl, - tests/ttk/spinbox.test: Moved most spinbox "business logic" - out of ttkEntry.c into Tcl bindings. + * tests/ttk/spinbox.test: Moved most spinbox "business logic" out of + ttkEntry.c into Tcl bindings. * library/ttk/clamTheme.tcl: Minor spinbox appearance improvements. * library/ttk/combobox.tcl, library/ttk/utils.tcl: Factor out ttk::bindMouseWheel procedure. diff --git a/doc/selection.n b/doc/selection.n index a14ee34..42c0c6a 100644 --- a/doc/selection.n +++ b/doc/selection.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: selection.n,v 1.14 2008/09/23 13:36:54 dkf Exp $ +'\" RCS: @(#) $Id: selection.n,v 1.15 2008/12/17 22:36:46 dkf Exp $ '\" .so man.macros .TH selection n 8.1 Tk "Tk Built-In Commands" @@ -129,6 +129,7 @@ containing \fIwindow\fR, or an empty string if no window in this application owns the selection. \fISelection\fR defaults to PRIMARY and \fIwindow\fR defaults to .QW . . +.RS .PP The second form of \fBselection own\fR causes \fIwindow\fR to become the new owner of \fIselection\fR on \fIwindow\fR's display, returning @@ -137,6 +138,7 @@ that it has lost the selection. If \fIcommand\fR is specified, it is a Tcl script to execute when some other window claims ownership of the selection away from \fIwindow\fR. \fISelection\fR defaults to PRIMARY. +.RE .SH EXAMPLES .PP On X11 platforms, one of the standard selections available is the @@ -155,14 +157,14 @@ foreach type [\fBselection get\fR \-type TARGETS] { .CE .PP To claim the selection, you must first set up a handler to supply the -data for the selection. Then you have to claim the selection... +data for the selection. Then you have to claim the selection... .CS # Set up the data handler ready for incoming requests set foo "This is a string with some data in it... blah blah" \fBselection handle\fR \-selection SECONDARY . getData proc getData {offset maxChars} { puts "Retrieving selection starting at $offset" - return [string range $::foo $offset [expr {$offset+$maxChars}]] + return [string range $::foo $offset [expr {$offset+$maxChars-1}]] } # Now we grab the selection itself |