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
b5c94b71
Commit
b5c94b71
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
draw avatar in roster tooltip. Fixes #1223
parent
c49a993e
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
+9
-0
9 additions, 0 deletions
src/tooltips.py
with
9 additions
and
0 deletions
src/tooltips.py
+
9
−
0
View file @
b5c94b71
...
...
@@ -365,6 +365,7 @@ class RosterTooltip(NotificationAreaTooltip):
self
.
image
.
set_alignment
(
0
,
0
)
# padding is independent of the total length and better than alignment
self
.
image
.
set_padding
(
1
,
2
)
self
.
avatar_image
=
gtk
.
Image
()
NotificationAreaTooltip
.
__init__
(
self
)
def
populate
(
self
,
contacts
):
...
...
@@ -459,9 +460,17 @@ class RosterTooltip(NotificationAreaTooltip):
# escape markup entities.
info
+=
'
-
'
+
gtkgui_helpers
.
escape_for_pango_markup
(
status
)
for
type_
in
(
'
jpeg
'
,
'
png
'
):
file
=
os
.
path
.
join
(
gajim
.
AVATAR_PATH
,
prim_contact
.
jid
+
'
.
'
+
type_
)
if
os
.
path
.
exists
(
file
):
self
.
avatar_image
.
set_from_file
(
file
)
break
else
:
self
.
avatar_image
.
set_from_pixbuf
(
None
)
self
.
text_label
.
set_markup
(
info
)
self
.
hbox
.
pack_start
(
self
.
image
,
False
,
False
)
self
.
hbox
.
pack_start
(
self
.
table
,
True
,
True
)
self
.
hbox
.
pack_start
(
self
.
avatar_image
,
False
,
False
)
self
.
win
.
add
(
self
.
hbox
)
class
FileTransfersTooltip
(
BaseTooltip
):
...
...
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