From 6d34fcd244678171fed09192e186cf79c104fb5f Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sun, 27 Dec 2015 10:48:43 +0900 Subject: [PATCH] Font name typo * ext/tk/lib/tk/{menubar.rb,menubar1.rb,menubar2.rb,menubar3.rb} : Helvetia => Helvetica --- ext/tk/lib/tk/menubar.rb | 2 +- ext/tk/sample/menubar1.rb | 2 +- ext/tk/sample/menubar2.rb | 4 ++-- ext/tk/sample/menubar3.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/tk/lib/tk/menubar.rb b/ext/tk/lib/tk/menubar.rb index 17cb447..6c5df6b 100644 --- a/ext/tk/lib/tk/menubar.rb +++ b/ext/tk/lib/tk/menubar.rb @@ -77,7 +77,7 @@ # 'tearoff'=>false, # 'foreground'=>'grey40', # 'activeforeground'=>'red', -# 'font'=>'Helvetia 12 bold') +# 'font'=>'Helvetica 12 bold') # menubar.pack('side'=>'top', 'fill'=>'x') # See tk/menuspce.rb about the format of the menu_spec diff --git a/ext/tk/sample/menubar1.rb b/ext/tk/sample/menubar1.rb index 1a935d5..a468fb6 100644 --- a/ext/tk/sample/menubar1.rb +++ b/ext/tk/sample/menubar1.rb @@ -44,7 +44,7 @@ 'tearoff'=>false, 'foreground'=>'grey40', 'activeforeground'=>'red', - 'font'=>'Helvetia 12 bold') + 'font'=>'Helvetica 12 bold') menubar.pack('side'=>'top', 'fill'=>'x') TkText.new(:wrap=>'word').pack.insert('1.0', 'Please read the sample source, and check how to override default configure options of menu entries on a menu_spec. Maybe, on windows, this menubar does not work properly about keyboard shortcuts. Then, please use "menu" option of root/toplevel widget (see sample/menubar2.rb).') diff --git a/ext/tk/sample/menubar2.rb b/ext/tk/sample/menubar2.rb index 5930d27..e10a282 100644 --- a/ext/tk/sample/menubar2.rb +++ b/ext/tk/sample/menubar2.rb @@ -45,12 +45,12 @@ 'tearoff'=>'false', 'foreground'=>'grey40', 'activeforeground'=>'red', - 'font'=>'Helvetia 12 bold') + 'font'=>'Helvetica 12 bold') # This (default configure options) is NOT same the following. # # mbar = Tk.root.add_menubar(menu_spec) # mbar.configure('foreground'=>'grey40', 'activeforeground'=>'red', -# 'font'=>'Helvetia 12 bold') +# 'font'=>'Helvetica 12 bold') TkText.new(:wrap=>'word').pack.insert('1.0', 'Please read the sample source, and check how to override default configure options of menu entries on a menu_spec.') diff --git a/ext/tk/sample/menubar3.rb b/ext/tk/sample/menubar3.rb index ce70835..f8344cc 100644 --- a/ext/tk/sample/menubar3.rb +++ b/ext/tk/sample/menubar3.rb @@ -63,7 +63,7 @@ 'tearoff'=>false, 'foreground'=>'grey40', 'activeforeground'=>'red', - 'font'=>'Helvetia 12 bold') + 'font'=>'Helvetica 12 bold') menubar.pack('side'=>'left', 'fill'=>'y') TkText.new(:wrap=>'word').pack.insert('1.0', 'This sample script generates "Menu Sidebar". -- 2.6.4