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
eta
gajim
Commits
32bb3c50
Commit
32bb3c50
authored
19 years ago
by
dkirov
Browse files
Options
Downloads
Patches
Plain Diff
open containing folder in file transfer ok
response
parent
c85fa358
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dialogs.py
+15
-6
15 additions, 6 deletions
src/dialogs.py
src/gajim.py
+1
-1
1 addition, 1 deletion
src/gajim.py
with
16 additions
and
7 deletions
src/dialogs.py
+
15
−
6
View file @
32bb3c50
...
...
@@ -1588,7 +1588,7 @@ class FileTransfersWindow:
renderer
.
set_property
(
'
xalign
'
,
0.
)
renderer
.
set_property
(
'
yalign
'
,
0.
)
col
.
set_resizable
(
True
)
col
.
set_expand
(
True
)
self
.
tree
.
append_column
(
col
)
col
=
gtk
.
TreeViewColumn
(
_
(
'
Progress
'
))
...
...
@@ -1626,8 +1626,18 @@ class FileTransfersWindow:
helpers
.
convert_bytes
(
file_props
[
'
size
'
])
sectext
+=
'
\n\t
'
+
_
(
'
Sender: %s
'
)
%
\
gtkgui_helpers
.
escape_for_pango_markup
(
jid
)
InformationDialog
(
_
(
'
File transfer completed
'
),
sectext
).
get_response
()
self
.
tree
.
get_selection
().
unselect_all
()
dialog
=
HigDialog
(
None
,
_
(
'
File transfer completed
'
),
sectext
,
gtk
.
STOCK_DIALOG_INFO
,
[[
_
(
'
Open containing folder
'
),
gtk
.
RESPONSE_ACCEPT
],
[
gtk
.
STOCK_OK
,
gtk
.
RESPONSE_OK
]])
dialog
.
show_all
()
response
=
dialog
.
run
()
dialog
.
destroy
()
if
response
==
gtk
.
RESPONSE_ACCEPT
:
if
not
file_props
.
has_key
(
'
file-name
'
):
return
(
path
,
file
)
=
os
.
path
.
split
(
file_props
[
'
file-name
'
])
if
os
.
path
.
exists
(
path
)
and
os
.
path
.
isdir
(
path
):
helpers
.
launch_file_manager
(
path
)
self
.
tree
.
get_selection
().
unselect_all
()
def
show_request_error
(
self
,
file_props
):
self
.
window
.
present
()
...
...
@@ -1884,9 +1894,8 @@ _('Connection with peer cannot be established.')).get_response()
self
.
tooltip
.
hide_tooltip
()
def
on_transfers_list_row_activated
(
self
,
widget
,
path
,
col
):
# try to open the file
#FIXME: plz remove this :)
pass
# try to open the containing folder
self
.
on_open_folder_menuitem_activate
(
widget
)
def
is_transfer_paused
(
self
,
file_props
):
if
file_props
.
has_key
(
'
stopped
'
)
and
file_props
[
'
stopped
'
]:
...
...
This diff is collapsed.
Click to expand it.
src/gajim.py
+
1
−
1
View file @
32bb3c50
...
...
@@ -726,7 +726,7 @@ class Interface:
and
gajim
.
config
.
get
(
'
autopopup
'
))
or
\
gajim
.
config
.
get
(
'
autopopupaway
'
):
if
errno
==
-
4
:
self
.
windows
[
'
file_transfers
'
].
show_stopped
(
file_props
)
self
.
windows
[
'
file_transfers
'
].
show_stopped
(
jid
,
file_props
)
else
:
self
.
windows
[
'
file_transfers
'
].
show_request_error
(
file_props
)
...
...
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