changeset 7f65944380cd in /home/hg/repos/gajim
author: Denis Fomin <fominde(a)gmail.com>
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=7f65944380cd
description: Set gajim-remote to not active by default. Fixes #7454
diffstat:
src/common/config.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 28c252877464 -r 7f65944380cd src/common/config.py
--- a/src/common/config.py Tue Oct 15 09:59:05 2013 +0400
+++ b/src/common/config.py Tue Oct 15 23:56:20 2013 +0400
@@ -191,7 +191,7 @@
'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %s in it where %s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")],
'always_english_wikipedia': [opt_bool, False],
'always_english_wiktionary': [opt_bool, True],
- 'remote_control': [opt_bool, True, _('If checked, Gajim can be controlled remotely using gajim-remote.'), True],
+ 'remote_control': [opt_bool, False, _('If checked, Gajim can be controlled remotely using gajim-remote.'), True],
'networkmanager_support': [opt_bool, True, _('If True, listen to D-Bus signals from NetworkManager and change the status of accounts (provided they do not have listen_to_network_manager set to False and they sync with global status) based upon the status of the network connection.'), True],
'outgoing_chat_state_notifications': [opt_str, 'all', _('Sent chat state notifications. Can be one of all, composing_only, disabled.')],
'displayed_chat_state_notifications': [opt_str, 'all', _('Displayed chat state notifications in chat windows. Can be one of all, composing_only, disabled.')],
changeset 2654ca8eb543 in /home/hg/repos/gajim
author: Denis Fomin <fominde(a)gmail.com>
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=2654ca8eb543
description: Set transient_for for 'Emoticons disabled' warning dialog. See #7185
diffstat:
src/gui_interface.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 38dccffec762 -r 2654ca8eb543 src/gui_interface.py
--- a/src/gui_interface.py Wed Oct 16 00:05:16 2013 +0400
+++ b/src/gui_interface.py Sat Oct 19 12:32:01 2013 +0400
@@ -1989,6 +1989,10 @@
if not emot_theme:
return
+ transient_for = None
+ if 'preferences' in gajim.interface.instances:
+ transient_for = gajim.interface.instances['preferences'].window
+
path = os.path.join(gajim.DATA_DIR, 'emoticons', emot_theme)
if not os.path.exists(path):
# It's maybe a user theme
@@ -1997,7 +2001,8 @@
# theme doesn't exist, disable emoticons
dialogs.WarningDialog(_('Emoticons disabled'),
_('Your configured emoticons theme has not been found, so '
- 'emoticons have been disabled.'))
+ 'emoticons have been disabled.'),
+ transient_for=transient_for)
gajim.config.set('emoticons_theme', '')
return
self._init_emoticons(path, need_reload)
@@ -2021,7 +2026,8 @@
dialogs.WarningDialog(_('Emoticons disabled'),
_('Your configured emoticons theme cannot been loaded. You '
'maybe need to update the format of emoticons.py file. See '
- 'http://trac.gajim.org/wiki/Emoticons for more details.'))
+ 'http://trac.gajim.org/wiki/Emoticons for more details.'),
+ transient_for=transient_for)
if self.emoticons_menu:
self.emoticons_menu.destroy()
self.emoticons_menu = self.prepare_emoticons_menu()
changeset df151a59a964 in /home/hg/repos/gajim
author: Denis Fomin <fominde(a)gmail.com>
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=df151a59a964
description: Disable emoticons if emoticons.py is corrupted. Fixes #7414. Fixes #7513
diffstat:
src/gui_interface.py | 27 +++++++++++++++++++--------
1 files changed, 19 insertions(+), 8 deletions(-)
diffs (52 lines):
diff -r 2654ca8eb543 -r df151a59a964 src/gui_interface.py
--- a/src/gui_interface.py Sat Oct 19 12:32:01 2013 +0400
+++ b/src/gui_interface.py Sat Oct 19 14:06:06 2013 +0400
@@ -1957,14 +1957,17 @@
self.emoticons = dict()
self.emoticons_animations = dict()
- sys.path.append(path)
+ sys.path.insert(0, path)
import emoticons
- if need_reload:
- # we need to reload else that doesn't work when changing emoticon
- # set
- import imp
- imp.reload(emoticons)
- emots = emoticons.emoticons
+ try:
+ if need_reload:
+ # we need to reload else that doesn't work when changing
+ # emoticons set
+ import imp
+ imp.reload(emoticons)
+ emots = emoticons.emoticons
+ except Exception, e:
+ return True
for emot_filename in emots:
emot_file = os.path.join(path, emot_filename)
if not self.image_is_ok(emot_file):
@@ -2005,7 +2008,14 @@
transient_for=transient_for)
gajim.config.set('emoticons_theme', '')
return
- self._init_emoticons(path, need_reload)
+ if self._init_emoticons(path, need_reload):
+ dialogs.WarningDialog(_('Emoticons disabled'),
+ _('Your configured emoticons theme cannot been loaded. You '
+ 'maybe need to update the format of emoticons.py file. See '
+ 'http://trac.gajim.org/wiki/Emoticons for more details.'),
+ transient_for=transient_for)
+ gajim.config.set('emoticons_theme', '')
+ return
if len(self.emoticons) == 0:
# maybe old format of emoticons file, try to convert it
try:
@@ -2028,6 +2038,7 @@
'maybe need to update the format of emoticons.py file. See '
'http://trac.gajim.org/wiki/Emoticons for more details.'),
transient_for=transient_for)
+ gajim.config.set('emoticons_theme', '')
if self.emoticons_menu:
self.emoticons_menu.destroy()
self.emoticons_menu = self.prepare_emoticons_menu()