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

def _popupMenu(self, tv, event):

    if (event.button != 3):
        return
    path = self.get_cursor()[0]
    if (not path):
        return
    row = self.liststore[path]
    posic = self.get_path_at_pos(int(event.x), int(event.y))
    if (posic is None):
        return
    clickpath = posic[0]
    if (row[3] and (clickpath != path)):
        return True
    if (self._rightButtonMenu is None):
        gm = gtk.Menu()
        self._rightButtonMenu = gm
        e = gtk.MenuItem(_('Save    configuration    to    profile'))
        e.connect('activate', self.save_profile)
        gm.append(e)
        e = gtk.MenuItem(_('Save    configuration    to    a    new    profile'))
        e.connect('activate', self.save_as_profile)
        gm.append(e)
        e = gtk.MenuItem(_('Revert    to    saved    profile    state'))
        e.connect('activate', self.revert_profile)
        gm.append(e)
        e = gtk.MenuItem(_('Delete    this    profile'))
        e.connect('activate', self.delete_profile)
        gm.append(e)
        gm.show_all()
    else:
        gm = self._rightButtonMenu
    (path, column) = tv.get_cursor()
    if ((path is not None) and (len(path) == 1)):
        newstatus = self._get_actionsSensitivity(path)
        children = gm.get_children()
        for (child, stt) in zip(children, newstatus):
            child.set_sensitive(stt)
        gm.popup(None, None, None, event.button, event.time)
