browse agent -> Service discovery

This commit is contained in:
Yann Leboulanger 2005-03-27 18:01:41 +00:00
parent 3324580a2e
commit 936a8392d5
1 changed files with 21 additions and 21 deletions

View File

@ -531,50 +531,50 @@ class Roster_window:
account = model.get_value(iter, 3)
menu = gtk.Menu()
item = gtk.MenuItem(_("Status"))
item = gtk.MenuItem(_('Status'))
menu.append(item)
sub_menu = gtk.Menu()
item.set_submenu(sub_menu)
item = gtk.MenuItem(_("Online"))
item = gtk.MenuItem(_('Online'))
sub_menu.append(item)
item.connect("activate", self.change_status, account, 'online')
item = gtk.MenuItem(_("Away"))
item.connect('activate', self.change_status, account, 'online')
item = gtk.MenuItem(_('Away'))
sub_menu.append(item)
item.connect("activate", self.change_status, account, 'away')
item = gtk.MenuItem(_("NA"))
item.connect('activate', self.change_status, account, 'away')
item = gtk.MenuItem(_('NA'))
sub_menu.append(item)
item.connect("activate", self.change_status, account, 'xa')
item = gtk.MenuItem(_("DND"))
item.connect('activate', self.change_status, account, 'xa')
item = gtk.MenuItem(_('DND'))
sub_menu.append(item)
item.connect("activate", self.change_status, account, 'dnd')
item = gtk.MenuItem(_("Invisible"))
item.connect('activate', self.change_status, account, 'dnd')
item = gtk.MenuItem(_('Invisible'))
sub_menu.append(item)
item.connect("activate", self.change_status, account, 'invisible')
item.connect('activate', self.change_status, account, 'invisible')
item = gtk.MenuItem()
sub_menu.append(item)
item = gtk.MenuItem(_("Offline"))
item = gtk.MenuItem(_('Offline'))
sub_menu.append(item)
item.connect("activate", self.change_status, account, 'offline')
item.connect('activate', self.change_status, account, 'offline')
item = gtk.MenuItem()
menu.append(item)
item = gtk.MenuItem(_("_Edit account"))
item = gtk.MenuItem(_('_Edit account'))
menu.append(item)
item.connect("activate", self.on_edit_account, account)
item = gtk.MenuItem(_("_Browse agents"))
item.connect('activate', self.on_edit_account, account)
item = gtk.MenuItem(_('_Service discovery'))
menu.append(item)
item.connect("activate", self.on_service_disco_menuitem_activate, account)
item = gtk.MenuItem(_("_Add contact"))
item.connect('activate', self.on_service_disco_menuitem_activate, account)
item = gtk.MenuItem(_('_Add contact'))
menu.append(item)
item.connect("activate", self.on_add_contact, account)
item.connect('activate', self.on_add_contact, account)
item = gtk.MenuItem(_('Join _groupchat'))
menu.append(item)
item.connect("activate", self.on_join_gc_activate, account)
item.connect('activate', self.on_join_gc_activate, account)
item = gtk.MenuItem(_('_New message'))
menu.append(item)
item.connect("activate", self.on_new_message_menuitem_activate, account)
item.connect('activate', self.on_new_message_menuitem_activate, account)
menu.popup(None, None, None, event.button, event.time)
menu.show_all()