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
f4a15a1d
Commit
f4a15a1d
authored
18 years ago
by
jimpp
Browse files
Options
Downloads
Patches
Plain Diff
gc-roster-tooltip : Status message in italic, in a new line after status itself
parent
00f00f3d
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/tooltips.py
+13
-7
13 additions, 7 deletions
src/tooltips.py
with
13 additions
and
7 deletions
src/tooltips.py
+
13
−
7
View file @
f4a15a1d
...
...
@@ -364,7 +364,7 @@ class GCTooltip(BaseTooltip):
vcard_table
.
set_homogeneous
(
False
)
vcard_current_row
=
1
properties
=
[]
status_message_present
=
False
nick_markup
=
'
<span weight=
"
bold
"
>
'
+
\
gtkgui_helpers
.
escape_for_pango_markup
(
contact
.
get_shown_name
())
\
...
...
@@ -373,13 +373,18 @@ class GCTooltip(BaseTooltip):
# status :
show
=
helpers
.
get_uf_show
(
contact
.
show
)
properties
.
append
((
show
,
None
))
#status message :
if
contact
.
status
:
status
=
contact
.
status
.
strip
()
if
status
!=
''
:
status
_message
=
contact
.
status
.
strip
()
if
status
_message
!=
''
:
# escape markup entities
status
=
gtkgui_helpers
.
reduce_chars_newlines
(
status
,
200
,
5
)
show
+=
'
-
'
+
gtkgui_helpers
.
escape_for_pango_markup
(
status
)
properties
.
append
((
show
,
None
))
status_message
=
gtkgui_helpers
.
reduce_chars_newlines
(
status_message
,
200
,
5
)
status_message
=
'
<span style=
"
italic
"
>
'
+
\
gtkgui_helpers
.
escape_for_pango_markup
(
status_message
)
+
'
</span>
'
properties
.
append
((
status_message
,
None
))
status_message_present
=
True
if
contact
.
jid
.
strip
()
!=
''
:
properties
.
append
((
_
(
'
JID:
'
),
contact
.
jid
))
...
...
@@ -406,7 +411,8 @@ class GCTooltip(BaseTooltip):
while
properties
:
property
=
properties
.
pop
(
0
)
vcard_current_row
+=
1
if
vcard_current_row
==
4
:
if
vcard_current_row
==
4
and
not
status_message_present
or
\
vcard_current_row
==
5
and
status_message_present
:
# horizontal separator after status, if something after
h_separator
=
gtk
.
HSeparator
()
vcard_table
.
attach
(
h_separator
,
1
,
3
,
vcard_current_row
,
vcard_current_row
+
1
,
\
...
...
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