Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
898f4bdb by wurstsalat at 2021-05-02T10:16:50+02:00
SearchView: Simplify adding results
- - - - -
b1da0485 by wurstsalat at 2021-05-02T10:56:48+02:00
CodeWidget: Add margins
- - - - -
2 changed files:
- gajim/gtk/conversation/code_widget.py
- gajim/gtk/search_view.py
Changes:
=====================================
gajim/gtk/conversation/code_widget.py
=====================================
@@ -91,6 +91,8 @@ def __init__(self):
self.set_editable(False)
self.set_cursor_visible(False)
self.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
+ self.set_top_margin(2)
+ self.set_bottom_margin(2)
self._source_manager = GtkSource.LanguageManager.get_default()
=====================================
gajim/gtk/search_view.py
=====================================
@@ -101,14 +101,12 @@ def _on_search(self, entry):
if not context or everywhere:
self._scope = 'everywhere'
self._results = app.storage.archive.search_all_logs(text)
- self._add_counter()
- self._add_results()
else:
self._scope = 'contact'
self._results = app.storage.archive.search_log(
self._account, self._jid, text)
- self._add_counter()
- self._add_results()
+ self._add_counter()
+ self._add_results()
def _add_counter(self):
results_count = len(self._results)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/882aeb58bddc7d7f50ea2e7d712c28c7a1a41820...b1da04858fe84d8e2c5d311d63f9a32eb29a4670
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/882aeb58bddc7d7f50ea2e7d712c28c7a1a41820...b1da04858fe84d8e2c5d311d63f9a32eb29a4670
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits