Menu

#3037 -typevariable buggy in X11

open
5
2012-11-19
2012-11-19
No

The -typevariable option is buggy in X11. According to TIP 242 the typevariable should hold the type as specified. This script:

package require tcltest
package require Tk

puts [tk_getSaveFile -initialfile foo -typevariable seltype -filetypes {{TEXT *.txt}}]
puts $seltype

# behaviour before the patch
# Win: TEXT
# Tk/Carbon: TEXT
# Tk/Cocoa: seltype is undefined
# X11: TEXT (*.txt)
#
# after the patch
# X11: TEXT

gives the expected output under Win and Tk/Carbon. The modified result in X11 prevents the use case of switching on the value of typevariable. The attached patch fixes the problem for X11.

Discussion

  • Christian Gollwitzer

    Patch for typevariable bug in X11

     
  • Christian Gollwitzer

    See also bug 3588462

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.