提案 #1525 » 0004-modelviewer-deprecated.patch
plugin/modelviewer/modelviewer.rb | ||
---|---|---|
91 | 91 | |
92 | 92 |
def model_icon(model) |
93 | 93 |
return ::Gtk::EventBox.new unless model.respond_to?(:icon) |
94 |
icon = ::Gtk::EventBox.new.add(::Gtk::WebIcon.new(model.icon, UserConfig[:profile_icon_size], UserConfig[:profile_icon_size]).tooltip(_('アイコンを開く')))
|
|
94 |
icon = ::Gtk::EventBox.new.add(::Gtk::WebIcon.new(model.icon, UserConfig[:profile_icon_size], UserConfig[:profile_icon_size]).set_tooltip_text(_('アイコンを開く')))
|
|
95 | 95 |
icon.ssc(:button_press_event) do |
96 | 96 |
Plugin.call(:open, model.icon) |
97 | 97 |
true |