Set transient_for 'Bookmark already set' and 'Bookmark has been added successfully' in disco

This commit is contained in:
Denis Fomin 2013-10-24 14:17:30 +04:00
parent 9d9bf6b81f
commit a61fb3bd4f
1 changed files with 4 additions and 2 deletions

View File

@ -1881,7 +1881,8 @@ class MucBrowser(AgentBrowser):
for bookmark in gajim.connections[self.account].bookmarks: for bookmark in gajim.connections[self.account].bookmarks:
if bookmark['jid'] == bm['jid']: if bookmark['jid'] == bm['jid']:
dialogs.ErrorDialog( _('Bookmark already set'), dialogs.ErrorDialog( _('Bookmark already set'),
_('Group Chat "%s" is already in your bookmarks.') % bm['jid']) _('Group Chat "%s" is already in your bookmarks.') % bm['jid'],
transient_for=self.window.window)
return return
gajim.connections[self.account].bookmarks.append(bm) gajim.connections[self.account].bookmarks.append(bm)
@ -1891,7 +1892,8 @@ class MucBrowser(AgentBrowser):
dialogs.InformationDialog( dialogs.InformationDialog(
_('Bookmark has been added successfully'), _('Bookmark has been added successfully'),
_('You can manage your bookmarks via Actions menu in your roster.')) _('You can manage your bookmarks via Actions menu in your roster.'),
transient_for=self.window.window)
def on_join_button_clicked(self, *args): def on_join_button_clicked(self, *args):
""" """