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
Michel Le Bihan
gajim
Commits
8abacfdb
Commit
8abacfdb
authored
16 years ago
by
js
Browse files
Options
Downloads
Patches
Plain Diff
A few new files were added with the new Gtk+. Update NSIS.
parent
4fdef472
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.nsi
+7
-0
7 additions, 0 deletions
gajim.nsi
src/conversation_textview.py
+10
-8
10 additions, 8 deletions
src/conversation_textview.py
with
17 additions
and
8 deletions
gajim.nsi
+
7
−
0
View file @
8abacfdb
...
...
@@ -201,6 +201,10 @@ Section "Gtk+ 2" SecGtk
File /r "bin\gtk\lib\gtk-2.0\2.10.0\loaders"
SetOutPath "$INSTDIR\bin\gtk\lib"
File /r "bin\gtk\lib\pango"
File "bin\gtk\lib\charset.alias"
SetOutPath "$INSTDIR\bin\gtk\share"
File /r "bin\gtk\share\gtkthemeselector"
File /r "bin\gtk\share\xml"
SectionEnd
SectionGroup $(NAME_Emoticons)
...
...
@@ -508,6 +512,7 @@ Section "Uninstall"
RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0\2.10.0"
RMDir "$INSTDIR\bin\gtk\lib\gtk-2.0"
RMDir /r "$INSTDIR\bin\gtk\lib\pango"
Delete "$INSTDIR\bin\gtk\lib\charset.alias"
RMDir "$INSTDIR\bin\gtk\lib"
RMDir /r "$INSTDIR\bin\gtk\share\locale\de"
RMDir /r "$INSTDIR\bin\gtk\share\locale\en_GB"
...
...
@@ -616,6 +621,8 @@ Section "Uninstall"
RMDir /r "$INSTDIR\bin\gtk\share\themes\Glossy-js"
RMDir /r "$INSTDIR\bin\gtk\share\themes\MS-Windows"
RMDir "$INSTDIR\bin\gtk\share\themes"
RMDir /r "$INSTDIR\bin\gtk\share\gtkthemeselector"
RMDir /r "$INSTDIR\bin\gtk\share\xml"
RMDir "$INSTDIR\bin\gtk\share"
RMDir "$INSTDIR\bin\gtk"
Delete "$INSTDIR\bin\_cairo.pyd"
...
...
This diff is collapsed.
Click to expand it.
src/conversation_textview.py
+
10
−
8
View file @
8abacfdb
...
...
@@ -946,10 +946,17 @@ class ConversationTextview:
special text (emots, links, formatting)
'''
tags
=
[]
use_other_tags
=
True
text_is_valid_uri
=
False
show_ascii_formatting_chars
=
\
gajim
.
config
.
get
(
'
show_ascii_formatting_chars
'
)
buffer
=
self
.
tv
.
get_buffer
()
# Check if we accept this as an uri
schemes
=
gajim
.
config
.
get
(
'
uri_schemes
'
).
split
()
for
scheme
in
schemes
:
if
special_text
.
startswith
(
scheme
+
'
:
'
):
text_is_valid_uri
=
True
possible_emot_ascii_caps
=
special_text
.
upper
()
# emoticons keys are CAPS
if
gajim
.
config
.
get
(
'
emoticons_theme
'
)
and
\
possible_emot_ascii_caps
in
gajim
.
interface
.
emoticons
.
keys
():
...
...
@@ -968,7 +975,8 @@ class ConversationTextview:
# add with possible animation
self
.
tv
.
add_child_at_anchor
(
img
,
anchor
)
elif
special_text
.
startswith
(
'
www.
'
)
or
\
special_text
.
startswith
(
'
ftp.
'
):
special_text
.
startswith
(
'
ftp.
'
)
or
\
text_is_valid_uri
:
tags
.
append
(
'
url
'
)
use_other_tags
=
False
elif
special_text
.
startswith
(
'
mailto:
'
)
or
\
...
...
@@ -1040,13 +1048,7 @@ class ConversationTextview:
buffer
.
insert
(
end_iter
,
special_text
)
use_other_tags
=
False
else
:
# Check if we accept this as an uri
schemes
=
gajim
.
config
.
get
(
'
uri_schemes
'
).
split
()
for
scheme
in
schemes
:
if
special_text
.
startswith
(
scheme
+
'
:
'
):
tags
.
append
(
'
url
'
)
use_other_tags
=
False
# It's not a accepted uri
# It's nothing special
if
use_other_tags
:
end_iter
=
buffer
.
get_end_iter
()
buffer
.
insert_with_tags_by_name
(
end_iter
,
special_text
,
*
other_tags
)
...
...
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