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
031d10f3
Commit
031d10f3
authored
18 years ago
by
jimpp
Browse files
Options
Downloads
Patches
Plain Diff
gc-roster-tooltip : Remove horizontal separator
gc-tooltip : If date==today, show only "Since %hour" instead of full date
parent
37c08ee0
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
-10
8 additions, 10 deletions
src/tooltips.py
with
8 additions
and
10 deletions
src/tooltips.py
+
8
−
10
View file @
031d10f3
...
...
@@ -408,13 +408,6 @@ class GCTooltip(BaseTooltip):
while
properties
:
property
=
properties
.
pop
(
0
)
vcard_current_row
+=
1
if
vcard_current_row
==
3
and
not
status_message_present
or
\
vcard_current_row
==
4
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
,
\
gtk
.
FILL
,
vertical_fill
,
0
)
vcard_current_row
+=
1
vertical_fill
=
gtk
.
FILL
if
not
properties
:
vertical_fill
|=
gtk
.
EXPAND
...
...
@@ -564,9 +557,14 @@ class RosterTooltip(NotificationAreaTooltip):
text
=
_
(
'
Last status on %s
'
)
else
:
text
=
_
(
'
Since %s
'
)
# time.strftime returns locale encoded string
local_time
=
time
.
strftime
(
'
%c
'
,
contact
.
last_status_time
)
if
time
.
strftime
(
'
%j
'
,
time
.
localtime
())
==
\
time
.
strftime
(
'
%j
'
,
contact
.
last_status_time
):
# it's today, show only the locale hour representation
local_time
=
time
.
strftime
(
'
%X
'
,
contact
.
last_status_time
)
else
:
# time.strftime returns locale encoded string
local_time
=
time
.
strftime
(
'
%c
'
,
contact
.
last_status_time
)
local_time
=
local_time
.
decode
(
locale
.
getpreferredencoding
())
text
=
text
%
local_time
properties
.
append
((
'
<span style=
"
italic
"
>%s</span>
'
%
text
,
None
))
...
...
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