changeset a11bca1a96ac in /home/hg/repos/gajim
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=a11bca1a96ac
description: show error dialog of profile window transient for profile window.
see #7185
diffstat:
src/profile_window.py | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r 5cddd914a01a -r a11bca1a96ac src/profile_window.py
--- a/src/profile_window.py Thu Aug 15 19:45:34 2013 +0200
+++ b/src/profile_window.py Thu Aug 15 22:20:13 2013 +0200
@@ -146,7 +146,8 @@
invalid_file = True
if invalid_file:
if True: # keep identation
- dialogs.ErrorDialog(_('Could not load image'), msg)
+ dialogs.ErrorDialog(_('Could not load image'), msg,
+ transient_for=self.window)
return
if filesize > 16384:
if scaled_pixbuf:
@@ -162,7 +163,8 @@
# rescale it
pixbuf = gtkgui_helpers.get_scaled_pixbuf(pixbuf, 'vcard')
except AttributeError: # unknown format
- dialogs.ErrorDialog(_('Could not load image'))
+ dialogs.ErrorDialog(_('Could not load image'),
+ transient_for=self.window)
return
self.dialog.destroy()
self.dialog = None
@@ -237,7 +239,7 @@
if not widget.is_focus():
pritext = _('Wrong date format')
dialogs.ErrorDialog(pritext, _('Format of the date must be '
- 'YYYY-MM-DD'))
+ 'YYYY-MM-DD'), transient_for=self.window)
GLib.idle_add(lambda: widget.grab_focus())
return True
@@ -373,7 +375,7 @@
if gajim.connections[self.account].connected < 2:
dialogs.ErrorDialog(_('You are not connected to the server'),
_('Without a connection, you can not publish your contact '
- 'information.'))
+ 'information.'), transient_for=self.window)
return
vcard_ = self.make_vcard()
nick = ''
@@ -413,7 +415,7 @@
self.update_progressbar_timeout_id = None
dialogs.InformationDialog(_('vCard publication failed'),
_('There was an error while publishing your personal information, '
- 'try again later.'))
+ 'try again later.'), transient_for=self.window)
def on_cancel_button_clicked(self, widget):
self.window.destroy()
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits