From ea03c3fc2c0bfcf6351c3bce9496fd4607f4594a Mon Sep 17 00:00:00 2001 From: nagai Date: Wed, 5 Nov 2003 14:00:11 +0000 Subject: configure.in, eval.c, signal.c: : add '--with-pthread-ext' option to fix the pthread trouble on 'tcltklib' ext/tcltklib/README.1st: add the description of '--with-pthread-ext' ext/tk/lib/tktext.rb : add TkText#text_copy, text_cut, text_paste to support Tcl/Tk8.4's tk_textCopy, tk_textCut, tk_textPaste ext/tk/lib/tk.rb : add TkMenu#set_focus support Tcl/Tk's tk_menuSetFocus git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tcltklib/README.1st | 7 +++++++ ext/tk/lib/tk.rb | 7 +++++++ ext/tk/lib/tktext.rb | 15 +++++++++++++++ 3 files changed, 29 insertions(+) (limited to 'ext') diff --git a/ext/tcltklib/README.1st b/ext/tcltklib/README.1st index 14c56fd410..fe965e04d0 100644 --- a/ext/tcltklib/README.1st +++ b/ext/tcltklib/README.1st @@ -29,5 +29,12 @@ directry of Ruby sources, please try something like as the followings. $ rm Makefile $ CONFIGURE_ARGS='--with-tcl-include=/usr/local/include/tcl8.3/ --with-tcllib=tcl8.3 --with-tklib=tk8.3 --enable-tcltk_stubs' ruby extconf.rb + + *** ATTENTION *** +If your Tcl/Tk libraries are compiled with "pthread support", Ruby/Tk +may cause "Hang-up" or "Segmentation Fault" frequently. To avoid this +trouble, please try to use the '--with-pthread-ext' option of the +'configure' command and re-compile Ruby sources. + ========================================================== Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 9cdd3b918e..e5d1c6f63b 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -4289,6 +4289,10 @@ class TkWindow