Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
f25caa3b by wurstsalat at 2025-03-19T19:31:04+01:00
imprv: Code widget: Improve handling for single line entries
Add some space at the bottom for single line entries, because it's hard to
select text otherwise with the scrollbar appearing on hover.
- - - - -
1 changed file:
- gajim/gtk/conversation/code_widget.py
Changes:
=====================================
gajim/gtk/conversation/code_widget.py
=====================================
@@ -132,3 +132,8 @@ def get_code(self) -> str:
def print_code(self, code: str) -> None:
buffer_ = self.get_buffer()
buffer_.insert(buffer_.get_start_iter(), code)
+
+ if buffer_.get_line_count() == 1:
+ # Add some space at the bottom so that scrollbar
+ # does not overlap content, which makes text hard to select
+ self.set_pixels_below_lines(10)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f25caa3bc59772f056d5c57dc90f1b97856ce72f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f25caa3bc59772f056d5c57dc90f1b97856ce72f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]