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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Peter Shkenev
gajim
Commits
6840f97c
Commit
6840f97c
authored
19 years ago
by
nicfit
Browse files
Options
Downloads
Patches
Plain Diff
Keep name banner up to date with chatstate info.
parent
1c890614
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/tabbed_chat_window.py
+3
-3
3 additions, 3 deletions
src/tabbed_chat_window.py
with
3 additions
and
3 deletions
src/tabbed_chat_window.py
+
3
−
3
View file @
6840f97c
...
...
@@ -4,6 +4,7 @@
## - Yann Le Boulanger <asterix@lagaule.org>
## - Vincent Hanquez <tab@snarc.org>
## - Nikos Kouremenos <kourem@gmail.com>
## - Travis Shirk <travis@pobox.com>
##
## Copyright (C) 2003-2005 Gajim Team
##
...
...
@@ -225,7 +226,7 @@ def draw_widgets(self, contact):
# add the fat line at the top
self
.
draw_name_banner
(
contact
)
def
draw_name_banner
(
self
,
contact
):
def
draw_name_banner
(
self
,
contact
,
chatstate
=
None
):
'''
Draw the fat line at the top of the window that
houses the status icon, name, jid, and avatar
'''
# this is the text for the big brown bar
...
...
@@ -253,7 +254,6 @@ def draw_name_banner(self, contact):
st
=
gajim
.
config
.
get
(
'
chat_state_notifications
'
)
chatstate
=
contact
.
chatstate
if
chatstate
and
st
in
(
'
composing_only
'
,
'
all
'
):
if
st
==
'
all
'
:
chatstate
=
helpers
.
get_uf_chatstate
(
chatstate
)
...
...
@@ -493,7 +493,7 @@ def new_tab(self, contact):
def
handle_incoming_chatstate
(
self
,
account
,
jid
,
chatstate
):
'''
handle incoming chatstate that jid SENT TO us
'''
contact
=
gajim
.
get_first_contact_instance_from_jid
(
account
,
jid
)
self
.
draw_name_banner
(
contact
)
self
.
draw_name_banner
(
contact
,
chatstate
)
# update chatstate in tab for this chat
self
.
redraw_tab
(
contact
.
jid
,
chatstate
)
...
...
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