summaryrefslogtreecommitdiffstats
path: root/ext/tk
Commit message (Collapse)AuthorAgeFilesLines
...
* consistent parentheses in assignment RHS.matz2003-10-161-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* (bug fix) instance variable @frame was used without initializing onnagai2003-10-161-1/+2
| | | | | | | TkComposite module git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* If $DEBUG == true and some exception is caused in a callbacknagai2003-10-161-1/+17
| | | | | | | | operation, Ruby/Tk shows a (verbose) backtrace information on the callback process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add Tk::EncodedString and Tk::UTF8_String class to support charactersnagai2003-10-166-29/+289
| | | | | | | | using the \uXXXX escape to the UNICODE string. sample/{demos-en,demos-jp}/unicodeout.rb are samples of Tk::UTF8_String. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add entry3.rbnagai2003-10-151-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb :nagai2003-10-144-4/+411
| | | | | | | | | | * new demo-scripts ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget : * add entries for 'entry3.rb' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk/lib/tk.rb:nagai2003-10-141-2/+7
| | | | | | | * fixed trouble on auto-load Tcl commands (enbug on the last commit). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tcltklib/tcltklib.c:nagai2003-10-143-31/+187
| | | | | | | | | | | | | | | | | | | | | | | * replace Tcl/Tk's vwait and tkwait to switch on threads smoothly and avoid seg-fault. * add TclTkIp._thread_vwait and _thread_tkwait for waiting on a thread. ( Because Tcl/Tk's vwait and tkwait command wait on a eventloop. ) ext/tk/lib/multi-tk.rb: * support TclTkIp._thread_vwait and _thread_tkwait ext/tk/lib/tk.rb: * now, TkVariable#wait has 2 arguments. If 1st argument is true, waits on a thread. If false, waits on an eventloop. If 2nd argument is true, checks existence of rootwidgets. If false, doesn't. Default is wait(true, false). * add TkVariable#tkwait(arg) which is equal to TkVariable#wait(arg, true) * wait_visibility and wait_destroy have an argument for waiting on a thread or an eventloop. * improve of accessing Tcl/Tk's special variables ext/tk/lib/tkafter.rb: * support 'wait on a thread' and 'wait on an eventloop' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * multi-tk.rb: modify security check at creating a new interpreternagai2003-09-081-4/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tcltklib.c (lib_mainloop_core): fixed signal-trap bugnagai2003-09-0714-67/+188
| | | | | | | | * multi-tk.rb, tk.rb, tkafter.rb, tkcanvas.rb, tkfont.rb, tktext.rb, tkvirtevent.rb : Ruby/Tk works at $SAFE == 4 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_invoke): fixed bug on passing a exceptionnagai2003-09-027-138/+398
| | | | | | | | * ext/tk/lib/{tk.rb, tkcanvas.rb, tkfont.rb, tktext.rb} : bug fix and improvement of font control git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (aref_args): forgot to call NEW_SPLAT(). reported bymatz2003-09-011-1/+1
| | | | | | | | | | Dave Butcher. * eval.c (Init_Thread): protect thgroup_default. suggested by Guy Decoux in [ruby-talk:80623] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/ChangeLog-1.8.0: add changes of Ruby/Tknagai2003-08-295-104/+695
| | | | | | | | | | | | | | | | | | | | | | * ext/tcltklib/tcltklib.c : some methods have no effect if on slave-IP * ext/tcltklib/tcltklib.c : can create a interpreter without Tk * ext/tcltklib/tcltklib.c : bug fix on handling exceptions * ext/tcltklib/MANUAL.euc : modify * ext/tk/lib/tk.rb : freeze some core modules * ext/tk/lib/multi-tk.rb : more secure * ext/tk/lib/tk.rb: TkVariable.new(array) --> treat the array as the Tk's list * ext/tk/lib/tk.rb: improve accessibility of TkVariable object * ext/tk/lib/tk.rb, ext/tk/lib/tkfont.rb, ext/tk/lib/tkcanvas.rb, ext/tk/lib/tktext.rb : fix bug of font handling * ext/tk/lib/tkfont.rb TkFont.new() accepts compound fonts * process.c: bug fix * process.c: add rb_secure(2) to methods of Process::{UID,GID,Sys} * process.c: deny handling IDs during evaluating the block given to the Process::{UID,GID}.switch method git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ready to use 'validatecommand' option of TkEntry/TkSpinbox widgetnagai2003-08-033-25/+45
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * typo bugnagai2003-08-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * additional messagenagai2003-08-032-0/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (bug fix) bug on Tk object ID managementnagai2003-08-032-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * add widget demo scriptsnagai2003-08-035-4/+253
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sorry. fixed commit missnagai2003-08-031-12/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * add or modify some widget demo scriptsnagai2003-08-0216-35/+1509
| | | | | | | * (bug fix) TkGrid failed to treat RELATIVE PLACEMENT git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_to_s): get rid of buffer overflow.matz2003-08-021-0/+12
| | | | | | | | * io.c (appendline): clearerr(3) before raising exception, since exception may be captured by rescue. [ruby-talk:77794] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (bug fix) forgot to entry a widget class name of 'labelframe' widgetnagai2003-08-0212-6/+650
| | | | | | | * add demo-scripts to the JP/EN widget demos git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (bug fix) TkEntry#deletenagai2003-08-0233-134/+297
| | | | | | | | | | * (bug fix) some widget demos * support <TkVariable object> == <Symbol> ( "coerce TkVariable" add to the TODO list :-) ) * freeze some object for security reason git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * forgot to commit a sample scriptnagai2003-08-012-0/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fix : forget to eval given block to TkRoot.new methodnagai2003-08-011-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* MANIFESTnobu2003-08-011-0/+139
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fix : wrong resource file format (resource.{en,jp})nagai2003-07-315-12/+72
| | | | | | | | * add Tk::Encoding.{encoding_convertfrom, encoding_convertto} * add TkOptionDB.read_with_encoding to read non-utf8 resource file git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (IMPORTANT BUG FIX) scan of event keywords doesn't work on recentnagai2003-07-31141-25/+19495
| | | | | | | | | | | versions of Tck/Tk * (bug fix) initialize error of instance variable on TkComposite * (bug fix) initialize error on encoding-system on MultiTkIp * (bug fix) trouble on destroying widgets * (new) add JP and EN version of Ruby/Tk widget demos git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * wrap the command-proc of TkScale : pass the numeric object to the procnagai2003-07-314-24/+117
| | | | | | | | * better support for widgets created on Tk interpreter (without Ruby) * a little more stable on Multiple Tk interpreters running git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MultiTkIp.new_* accept a block to eval under the new interpreternagai2003-07-301-6/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fixnagai2003-07-306-6/+33
| | | | | | | | * fix lack of methods for TkEntry * fix reference of uninitialized variables git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * additional check of Tk interpreters' status for a little more safetynagai2003-07-303-12/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * fix a bug of the procedure for 'Delete' button on the safe-Tk frmaenagai2003-07-292-1/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * change default mode of mainloop_abort_on_exception on multi-tk.rbnagai2003-07-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fixnagai2003-07-292-1/+7
| | | | | | | | * change mainloop_abort_on_no_widget_cmd => mainloop_abort_on_exception ( to avoid thread timing trouble on accessing destroyed widgets ) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fix ( tested with Ruby/Tk widget demo )nagai2003-07-296-15/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c : bug fixnagai2003-07-292-12/+30
| | | | | | | | multi-tk.rb : bug fix and pack options are pssed to the safeTk container sample/safe-tk.rb : add example for pack options of safeTk container git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c : *bug fixnagai2003-07-281-10/+315
| | | | | | | | | multi-tk.rb : *bug fix *add methods depend on Tcl's 'interp' command *suppot to control safe-level of each interpreter git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* multi-tk.rb : (new) library to support multiple Tk interpreters (high level)nagai2003-07-276-8/+868
| | | | | | | | | | | tcltklib.c : add some methods to support multiple interpreters (low level) MANUAL.euc : modify descriptions tcltklib/sample/safeTk.rb : (new) sample : how to use safeTk interpreter tk/sample/safe-tk.rb : (new) sample : how to use multi-tk.rb tk.rb, tkafter.rb : bug fix and add feature to supprt multi-tk git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb (TkCore::chooseDirectory): back up wronglymatz2003-07-261-0/+4
| | | | | | | removed method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_mod_const_missing): "const_missing" should notmatz2003-07-261-4/+0
| | | | | | | | | appear in the caller(); add call frame adjustment. * eval.c (rb_method_missing): simplify call frame adjustment. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c : add TclTkIp#create_slave , TclTkIp#_make_safe and TclTkIp#safe?nagai2003-07-252-24/+76
| | | | | | | | | MANUAL.euc : modify descriptions tk.rb : bug fix [ruby-talk:76980] and modify to support multi Tk IPs tkafter.rb : modify to support multi Tk IPs git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* process.c : unify indentationnagai2003-07-2314-184/+317
| | | | | | | | | | | | configure.in : add --enable-setreuid option tcltklib.c : TclTkIp.new accepts 'ip-name' and 'options' ( e.g. TclTkIp.new('FOO', '-geometry 500x200 -use 0x2200009') ) tk.rb : support arguments of TclTkIp.new ( see TkCore::IP_NAME, TkCore::IP_OPTS ) tk*.rb : preparations for multi-Tk interpreter support git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-07-171-0/+4
| | | | | | | * recover and fix typo : Tk.chooseDirectory (Tk8.4 feature) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_init): set ruby_running to true aftermatz2003-07-171-9/+5
| | | | | | | initialization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-07-111-2/+2
| | | | | | | | * not create a Tcl/Tk interpreter if already defined TkCore::INTERP * bugfix on TkWindow#configure git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-07-011-9/+23
| | | | | | | | * TkWindow include TkWinfo * treat unknown widget classes as subclasses of TkWindow git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-252-2/+154
| | | | | | | | | | | | | | | | | * add and modify : TkWidget.database_class, TkWidget.database_classname, TkWidget#database_class, TkWidget#database_classname * instances of a subclass of TkToplevel or TkFrame are created with ":class=>subclass" option as default. For example, the followings create similar objects. (1) TkFrame.new(:class=>'XXX') (2) class XXX < TkFrame; end; XXX.new sample/tkoptdb.rb : * add new part of sample script git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tkcanvas.rb :nagai2003-06-253-40/+128
| | | | | | | | | | | | | | | | | * Although requiring manual control of GC, memory eating problem of TkCanvas Items is fixed. Probably, a time when GC should run is only after removing many canvas items. GC's cost is large and the man who knows proper timing to start GC is the man who create the script. So, Ruby/Tk doesn't start GC automatically. tktext.rb : * add some methods and bug fix tk.rb : * add widget destroy hook binding to TkBindTag::ALL git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tk.rb :nagai2003-06-245-22/+204
| | | | | | | | | | | | | * TkToplevel, TkFrame, TkPanedwindow, TkOptionDB : bug fix * TkOptionDB : make it more secure to use procs defined on resourceDB sample/tkoptdb.rb, sample/resource.ja, sample/resource.en : * sample script how to use TkOptionDB. resource.ja and resource.en are samples of resource definition file which are read by tkoptdb.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e