Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b182ca81 by lovetox at 2020-07-31T20:25:32+02:00
Remove unused config values
- - - - -
1 changed file:
- gajim/common/config.py
Changes:
=====================================
gajim/common/config.py
=====================================
@@ -104,7 +104,6 @@ class Config:
'remove */_ . So *abc* will be bold but with * * not removed.')],
'sounds_on': [opt_bool, True],
'gc_refer_to_nick_char': [opt_str, ',', _('Character to add after nickname when using nickname completion (tab) in group chat.')],
- 'gc_proposed_nick_char': [opt_str, '_', _('Character to propose to add after desired nickname when nickname is already used in group chat.')],
'msgwin-max-state': [opt_bool, False],
'msgwin-x-position': [opt_int, -1], # Default is to let the window manager decide
'msgwin-y-position': [opt_int, -1], # Default is to let the window manager decide
@@ -144,7 +143,6 @@ class Config:
'change_roster_title': [opt_bool, True, _('If enabled, Gajim will add * and [n] in contact list window title.')],
'restore_lines': [opt_int, 10, _('Number of messages from chat history to be restored when a chat tab/window is reopened.')],
'restore_timeout': [opt_int, -1, _('How far back in time (minutes) chat history is restored. -1 means no limit.')],
- 'muc_autorejoin_timeout': [opt_int, 1, _('How many seconds to wait before trying to automatically rejoin a group chat you were disconnected from. Set to 0 to disable automatic rejoining.')],
'send_on_ctrl_enter': [opt_bool, False, _('Send message on Ctrl+Enter and make a new line with Enter.')],
'last_roster_visible': [opt_bool, True],
'key_up_lines': [opt_int, 25, _('How many lines to store for Ctrl+KeyUP (previously sent messages).')],
@@ -222,7 +220,6 @@ class Config:
'audio_output_volume': [opt_int, 50],
'use_stun_server': [opt_bool, False, _('If enabled, Gajim will try to use a STUN server when using Jingle. The one in \'stun_server\' option, or the one given by the XMPP server.')],
'stun_server': [opt_str, '', _('STUN server to use when using Jingle')],
- 'show_affiliation_in_groupchat': [opt_bool, True, _('If enabled, Gajim will show affiliation of group chat participants by adding a colored square to the status icon.')],
'global_proxy': [opt_str, '', _('Proxy used for all outgoing connections if the account does not have a specific proxy configured.')],
'ignore_incoming_attention': [opt_bool, False, _('If enabled, Gajim will ignore incoming attention requests (\'wizz\').')],
'remember_opened_chat_controls': [opt_bool, True, _('If enabled, Gajim will reopen chat windows that were opened last time Gajim was closed.')],
@@ -289,7 +286,6 @@ class Config:
'sync_with_global_status': [opt_bool, False, ],
'no_log_for': [opt_str, '', _('List of XMPP Addresses (space separated) for which you do not want to store chat history. You can also add the name of an account to disable storing chat history for this account.')],
'attached_gpg_keys': [opt_str, ''],
- 'time_for_ping_alive_answer': [opt_int, 60, _('How many seconds to wait for the answer of a ping alive packet before trying to reconnect.')],
'http_auth': [opt_str, 'ask'], # yes, no, ask
# proxy65 for FT
'file_transfer_proxies': [opt_str, ''],
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/b182ca811bf17f7caff435a49b1c6705…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/b182ca811bf17f7caff435a49b1c6705…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ea229746 by lovetox at 2020-07-31T17:12:33+02:00
Remote: Remove possibility to adjust settings via DBus
- - - - -
3 changed files:
- data/gajim-remote.1
- gajim/gajim_remote.py
- gajim/remote_control.py
Changes:
=====================================
data/gajim-remote.1
=====================================
@@ -37,14 +37,6 @@ Shows a help on specific command
Prints a list of registered accounts
.Ss list_contacts Bq account
Prints a list of all contacts in the roster. Each contact appears on a separate line
-.Ss prefs_del Aq key
-Deletes a preference item
-.Ss prefs_list
-Lists all preferences and their values
-.Ss prefs_put Aq key=value
-Sets value of 'key' to 'value'.
-.Ss prefs_store
-Writes the current state of Gajim preferences to the .config file
.Ss remove_contact Ao jid Ac Bq account
Removes contact from roster
.Ss send_chat_message Ao jid Ac Ao message Ac Bo PGP key Bc Bq account
=====================================
gajim/gajim_remote.py
=====================================
@@ -164,28 +164,6 @@ class GajimRemote:
'account'), False)
]
],
- 'prefs_list': [
- _('Lists all preferences and their values'),
- []
- ],
- 'prefs_put': [
- _('Sets value of \'key\' to \'value\'.'),
- [
- (_('key=value'), _('\'key\' is the name of the preference, '
- '\'value\' is what to set it to'), True)
- ]
- ],
- 'prefs_del': [
- _('Deletes a preference item'),
- [
- (_('key'), _('name of the preference to be deleted'), True)
- ]
- ],
- 'prefs_store': [
- _('Writes the current state of Gajim preferences to the .config '
- 'file'),
- []
- ],
'remove_contact': [
_('Removes contact from contact list'),
[
=====================================
gajim/remote_control.py
=====================================
@@ -165,20 +165,6 @@ class GajimRemote(Server):
<arg name='message' type='s' />
<arg direction='out' type='b' />
</method>
- <method name='prefs_del'>
- <arg name='key' type='s' />
- <arg direction='out' type='b' />
- </method>
- <method name='prefs_list'>
- <arg direction='out' type='a{ss}' />
- </method>
- <method name='prefs_put'>
- <arg name='key' type='s' />
- <arg direction='out' type='b' />
- </method>
- <method name='prefs_store'>
- <arg direction='out' type='b' />
- </method>
<method name='remove_contact'>
<arg name='jid' type='s' />
<arg name='account' type='s' />
@@ -739,53 +725,6 @@ class GajimRemote(Server):
result.append(item)
return result
- def prefs_list(self):
- prefs_dict = {}
-
- def get_prefs(data, name, path, value):
- if value is None:
- return
- key = ''
- if path is not None:
- for node in path:
- key += node + '#'
- key += name
- prefs_dict[key] = str(value)
-
- app.config.foreach(get_prefs)
- return prefs_dict
-
- def prefs_store(self):
- try:
- app.interface.save_config()
- except Exception:
- return False
- return True
-
- def prefs_del(self, key):
- if not key:
- return False
- key_path = key.split('#', 2)
- if len(key_path) != 3:
- return False
- if key_path[2] == '*':
- app.config.del_per(key_path[0], key_path[1])
- else:
- app.config.del_per(key_path[0], key_path[1], key_path[2])
- return True
-
- def prefs_put(self, key):
- if not key:
- return False
- key_path = key.split('#', 2)
- if len(key_path) < 3:
- subname, value = key.split('=', 1)
- app.config.set(subname, value)
- return True
- subname, value = key_path[2].split('=', 1)
- app.config.set_per(key_path[0], key_path[1], subname, value)
- return True
-
def add_contact(self, jid, account):
if account:
if app.account_is_available(account):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ea229746f58897b478bf642994876f2b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ea229746f58897b478bf642994876f2b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
90cf076a by lovetox at 2020-07-31T16:35:30+02:00
Don't assume Local account will be always there
- - - - -
1 changed file:
- gajim/common/app.py
Changes:
=====================================
gajim/common/app.py
=====================================
@@ -396,8 +396,9 @@ def get_accounts_sorted():
'''
account_list = config.get_per('accounts')
account_list.sort(key=str.lower)
- account_list.remove('Local')
- account_list.insert(0, 'Local')
+ if 'Local' in account_list:
+ account_list.remove('Local')
+ account_list.insert(0, 'Local')
return account_list
def get_enabled_accounts_with_labels(exclude_local=True, connected_only=False,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/90cf076abc860cf22a78e5a59f2d75ed…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/90cf076abc860cf22a78e5a59f2d75ed…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
bc2b5afd by lovetox at 2020-07-31T15:49:12+02:00
Preferences: Don’t translate id column
- - - - -
1 changed file:
- gajim/data/gui/preferences_window.ui
Changes:
=====================================
gajim/data/gui/preferences_window.ui
=====================================
@@ -81,7 +81,7 @@
</row>
<row>
<col id="0" translatable="yes">Detached contact list with chat grouped by account</col>
- <col id="1" translatable="yes">peracct</col>
+ <col id="1">peracct</col>
</row>
<row>
<col id="0" translatable="yes">Detached contact list with chat grouped by type</col>
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/bc2b5afdf07914d8aea13efb59e3fbf3…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/bc2b5afdf07914d8aea13efb59e3fbf3…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e08b6467 by lovetox at 2020-07-31T15:21:47+02:00
Util: Don’t depend on config constant
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -256,7 +256,7 @@ def get_icon_name(name: str,
iconset = app.config.get('iconset')
if not iconset:
- iconset = app.config.DEFAULT_ICONSET
+ iconset = 'dcraven'
return '%s-%s' % (iconset, name)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e08b64673cad525aa1e9b786eec66b7f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e08b64673cad525aa1e9b786eec66b7f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e503523c by lovetox at 2020-07-31T14:00:49+02:00
Preferences: Don't use get_options()
This is in preparation of migrating the config module
- - - - -
1 changed file:
- gajim/gtk/preferences.py
Changes:
=====================================
gajim/gtk/preferences.py
=====================================
@@ -161,7 +161,8 @@ class Preferences(Gtk.ApplicationWindow):
# Group chat settings
threshold_model = self._ui.sync_threshold_combobox.get_model()
- days = app.config.get_options('threshold_options', return_type=int)
+ options = app.config.get('threshold_options').split(',')
+ days = [int(option.strip()) for option in options]
for day in days:
if day == 0:
label = _('No threshold')
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e503523cad8e611df0f510c9c9dcdc19…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e503523cad8e611df0f510c9c9dcdc19…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
636effbc by André Apitzsch at 2020-07-29T17:53:03+02:00
Fix warning 'Theme Standard not found, fallback to default'
when new config is generated
- - - - -
1 changed file:
- gajim/common/config.py
Changes:
=====================================
gajim/common/config.py
=====================================
@@ -91,7 +91,7 @@ class Config:
'iconset': [opt_str, DEFAULT_ICONSET, '', True],
'use_transports_iconsets': [opt_bool, True, '', True],
'collapsed_rows': [opt_str, '', _('List of rows (accounts and groups) that are collapsed (space separated).'), True],
- 'roster_theme': [opt_str, _('default'), '', True],
+ 'roster_theme': [opt_str, 'default', '', True],
'mergeaccounts': [opt_bool, False, '', True],
'sort_by_show_in_roster': [opt_bool, True, '', True],
'sort_by_show_in_muc': [opt_bool, False, '', True],
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/636effbc9232cf3805365e8715dea71d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/636effbc9232cf3805365e8715dea71d…
You're receiving this email because of your account on dev.gajim.org.