зеркало из https://github.com/github/ruby.git
* 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:
Родитель
5ebf704953
Коммит
77773831db
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче