diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-06 09:42:12 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-06 09:42:12 +0000 |
commit | eb6571a860ff8c37c3583145be57287e8af97533 (patch) | |
tree | cd0a8b46f0b92608ec8997ca542d99029f28b1c5 /ext/tk/lib/tk/font.rb | |
parent | d9034d23ce8dcb88f310a9e33b79379123c1f7fd (diff) |
* ext/tk/lib : improve framework of developping Tcl/Tk extension wrappers
* BWidget extension support on Ruby/Tk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/font.rb')
-rw-r--r-- | ext/tk/lib/tk/font.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/font.rb b/ext/tk/lib/tk/font.rb index b4c5c79213..527584f1ed 100644 --- a/ext/tk/lib/tk/font.rb +++ b/ext/tk/lib/tk/font.rb @@ -197,7 +197,7 @@ class TkFont def TkFont.init_widget_font(pathname, *args) win, tag, key = pathname.split(';') - key = 'font' unless key + key = 'font' if key == nil || key == '' path = [win, tag, key].join(';') case (Tk::TK_VERSION) @@ -868,7 +868,7 @@ class TkFont begin if w.include?(';') win, tag, optkey = w.split(';') - optkey = 'font' unless optkey + optkey = 'font' if optkey == nil || optkey == '' winobj = tk_tcl2ruby(win) # winobj.tagfont_configure(tag, {'font'=>@latinfont}) if winobj.kind_of? TkText |