Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3be1c209 by André Apitzsch at 2017-09-16T12:07:31+02:00
Move data files to module
- - - - -
0080c610 by André Apitzsch at 2017-09-16T12:18:22+02:00
Install data to new location
- - - - -
cf61eac0 by Philipp Hörist at 2017-09-16T16:34:45+02:00
Merge branch 'moveData' into 'master'
Move data files to module
See merge request !132
- - - - -
30 changed files:
- autogen.sh
- configure.ac
- data/Makefile.am
- − data/emoticons/noto-emoticons/png/u1f319.png
- − data/emoticons/noto-emoticons/png/u1f31a.png
- − data/emoticons/noto-emoticons/png/u1f31c.png
- − data/emoticons/noto-emoticons/png/u1f31d.png
- − data/emoticons/noto-emoticons/png/u1f31e.png
- − data/emoticons/noto-emoticons/png/u1f31f.png
- − data/emoticons/noto-emoticons/png/u1f320.png
- − data/emoticons/noto-emoticons/png/u1f321.png
- − data/emoticons/noto-emoticons/png/u1f324.png
- − data/emoticons/noto-emoticons/png/u1f325.png
- − data/emoticons/noto-emoticons/png/u1f326.png
- − data/emoticons/noto-emoticons/png/u1f327.png
- − data/emoticons/noto-emoticons/png/u1f328.png
- − data/emoticons/noto-emoticons/png/u1f329.png
- − data/emoticons/noto-emoticons/png/u1f32a.png
- − data/emoticons/noto-emoticons/png/u1f32b.png
- − data/emoticons/noto-emoticons/png/u1f32c.png
- − data/emoticons/noto-emoticons/png/u1f32d.png
- − data/emoticons/noto-emoticons/png/u1f32e.png
- − data/emoticons/noto-emoticons/png/u1f32f.png
- − data/emoticons/noto-emoticons/png/u1f330.png
- − data/emoticons/noto-emoticons/png/u1f331.png
- − data/emoticons/noto-emoticons/png/u1f332.png
- − data/emoticons/noto-emoticons/png/u1f333.png
- − data/emoticons/noto-emoticons/png/u1f334.png
- − data/emoticons/noto-emoticons/png/u1f335.png
- − data/emoticons/noto-emoticons/png/u1f336.png
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/2d8def8c1bf49fabab975dfd16748b7b1…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/2d8def8c1bf49fabab975dfd16748b7b1…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
41b977b9 by Philipp Hörist at 2017-09-15T23:22:47+02:00
Add option to disable ascii emoticons
- - - - -
3 changed files:
- gajim/common/config.py
- gajim/emoticons.py
- gajim/gui_interface.py
Changes:
=====================================
gajim/common/config.py
=====================================
--- a/gajim/common/config.py
+++ b/gajim/common/config.py
@@ -124,6 +124,7 @@ class Config:
'print_time': [ opt_str, 'always', _('\'always\' - print time for every message.\n\'sometimes\' - print time every print_ichat_every_foo_minutes minute.\n\'never\' - never print time.')],
'print_time_fuzzy': [ opt_int, 0, _('Print time in chats using Fuzzy Clock. Value of fuzziness from 1 to 4, or 0 to disable fuzzyclock. 1 is the most precise clock, 4 the least precise one. This is used only if print_time is \'sometimes\'.') ],
'emoticons_theme': [opt_str, 'noto-emoticons', '', True ],
+ 'ascii_emoticons': [opt_bool, True, _('Enable ASCII emoticons'), True],
'ascii_formatting': [ opt_bool, True,
_('Treat * / _ pairs as possible formatting characters.'), True],
'show_ascii_formatting_chars': [ opt_bool, True, _('If True, do not '
=====================================
gajim/emoticons.py
=====================================
--- a/gajim/emoticons.py
+++ b/gajim/emoticons.py
@@ -59,7 +59,7 @@ class SubPixbuf:
return subpixbuf
-def load(path):
+def load(path, ascii_emoticons):
module_name = 'emoticons_theme.py'
theme_path = os.path.join(path, module_name)
if sys.platform == 'win32' and not os.path.exists(theme_path):
@@ -87,6 +87,12 @@ def load(path):
def add_emoticon(codepoint_, sub, mod_list=None):
pix = sub.get_pixbuf()
for alternate in codepoint_:
+ if not ascii_emoticons:
+ try:
+ alternate.encode('ascii')
+ continue
+ except UnicodeEncodeError:
+ pass
codepoints[alternate] = pix
if pix not in pixbufs:
pixbufs[pix] = alternate
=====================================
gajim/gui_interface.py
=====================================
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -1925,6 +1925,7 @@ class Interface:
def init_emoticons(self):
emot_theme = app.config.get('emoticons_theme')
+ ascii_emoticons = app.config.get('ascii_emoticons')
if not emot_theme:
return
@@ -1944,7 +1945,7 @@ class Interface:
transient_for=transient_for)
app.config.set('emoticons_theme', '')
return
- if not emoticons.load(path):
+ if not emoticons.load(path, ascii_emoticons):
dialogs.WarningDialog(
_('Emoticons disabled'),
_('Your configured emoticons theme could not be loaded.'
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/41b977b91491b9acdb672cebc81081aa4b…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/41b977b91491b9acdb672cebc81081aa4b…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
f569084b by Yann Leboulanger at 2017-09-07T18:03:20+02:00
fix XDG path in man pages. Fixes #8507
- - - - -
2 changed files:
- data/gajim-history-manager.1
- data/gajim.1
Changes:
=====================================
data/gajim-history-manager.1
=====================================
--- a/data/gajim-history-manager.1
+++ b/data/gajim-history-manager.1
@@ -27,7 +27,7 @@ Where to look for logs file
.El
.Sh FILES
.Bl -tag -width Ds
-.It $XDG_DATA_DIR/gajim/logs.db
+.It $XDG_DATA_HOME/gajim/logs.db
The history database log file used when
.Op Fl c
is not specified.
=====================================
data/gajim.1
=====================================
--- a/data/gajim.1
+++ b/data/gajim.1
@@ -66,19 +66,19 @@ Where to look for configuration files
.El
.Sh FILES
.Bl -tag -width Ds
-.It $XDG_CACHE_DIR/gajim/cache.db
+.It $XDG_CACHE_HOME/gajim/cache.db
Cache database file of transports, caps, roster entry, and roster group.
-.It $XDG_CACHE_DIR/gajim/avatars/
+.It $XDG_CACHE_HOME/gajim/avatars/
Cache directory of avatars.
-.It $XDG_CACHE_DIR/gajim/vcards/
+.It $XDG_CACHE_HOME/gajim/vcards/
Cache directory of vCards (virtual cards).
-.It $XDG_CONFIG_DIR/gajim/
+.It $XDG_CONFIG_HOME/gajim/
The config-path used when
.Op Fl c
is not specified.
-.It $XDG_DATA_DIR/gajim/certs/
+.It $XDG_DATA_HOME/gajim/certs/
Directory where certificates are stored.
-.It $XDG_DATA_DIR/gajim/logs.db
+.It $XDG_DATA_HOME/gajim/logs.db
The history database log file.
For more information on database logs see
<https://dev.gajim.org/gajim/gajim/wikis/development/LogsDatabase>.
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f569084b2da324b928720ba40029e187ad…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f569084b2da324b928720ba40029e187ad…
You're receiving this email because of your account on dev.gajim.org.