diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-10 10:13:30 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-10 10:13:30 +0000 |
| commit | 4a499de068f65dfa8c5258c456324d5d32e3286a (patch) | |
| tree | c981003f0983f34978882802c6b8db378df5ab93 /ext/tk/lib/tkextlib | |
| parent | de7dc8d88d24a28d1e2bf0f0a27b09d5f3ef5f34 (diff) | |
| download | ruby-4a499de068f65dfa8c5258c456324d5d32e3286a.tar.gz ruby-4a499de068f65dfa8c5258c456324d5d32e3286a.tar.xz ruby-4a499de068f65dfa8c5258c456324d5d32e3286a.zip | |
* ext/tk/tcltklib.c (lib_eventloop_ensure): mis-delete a timer handler
when exit from a recursive called eventloop
* ext/tk/lib/tk/timer.rb: new TkRTTimer class, which can works for a
realtime operation
* ext/tk/sample/tkrttimer.rb: sample of TkRTTimer class
* ext/tk/lib/tk/textmark.rb: move TkTextMark#+ and TkTextMark#- to
TkText::IndexModMethods
* ext/tk/lib/tk/text.rb: improve TkTextMark#+ and TkTextMark#-, and
add them to TkText::IndexModMethods module
* ext/tk/sample/tktextio.rb: add test part of "seek by text index
modifiers"
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/notebook.rb | 14 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/promptdialog.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/selectionbox.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/spinner.rb | 4 |
8 files changed, 21 insertions, 21 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/notebook.rb b/ext/tk/lib/tkextlib/iwidgets/notebook.rb index d9abf1b02..c0897b884 100644 --- a/ext/tk/lib/tkextlib/iwidgets/notebook.rb +++ b/ext/tk/lib/tkextlib/iwidgets/notebook.rb @@ -139,24 +139,24 @@ class Tk::Iwidgets::Notebook end alias scrollbar yscrollbar - def view(*index) - if index.size == 0 + def view(*idxs) + if idxss.size == 0 window(tk_send_without_enc('view')) else - tk_send_without_enc('view', *index) + tk_send_without_enc('view', *idxs) self end end alias xview view alias yview view - def view_moveto(*index) - view('moveto', *index) + def view_moveto(*idxs) + view('moveto', *idxs) end alias xview_moveto view_moveto alias yview_moveto view_moveto - def view_scroll(*index) - view('scroll', *index) + def view_scroll(*idxs) + view('scroll', *idxs) end alias xview_scroll view_scroll alias yview_scroll view_scroll diff --git a/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb b/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb index ec1864751..620b14b5d 100644 --- a/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb +++ b/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb @@ -73,8 +73,8 @@ class Tk::Iwidgets::Promptdialog end alias icursor cursor= - def index(index) - number(tk_send_without_enc('index', index)) + def index(idx) + number(tk_send_without_enc('index', idx)) end def insert(pos,text) diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb index d4b9b48fe..e949955a3 100644 --- a/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb +++ b/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb @@ -228,8 +228,8 @@ class Tk::Iwidgets::Scrolledcanvas self end - def index(tagOrId, index) - number(tk_send_without_enc('index', tagid(tagOrId), index)) + def index(tagOrId, idx) + number(tk_send_without_enc('index', tagid(tagOrId), idx)) end def insert(tagOrId, index, string) diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb index 9fe23b4ed..ef98979ae 100644 --- a/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb +++ b/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb @@ -152,8 +152,8 @@ class Tk::Iwidgets::Scrolledlistbox self end - def index(index) - tk_send_without_enc('index', index).to_i + def index(idx) + tk_send_without_enc('index', idx).to_i end ##################################### diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb index 39a9ed63c..bfff6804d 100644 --- a/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb +++ b/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb @@ -240,8 +240,8 @@ class Tk::Iwidgets::Scrolledtext } end - def index(index) - tk_send_without_enc('index', _get_eval_enc_str(index)) + def index(idx) + tk_send_without_enc('index', _get_eval_enc_str(idx)) end def insert(index, *args) diff --git a/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb b/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb index 91ba9248e..154a9792d 100644 --- a/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb +++ b/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb @@ -57,8 +57,8 @@ class Tk::Iwidgets::Selectionbox tk_send_without_enc('delete', first, last) self end - def index(index) - tk_send_without_enc('index', index).to_i + def index(idx) + tk_send_without_enc('index', idx).to_i end def nearest(y) tk_send_without_enc('nearest', y).to_i diff --git a/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb b/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb index 794da5d61..ab790e97a 100644 --- a/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb +++ b/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb @@ -57,8 +57,8 @@ class Tk::Iwidgets::Selectiondialog tk_send_without_enc('delete', first, last) self end - def index(index) - tk_send_without_enc('index', index).to_i + def index(idx) + tk_send_without_enc('index', idx).to_i end def nearest(y) tk_send_without_enc('nearest', y).to_i diff --git a/ext/tk/lib/tkextlib/iwidgets/spinner.rb b/ext/tk/lib/tkextlib/iwidgets/spinner.rb index b5c72b4df..4dac4ed58 100644 --- a/ext/tk/lib/tkextlib/iwidgets/spinner.rb +++ b/ext/tk/lib/tkextlib/iwidgets/spinner.rb @@ -91,8 +91,8 @@ class Tk::Iwidgets::Spinner end alias icursor cursor= - def index(index) - number(tk_send_without_enc('index', index)) + def index(idx) + number(tk_send_without_enc('index', idx)) end def insert(pos,text) |
