バグ #1548 » 0001-Gtk-ImageMenuItem.new.patch
plugin/gtk3/widget/worldshifter.rb | ||
---|---|---|
24 | 24 |
def open_menu(event) |
25 | 25 |
@menu ||= Gtk::Menu.new.tap do |menu| |
26 | 26 |
Plugin.collect(:worlds).each do |world| |
27 |
item = Gtk::ImageMenuItem.new(label: world.title, accel_group: false)
|
|
27 |
item = Gtk::ImageMenuItem.new(label: world.title, use_underline: false)
|
|
28 | 28 |
item.set_image Gtk::WebIcon.new(world.icon, UserConfig[:gtk_accountbox_geometry], UserConfig[:gtk_accountbox_geometry]) |
29 | 29 |
item.always_show_image = true |
30 | 30 |
item.ssc(:activate) { |w| |
... | ... | |
34 | 34 |
menu.append item |
35 | 35 |
end |
36 | 36 |
menu.append Gtk::SeparatorMenuItem.new |
37 |
item = Gtk::ImageMenuItem.new(label: Plugin[:gtk3]._('Worldを追加'), accel_group: false)
|
|
37 |
item = Gtk::ImageMenuItem.new(label: Plugin[:gtk3]._('Worldを追加'), use_underline: false)
|
|
38 | 38 |
item.set_image Gtk::WebIcon.new(Skin[:add], UserConfig[:gtk_accountbox_geometry], UserConfig[:gtk_accountbox_geometry]) |
39 | 39 |
item.always_show_image = true |
40 | 40 |
item.ssc(:activate) { |w| |