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
Weblate
gajim
Commits
2d23b938
Commit
2d23b938
authored
14 years ago
by
Alexander Cherniuk
Browse files
Options
Downloads
Patches
Plain Diff
Minor reimplementation the /audio and /video commands
parent
d9c7fca2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/command_system/implementation/standard.py
+8
-10
8 additions, 10 deletions
src/command_system/implementation/standard.py
with
8 additions
and
10 deletions
src/command_system/implementation/standard.py
+
8
−
10
View file @
2d23b938
...
...
@@ -198,22 +198,20 @@ class StandardCommonChatCommands(CommandContainer):
def
audio
(
self
):
if
not
self
.
audio_available
:
raise
CommandError
(
_
(
"
Audio sessions are not available
"
))
else
:
# A state of an audio session is toggled by inverting a state of the
# appropriate button.
state
=
self
.
_audio_button
.
get_active
()
self
.
_audio_button
.
set_active
(
not
state
)
# An audio session is toggled by inverting the state of the
# appropriate button.
state
=
self
.
_audio_button
.
get_active
()
self
.
_audio_button
.
set_active
(
not
state
)
@command
@doc
(
_
(
"
Toggle video session
"
))
def
video
(
self
):
if
not
self
.
video_available
:
raise
CommandError
(
_
(
"
Video sessions are not available
"
))
else
:
# A state of a video session is toggled by inverting a state of the
# appropriate button.
state
=
self
.
_video_button
.
get_active
()
self
.
_video_button
.
set_active
(
not
state
)
# A video session is toggled by inverting the state of the
# appropriate button.
state
=
self
.
_video_button
.
get_active
()
self
.
_video_button
.
set_active
(
not
state
)
class
StandardChatCommands
(
CommandContainer
):
"""
...
...
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