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
dcbe3e56
Commit
dcbe3e56
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
when we click on systray, do not hide roster, just move it. Fixes #2403
parent
3abc8a02
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/gtkgui_helpers.py
+3
-1
3 additions, 1 deletion
src/gtkgui_helpers.py
src/systray.py
+4
-4
4 additions, 4 deletions
src/systray.py
with
7 additions
and
5 deletions
src/gtkgui_helpers.py
+
3
−
1
View file @
dcbe3e56
...
...
@@ -390,7 +390,7 @@ def possibly_move_window_in_current_desktop(window):
current virtual desktop
window is GTK window
'''
if
os
.
name
==
'
nt
'
:
return
return
False
root_window
=
gtk
.
gdk
.
screen_get_default
().
get_root_window
()
# current user's vd
...
...
@@ -406,6 +406,8 @@ def possibly_move_window_in_current_desktop(window):
# we are in another VD that the window was
# so show it in current VD
window
.
present
()
return
True
return
False
def
file_is_locked
(
path_to_file
):
'''
returns True if file is locked (WINDOWS ONLY)
'''
...
...
This diff is collapsed.
Click to expand it.
src/systray.py
+
4
−
4
View file @
dcbe3e56
...
...
@@ -253,11 +253,11 @@ class Systray:
if
len
(
gajim
.
events
.
get_systray_events
())
==
0
:
# no pending events, so toggle visible/hidden for roster window
if
win
.
get_property
(
'
visible
'
):
# visible in ANY virtual desktop?
win
.
hide
()
# we hide it from VD that was visible in
# but we could be in another VD right now. eg vd2
# and we want not only to hide it in vd1 but also show it in vd2
gtkgui_helpers
.
possibly_move_window_in_current_desktop
(
win
)
# we could be in another VD right now. eg vd2
# and we want to show it in vd2
if
not
gtkgui_helpers
.
possibly_move_window_in_current_desktop
(
win
):
win
.
hide
()
# else we hide it from VD that was visible in
else
:
win
.
present
()
else
:
...
...
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