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
Erik Huelsmann
gajim
Commits
a6f9f83f
Commit
a6f9f83f
authored
19 years ago
by
dkirov
Browse files
Options
Downloads
Patches
Plain Diff
fixed "Pan Taduesz; Ksiega I" problem
parent
830f414b
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/dialogs.py
+12
-2
12 additions, 2 deletions
src/dialogs.py
with
12 additions
and
2 deletions
src/dialogs.py
+
12
−
2
View file @
a6f9f83f
...
...
@@ -623,9 +623,17 @@ class StatusTable:
if
status
:
status
=
status
.
strip
()
if
status
!=
''
:
status
=
self
.
strip_text
(
status
,
50
)
str_status
+=
'
-
'
+
status
return
gtkgui_helpers
.
escape_for_pango_markup
(
str_status
)
# "Pan Taduesz; Ksiega I" problem, reported by koorek
def
strip_text
(
self
,
text
,
max_length
):
text
=
text
.
strip
()
if
len
(
text
)
>
max_length
:
text
=
text
[:
max_length
-
3
]
+
'
...
'
return
text
def
add_status_row
(
self
,
file_path
,
show
,
str_status
):
'''
appends a new row with status icon to the table
'''
self
.
current_row
+=
1
...
...
@@ -700,9 +708,11 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
iconset
=
'
sun
'
file_path
=
os
.
path
.
join
(
gajim
.
DATA_DIR
,
'
iconsets
'
,
iconset
,
'
16x16
'
)
for
acct
in
accounts
:
mesage
=
gtkgui_helpers
.
escape_for_pango_markup
(
acct
[
'
message
'
])
mesage
=
self
.
strip_text
(
mesage
,
50
)
self
.
add_status_row
(
file_path
,
acct
[
'
show
'
],
'
<span weight=
"
bold
"
>
'
+
gtkgui_helpers
.
escape_for_pango_markup
(
acct
[
'
name
'
])
+
'
</span>
'
+
'
-
'
+
gtkgui_helpers
.
escape_for_pango_markup
(
acct
[
'
mes
s
age
'
])
)
+
'
-
'
+
mesage
)
elif
len
(
accounts
)
==
1
:
text
=
_
(
'
Gajim - %s
'
)
%
accounts
[
0
][
'
status_line
'
]
...
...
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