- changle label name for the Job treeview

- add double click on to Session treeview to perform the console session


git-svn-id: file:///home/svn/framework3/trunk@4382 4d416f70-5f16-0410-b530-b9f4589650da
unstable
fab 2007-02-13 19:56:19 +00:00
parent ebf41c00c7
commit 12c83bac78
1 changed files with 10 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class MyTargetTree < MyGlade
# Name Gtk::TreeViewColumn
column_name = Gtk::TreeViewColumn.new
column_name.set_title("Name")
column_name.set_title("Payload")
column_name.pack_start(renderer_name, true)
column_name.set_cell_data_func(renderer_name) do |column, cell, model, iter|
cell.text = iter[NAME]
@ -460,6 +460,15 @@ class MySessionTree
rescue
nil
end
elsif (event.event_type == Gdk::Event::BUTTON2_PRESS)
path, column, x, y = treeview.get_path_at_pos(event.x, event.y)
begin
iter = @treeview.model.get_iter(path)
treeview.selection.select_path(path)
Msf::Ui::Gtk2::Stream::Console.new(iter[O_SESSION])
rescue
nil
end
end
end
end