'Shows a menu when you right click on a plugin.
:param tv: the treeview.
:param event: The GTK event'

def popup_menu(self, tv, event):

    if (event.button != 3):
        return
    (path, column) = tv.get_cursor()
    if ((path is not None) and (len(path) == 1)):
        plugin = self.get_plugin_inst(path)
        pname = self.liststore[path][1]
        gm = gtk.Menu()
        e = gtk.MenuItem(_('Edit    plugin...'))
        e.connect('activate', self._handleEditPluginEvent, pname, path)
        gm.append(e)
        e = gtk.MenuItem(_('Exploit    ALL    vulns'))
        e.connect('activate', self._exploit_all, pname, False)
        gm.append(e)
        e = gtk.MenuItem(_('Exploit    all    until    first    successful'))
        e.connect('activate', self._exploit_all, pname, True)
        gm.append(e)
        gm.show_all()
        gm.popup(None, None, None, event.button, event.time)
