バグ #1516 » 0001-worldshifter-refs-1516.patch
plugin/gtk3/widget/worldshifter.rb | ||
---|---|---|
26 | 26 |
Plugin.collect(:worlds).each do |world| |
27 | 27 |
item = Gtk::ImageMenuItem.new(label: world.title, accel_group: false) |
28 | 28 |
item.set_image Gtk::WebIcon.new(world.icon, UserConfig[:gtk_accountbox_geometry], UserConfig[:gtk_accountbox_geometry]) |
29 |
item.always_show_image = true |
|
29 | 30 |
item.ssc(:activate) { |w| |
30 | 31 |
Plugin.call(:world_change_current, world) |
31 | 32 |
@face.tooltip_text = world.title |
... | ... | |
35 | 36 |
menu.append Gtk::SeparatorMenuItem.new |
36 | 37 |
item = Gtk::ImageMenuItem.new(label: Plugin[:gtk3]._('Worldを追加'), accel_group: false) |
37 | 38 |
item.set_image Gtk::WebIcon.new(Skin[:add], UserConfig[:gtk_accountbox_geometry], UserConfig[:gtk_accountbox_geometry]) |
39 |
item.always_show_image = true |
|
38 | 40 |
item.ssc(:activate) { |w| |
39 | 41 |
Plugin.call(:request_world_add) |
40 | 42 |
false } |