* ext/tk/lib/tk/menubar.rb: fix a typo in font name. [ruby-core:72505]

[Bug #11886] The patch provided by Akira Matsuda.

* ext/tk/sample/*.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2016-03-07 15:15:59 +00:00
Родитель 43c3e415e1
Коммит fea0595635
5 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Tue Mar 8 00:11:47 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
* ext/tk/lib/tk/menubar.rb: fix a typo in font name. [ruby-core:72505]
[Bug #11886] The patch provided by Akira Matsuda.
* ext/tk/sample/*.rb: ditto.
Mon Mar 7 13:32:58 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* class.c (rb_define_class, rb_define_class_id_under): raise

Просмотреть файл

@ -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/menuspec.rb about the format of the menu_spec

Просмотреть файл

@ -44,7 +44,7 @@ menubar = TkMenubar.new(nil, menu_spec,
'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).')

Просмотреть файл

@ -45,12 +45,12 @@ mbar = Tk.root.add_menubar(menu_spec,
'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.')

Просмотреть файл

@ -63,7 +63,7 @@ menubar = TkMenubar.new(nil, menu_spec,
'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".