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
4062d3d3
Commit
4062d3d3
authored
18 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
improve comments
parent
70a28b47
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/dbus_support.py
+2
-3
2 additions, 3 deletions
src/dbus_support.py
src/roster_window.py
+2
-1
2 additions, 1 deletion
src/roster_window.py
with
4 additions
and
4 deletions
src/dbus_support.py
+
2
−
3
View file @
4062d3d3
...
...
@@ -24,9 +24,8 @@ from common import exceptions
try
:
import
dbus
import
dbus.service
# cause dbus 0.35+ doesn't return signal replies without it
import
dbus.glib
supported
=
True
supported
=
True
# does use have D-Bus bindings?
except
ImportError
:
supported
=
False
if
not
os
.
name
==
'
nt
'
:
# only say that to non Windows users
...
...
@@ -34,7 +33,7 @@ except ImportError:
print
_
(
'
D-Bus capabilities of Gajim cannot be used
'
)
class
SessionBus
:
'''
A Singleton for the DBus SessionBus
'''
'''
A Singleton for the D
-
Bus SessionBus
'''
def
__init__
(
self
):
self
.
session_bus
=
None
...
...
This diff is collapsed.
Click to expand it.
src/roster_window.py
+
2
−
1
View file @
4062d3d3
...
...
@@ -2392,7 +2392,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
'''
if enabled is True, we listen to events from music players about
currently played music track, and we update our
status message accordinly
'''
if
not
dbus_support
.
supported
:
# do nothing if we haven't D-Bus running
if
not
dbus_support
.
supported
:
# do nothing if user doesn't have D-Bus bindings
return
if
enabled
:
if
self
.
_music_track_changed_signal
is
None
:
...
...
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