Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
bd11f5f7
Commit
bd11f5f7
authored
11 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
show error dialog of profile window transient for profile window. see #7185
parent
a0e1f75b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/profile_window.py
+7
-5
7 additions, 5 deletions
src/profile_window.py
with
7 additions
and
5 deletions
src/profile_window.py
+
7
−
5
View file @
bd11f5f7
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment