1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/sample/demos-jp/toolber.rb, ext/tk/sample/demos-en/toolber.rb:

fail to back a tear-off marker when reattach the toolbar.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2008-06-16 18:50:53 +00:00
parent 5ebf704953
commit 77773831db
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ if Tk.windowingsystem != 'aqua'
w.grid_remove
self.wm_manage
# self.wm_title('Toolbar') # if you don't want to use its widget name as a window title.
self.wm_protocol('WM_DELETE_WINDOW'){ self.untearoff(self) }
self.wm_protocol('WM_DELETE_WINDOW'){ self.untearoff(w) }
end
def tbar_base.untearoff(w)
self.wm_forget

View file

@ -73,7 +73,7 @@ if Tk.windowingsystem != 'aqua'
w.grid_remove
self.wm_manage
# self.wm_title('Toolbar') # もしウィジェット名をウィンドウタイトルにしたくないなら,ここで設定してください
self.wm_protocol('WM_DELETE_WINDOW'){ self.untearoff(self) }
self.wm_protocol('WM_DELETE_WINDOW'){ self.untearoff(w) }
end
def tbar_base.untearoff(w)
self.wm_forget