Changeset 45


Ignore:
Timestamp:
Aug 17, 2005, 3:57:10 PM (19 years ago)
Author:
mmc
Message:

Fixed copy/paste with desktop to work properly. It was
relying on the clipboard when the selection and the
cutbuffer were not available. But that causes strange
behavior with the applet panel. Now that the clipboard
stuff is removed, it works better.

Also, changed the wrapping on text entries to "char"
instead of "word", which should be more intuitive for
users entering long lines.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mainwin.tcl

    r44 r45  
    150150    global tcl_platform
    151151    if {$tcl_platform(platform) == "unix"} {
    152         # this sync stuff only works for X windows
     152        # this sync stuff works only for X windows
    153153        blt::cutbuffer set ""
    154154        syncCutBuffer ifneeded
     
    204204            # outside the VNC client.
    205205            #
    206             set s ""
    207             if {[catch {selection get -selection PRIMARY} s] || "" == $s} {
    208                 if {[catch {clipboard get} s]} {
    209                     set s ""
    210                 }
     206            if {[catch {selection get -selection PRIMARY} s]} {
     207                set s ""
    211208            }
    212209            if {"" != $s && ![string equal $s $_sync(selection)]} {
  • trunk/gui/scripts/textentry.tcl

    r43 r45  
    288288            itk_component add text {
    289289                text $itk_component(scrollbars).text \
    290                     -width 1 -height 1 -wrap word
     290                    -width 1 -height 1 -wrap char
    291291            } {
    292292                usual
Note: See TracChangeset for help on using the changeset viewer.