バグ #1553 » 0001-ImageMenuItem_new-method.patch
core/mui/gtk_contextmenu.rb | ||
---|---|---|
78 | 78 |
icon = icon.call(*[optional, widget][0, (icon.arity == -1 ? 1 : icon.arity)]) |
79 | 79 |
end |
80 | 80 |
if icon |
81 |
Gtk::ImageMenuItem.new(label: label_text).tap do |item| |
|
81 |
Gtk::ImageMenuItem.new(label: label_text, use_underline: false).tap do |item|
|
|
82 | 82 |
item.set_image(Gtk::WebIcon.new(icon, 16, 16)) |
83 | 83 |
item.always_show_image = true |
84 | 84 |
end |
85 | 85 |
else |
86 |
Gtk::MenuItem.new(label: label_text) |
|
86 |
Gtk::MenuItem.new(label: label_text, use_underline: false)
|
|
87 | 87 |
end |
88 | 88 |
end |
89 | 89 |
end |