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
l-n-s
gajim
Commits
2c2e946a
Commit
2c2e946a
authored
7 years ago
by
Philipp Hörist
Committed by
Philipp Hörist
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use icons from IconTheme in HistoryWindow
parent
cb90d469
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/gtkgui_helpers.py
+2
-2
2 additions, 2 deletions
gajim/gtkgui_helpers.py
gajim/history_window.py
+6
-8
6 additions, 8 deletions
gajim/history_window.py
with
8 additions
and
10 deletions
gajim/gtkgui_helpers.py
+
2
−
2
View file @
2c2e946a
...
...
@@ -140,11 +140,11 @@ def get_completion_liststore(entry):
(Pixbuf, Text) rows
"""
completion
=
Gtk
.
EntryCompletion
()
liststore
=
Gtk
.
ListStore
(
GdkPixbuf
.
Pixbuf
,
str
)
liststore
=
Gtk
.
ListStore
(
str
,
str
)
render_pixbuf
=
Gtk
.
CellRendererPixbuf
()
completion
.
pack_start
(
render_pixbuf
,
False
)
completion
.
add_attribute
(
render_pixbuf
,
'
pixbuf
'
,
0
)
completion
.
add_attribute
(
render_pixbuf
,
'
icon_name
'
,
0
)
render_text
=
Gtk
.
CellRendererText
()
completion
.
pack_start
(
render_text
,
True
)
...
...
This diff is collapsed.
Click to expand it.
gajim/history_window.py
+
6
−
8
View file @
2c2e946a
...
...
@@ -169,10 +169,8 @@ class HistoryWindow:
for
account
in
self
.
accounts_seen_online
:
completion_dict
.
update
(
helpers
.
get_contact_dict_for_account
(
account
))
muc_active_img
=
gtkgui_helpers
.
load_icon
(
'
muc_active
'
)
contact_img
=
app
.
interface
.
jabber_state_images
[
'
16
'
][
'
online
'
]
muc_active_pix
=
muc_active_img
.
get_pixbuf
()
contact_pix
=
contact_img
.
get_pixbuf
()
muc_active_icon
=
gtkgui_helpers
.
get_iconset_name_for
(
'
muc-active
'
)
online_icon
=
gtkgui_helpers
.
get_iconset_name_for
(
'
online
'
)
keys
=
list
(
completion_dict
.
keys
())
# Move the actual jid at first so we load history faster
...
...
@@ -204,7 +202,7 @@ class HistoryWindow:
if
app
.
logger
.
jid_is_room_jid
(
completed
)
or
\
app
.
logger
.
jid_is_from_pm
(
completed
):
pix
=
muc_active_
pix
icon
=
muc_active_
icon
if
app
.
logger
.
jid_is_from_pm
(
completed
):
# It's PM. Make it easier to find
room
,
nick
=
app
.
get_room_and_nick_from_fjid
(
completed
)
...
...
@@ -214,11 +212,11 @@ class HistoryWindow:
completed2
=
info_completion2
info_name
=
nick
else
:
pix
=
c
on
tact_pix
icon
=
on
line_icon
if
len
(
completed
)
>
70
:
completed
=
completed
[:
70
]
+
'
[
\u2026
]
'
liststore
.
append
((
pix
,
completed
))
liststore
.
append
((
icon
,
completed
))
self
.
completion_dict
[
key
]
=
(
info_jid
,
info_acc
,
info_name
,
info_completion
)
self
.
completion_dict
[
completed
]
=
(
info_jid
,
info_acc
,
...
...
@@ -226,7 +224,7 @@ class HistoryWindow:
if
completed2
:
if
len
(
completed2
)
>
70
:
completed2
=
completed2
[:
70
]
+
'
[
\u2026
]
'
liststore
.
append
((
pix
,
completed2
))
liststore
.
append
((
icon
,
completed2
))
self
.
completion_dict
[
completed2
]
=
(
info_jid
,
info_acc
,
info_name
,
info_completion2
)
if
key
==
actual_jid
:
...
...
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