Philipp Hörist pushed to branch unify-control at gajim / gajim
Commits: 6ebbfaf6 by lovetox at 2022-08-09T17:05:05+02:00 fix: pylint errors
- - - - -
2 changed files:
- gajim/gtk/chat_action_processor.py - gajim/gtk/preferences.py
Changes:
===================================== gajim/gtk/chat_action_processor.py ===================================== @@ -123,17 +123,16 @@ def _replace_text(self, selected_action: str) -> None:
def _get_commands(self) -> list[str]: # TODO + # commands: list[str] = [] + # assert self._account + # assert self._contact + # control = app.window.get_control() + # for command in control.list_commands(): + # for name in command.names: + # commands.append(name) + # return commands return []
- commands: list[str] = [] - assert self._account - assert self._contact - control = app.window.get_control() - for command in control.list_commands(): - for name in command.names: - commands.append(name) - return commands - def _on_changed(self, _textview: MessageInputTextView) -> None: insert = self._buf.get_insert() self._current_iter = self._buf.get_iter_at_mark(insert)
===================================== gajim/gtk/preferences.py ===================================== @@ -320,19 +320,19 @@ def _speller_available() -> bool: @staticmethod def _on_use_speller(value: bool, *args: Any) -> None: # TODO - return - if not value: - return - - lang = app.settings.get('speller_language') - gspell_lang = Gspell.language_lookup(lang) - if gspell_lang is None: - gspell_lang = Gspell.language_get_default() - if gspell_lang is None: - return - app.settings.set('speller_language', gspell_lang.get_code()) - for ctrl in app.window.get_controls(): - ctrl.set_speller() + # if not value: + # return + + # lang = app.settings.get('speller_language') + # gspell_lang = Gspell.language_lookup(lang) + # if gspell_lang is None: + # gspell_lang = Gspell.language_get_default() + # if gspell_lang is None: + # return + # app.settings.set('speller_language', gspell_lang.get_code()) + # for ctrl in app.window.get_controls(): + # ctrl.set_speller() + pass
@staticmethod def _on_show_send_message_button(show_button: bool, *args: Any) -> None: @@ -751,9 +751,9 @@ def _on_emoticons_theme(self, *args: Any) -> None: @staticmethod def _toggle_emoticons() -> None: # TODO - return - for ctrl in app.window.get_controls(): - ctrl.toggle_emoticons() + # for ctrl in app.window.get_controls(): + # ctrl.toggle_emoticons() + pass
class Server(PreferenceBox):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6ebbfaf6e08573af4871aa40d175ad531...