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
f6e75472
Commit
f6e75472
authored
7 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Differentiate upper/lower case string emojis
parent
1b4e856d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/conversation_textview.py
+1
-2
1 addition, 2 deletions
gajim/conversation_textview.py
gajim/emoticons.py
+2
-2
2 additions, 2 deletions
gajim/emoticons.py
with
3 additions
and
4 deletions
gajim/conversation_textview.py
+
1
−
2
View file @
f6e75472
...
...
@@ -918,13 +918,12 @@ class ConversationTextview(GObject.GObject):
if
special_text
.
startswith
(
scheme
):
text_is_valid_uri
=
True
possible_emot_ascii_caps
=
special_text
.
upper
()
# emoticons keys are CAPS
if
iter_
:
end_iter
=
iter_
else
:
end_iter
=
buffer_
.
get_end_iter
()
pixbuf
=
emoticons
.
get_pixbuf
(
possible_emot_ascii_caps
)
pixbuf
=
emoticons
.
get_pixbuf
(
special_text
)
if
app
.
config
.
get
(
'
emoticons_theme
'
)
and
pixbuf
and
graphics
:
# it's an emoticon
anchor
=
buffer_
.
create_child_anchor
(
end_iter
)
...
...
This diff is collapsed.
Click to expand it.
gajim/emoticons.py
+
2
−
2
View file @
f6e75472
...
...
@@ -87,9 +87,9 @@ def load(path):
def
add_emoticon
(
codepoint_
,
sub
,
mod_list
=
None
):
pix
=
sub
.
get_pixbuf
()
for
alternate
in
codepoint_
:
codepoints
[
alternate
.
upper
()
]
=
pix
codepoints
[
alternate
]
=
pix
if
pix
not
in
pixbufs
:
pixbufs
[
pix
]
=
alternate
.
upper
()
pixbufs
[
pix
]
=
alternate
if
mod_list
is
not
None
:
mod_list
.
append
(
pix
)
else
:
...
...
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