Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-08-16 00:20:13 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-08-16 00:20:13 +0400
commitbd11f5f7a7566ece0056ea5d4709d351955cd337 (patch)
treea80ea5604f54ab20dcd833350c78eedcf6354f3f /src/profile_window.py
parenta0e1f75bc5328865ae57e884321aee2eb2959124 (diff)
show error dialog of profile window transient for profile window. see #7185
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index 823698631..0b0f5b051 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -143,7 +143,8 @@ class ProfileWindow:
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:
@@ -159,7 +160,8 @@ class ProfileWindow:
# 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
@@ -232,7 +234,7 @@ class ProfileWindow:
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)
gobject.idle_add(lambda: widget.grab_focus())
return True
@@ -368,7 +370,7 @@ class ProfileWindow:
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 = ''
@@ -408,7 +410,7 @@ class ProfileWindow:
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()