Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philipp Hörist
gajim
Commits
2bbd9664
Commit
2bbd9664
authored
Apr 07, 2022
by
André
Committed by
Philipp Hörist
Apr 07, 2022
Browse files
feat: Use AppIndicator for tray icon on Wayland if available
parent
9e23bf80
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/gtk/status_icon.py
View file @
2bbd9664
...
...
@@ -58,18 +58,15 @@
class
StatusIcon
:
def
__init__
(
self
)
->
None
:
if
app
.
is_display
(
Display
.
WAYLAND
):
self
.
_backend
=
NoneBackend
()
log
.
info
(
'Not supported on Wayland'
)
return
app
.
settings
.
connect_signal
(
'trayicon'
,
self
.
_on_setting_changed
)
if
self
.
_can_use_libindicator
():
app
.
settings
.
connect_signal
(
'trayicon'
,
self
.
_on_setting_changed
)
self
.
_backend
=
AppIndicator
()
log
.
info
(
'Use AppIndicator3 backend'
)
elif
app
.
is_display
(
Display
.
WAYLAND
):
self
.
_backend
=
NoneBackend
()
log
.
info
(
'libappindicator not found or disabled'
)
else
:
app
.
settings
.
connect_signal
(
'trayicon'
,
self
.
_on_setting_changed
)
self
.
_backend
=
GtkStatusIcon
()
log
.
info
(
'Use GtkStatusIcon backend'
)
...
...
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