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
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
TSRh
gajim
Commits
68c5c9e6
Commit
68c5c9e6
authored
16 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
don't indent status row in systray tooltip. fixes #4171
parent
27e248fb
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
+8
-6
8 additions, 6 deletions
src/tooltips.py
with
8 additions
and
6 deletions
src/tooltips.py
+
8
−
6
View file @
68c5c9e6
...
...
@@ -194,7 +194,8 @@ def get_status_info(self, resource, priority, show, status):
str_status
+=
'
- <i>
'
+
status
+
'
</i>
'
return
str_status
def
add_status_row
(
self
,
file_path
,
show
,
str_status
,
status_time
=
None
,
show_lock
=
False
):
def
add_status_row
(
self
,
file_path
,
show
,
str_status
,
status_time
=
None
,
show_lock
=
False
,
indent
=
True
):
'''
appends a new row with status icon to the table
'''
self
.
current_row
+=
1
state_file
=
show
.
replace
(
'
'
,
'
_
'
)
...
...
@@ -209,8 +210,9 @@ def add_status_row(self, file_path, show, str_status, status_time = None, show_l
break
spacer
=
gtk
.
Label
(
self
.
spacer_label
)
image
.
set_alignment
(
1
,
0.5
)
self
.
table
.
attach
(
spacer
,
1
,
2
,
self
.
current_row
,
self
.
current_row
+
1
,
0
,
0
,
0
,
0
)
if
indent
:
self
.
table
.
attach
(
spacer
,
1
,
2
,
self
.
current_row
,
self
.
current_row
+
1
,
0
,
0
,
0
,
0
)
self
.
table
.
attach
(
image
,
2
,
3
,
self
.
current_row
,
self
.
current_row
+
1
,
gtk
.
FILL
,
gtk
.
FILL
,
2
,
0
)
status_label
=
gtk
.
Label
()
...
...
@@ -253,13 +255,13 @@ def fill_table_with_accounts(self, accounts):
if
message
:
self
.
add_status_row
(
file_path
,
acct
[
'
show
'
],
gobject
.
markup_escape_text
(
acct
[
'
name
'
])
+
\
'
-
'
+
message
,
show_lock
=
show_lock
)
'
-
'
+
message
,
show_lock
=
show_lock
,
indent
=
False
)
else
:
self
.
add_status_row
(
file_path
,
acct
[
'
show
'
],
gobject
.
markup_escape_text
(
acct
[
'
name
'
])
,
show_lock
=
show_lock
)
,
show_lock
=
show_lock
,
indent
=
False
)
for
line
in
acct
[
'
event_lines
'
]:
self
.
add_text_row
(
'
'
+
line
,
2
)
self
.
add_text_row
(
'
'
+
line
,
1
)
def
populate
(
self
,
data
):
self
.
create_window
()
...
...
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