def METHOD_NAME(self, items):
    ITEM_MAP = {
        ACCEPT: (_("Accept"), self.on_accept),
        ASSESS: (_("Assess"), self.on_assess),
        OBSERVE: (_("Observe"), self.on_observe),
        FOLLOW: (_("Follow"), self.on_follow),
        CHAT: (_("Chat"), self.on_chat),
        CHALLENGE: (_("Challenge"), self.on_challenge),
        FINGER: (_("Finger"), self.on_finger),
        ARCHIVED: (_("Archived"), self.on_archived),
    }
    self.menu = Gtk.Menu()
    for item in items:
        if item == SEPARATOR:
            menu_item = Gtk.SeparatorMenuItem()
        else:
            label, callback = ITEM_MAP[item]
            menu_item = Gtk.MenuItem(label)
            menu_item.connect("activate", callback)
        self.menu.append(menu_item)
    self.menu.attach_to_widget(self.tv, None)