'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):
        _time = event.time
        (path, column) = tv.get_cursor()
        if ((path is not None) and (len(path) > 1)):
            pname = self.treestore[path][3]
            ptype = self.treestore[path[:1]][3]
            gm = gtk.Menu()
            e = gtk.MenuItem(_('Edit    plugin...'))
            e.connect('activate', self._handleEditPluginEvent, pname, ptype, path)
            f = gtk.MenuItem(_('Reload    plugin'))
            f.connect('activate', self._handleReloadPluginEvent, pname, ptype, path)
            gm.append(e)
            gm.append(f)
            gm.show_all()
            gm.popup(None, None, None, event.button, _time)
