- 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-b9f4589650daunstable
parent
ebf41c00c7
commit
12c83bac78
|
@ -282,7 +282,7 @@ class MyTargetTree < MyGlade
|
||||||
|
|
||||||
# Name Gtk::TreeViewColumn
|
# Name Gtk::TreeViewColumn
|
||||||
column_name = Gtk::TreeViewColumn.new
|
column_name = Gtk::TreeViewColumn.new
|
||||||
column_name.set_title("Name")
|
column_name.set_title("Payload")
|
||||||
column_name.pack_start(renderer_name, true)
|
column_name.pack_start(renderer_name, true)
|
||||||
column_name.set_cell_data_func(renderer_name) do |column, cell, model, iter|
|
column_name.set_cell_data_func(renderer_name) do |column, cell, model, iter|
|
||||||
cell.text = iter[NAME]
|
cell.text = iter[NAME]
|
||||||
|
@ -460,6 +460,15 @@ class MySessionTree
|
||||||
rescue
|
rescue
|
||||||
nil
|
nil
|
||||||
end
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue