Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Yann Leboulanger
gajim-plugins
Commits
04911ba9
Commit
04911ba9
authored
Jun 07, 2017
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[httpupload] Set parent window correctly Fixes #199
parent
5a6d4d26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
httpupload/httpupload.py
httpupload/httpupload.py
+4
-4
No files found.
httpupload/httpupload.py
View file @
04911ba9
...
...
@@ -350,7 +350,7 @@ class Base(object):
log
.
info
(
"Detected MIME Type of file: "
+
str
(
mime_type
))
progress_messages
=
Queue
(
8
)
event
=
threading
.
Event
()
progress_window
=
ProgressWindow
(
_
(
'Requesting HTTP Upload Slot...'
),
progress_messages
,
self
.
plugin
,
event
)
progress_window
=
ProgressWindow
(
_
(
'Requesting HTTP Upload Slot...'
),
progress_messages
,
self
,
event
)
def
upload_file
(
stanza
):
if
stanza
.
getType
()
==
'error'
:
...
...
@@ -635,13 +635,13 @@ class StreamFileWithProgress(file):
class
ProgressWindow
:
def
__init__
(
self
,
during_text
,
messages_queue
,
plugin
,
event
):
self
.
plugin
=
plugin
def
__init__
(
self
,
during_text
,
messages_queue
,
base
,
event
):
self
.
plugin
=
base
.
plugin
self
.
event
=
event
self
.
xml
=
gtkgui_helpers
.
get_gtk_builder
(
self
.
plugin
.
local_file_path
(
'upload_progress_dialog.ui'
))
self
.
messages_queue
=
messages_queue
self
.
dialog
=
self
.
xml
.
get_object
(
'progress_dialog'
)
self
.
dialog
.
set_transient_for
(
plugin
.
chat_control
.
parent_win
.
window
)
self
.
dialog
.
set_transient_for
(
base
.
chat_control
.
parent_win
.
window
)
self
.
label
=
self
.
xml
.
get_object
(
'label'
)
self
.
label
.
set_markup
(
'<big>'
+
during_text
+
'</big>'
)
self
.
progressbar
=
self
.
xml
.
get_object
(
'progressbar'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment