metasploit-framework/lib/msf/ui/gtk2/assistant/tips.rb

30 lines
567 B
Ruby

module Msf
module Ui
module Gtk2
###
#
# Subclass the TreeViewTooltips to add our get_tooltip function
#
###
class AssistantTips < Msf::Ui::Gtk2::TreeViewTooltips
def initialize(column)
super()
@column = column
end
def get_tooltip(view, column, path)
if (column == @column)
model = view.model
iter = model.get_iter(path)
return iter.get_value(3)
end
end
end # AssistantTips
end
end
end