バグ #1559 » 0001-more-deprecated.patch
core/mui/gtk_form_dsl.rb | ||
---|---|---|
690 | 690 |
def link(target) |
691 | 691 |
case target |
692 | 692 |
when String, URI, Addressable::URI, Diva::URI |
693 |
button = Gtk::Button.new(target.to_s, false)
|
|
693 |
button = Gtk::Button.new(label: target.to_s, use_underline: false)
|
|
694 | 694 |
button. |
695 |
tooltip(target.to_s).
|
|
695 |
set_tooltip_text(target.to_s).
|
|
696 | 696 |
set_alignment(0.0, 0.5). |
697 | 697 |
ssc(:clicked, &model_opener(target)) |
698 | 698 |
attach_next_to(button, nil, :bottom, 2, 1) |
... | ... | |
701 | 701 |
box = Gtk::Box.new(:horizontal, 0) |
702 | 702 |
if target.respond_to?(:icon) |
703 | 703 |
icon = Gtk::WebIcon.new(target.icon, 48, 48) |
704 |
box.closeup(icon)
|
|
704 |
box.pack_start(icon, expand: false)
|
|
705 | 705 |
end |
706 | 706 |
button. |
707 |
tooltip(target.title).
|
|
707 |
set_tooltip_text(target.title).
|
|
708 | 708 |
add(box.add(Gtk::Label.new(target.title))). |
709 | 709 |
ssc(:clicked, &model_opener(target)) |
710 | 710 |
attach_next_to(button, nil, :bottom, 2, 1) |