Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #42: use gtk's text truncation system when possible #1066

Merged
merged 3 commits into from
Apr 14, 2024

Conversation

Rayzeq
Copy link
Contributor

@Rayzeq Rayzeq commented Apr 6, 2024

Description

This makes labels use gtk's truncation system.
One of the main advantages is that labels can be truncated as required, without having a fixed size.
It also allows pango markup to be truncated (except when show-truncated is false).

Usage

As before

Additional Notes

This PR contains duplicated code, but I didn't find any way to prevent it without removing show-truncated.

Checklist

Please make sure you can check all the boxes that apply to this PR.

  • All widgets I've added are correctly documented.
  • I added my changes to CHANGELOG.md, if appropriate.
  • The documentation in the docs/content/main directory has been adjusted to reflect my changes.
  • I used cargo fmt to automatically format all code before committing

@elkowar elkowar merged commit 1e37f53 into elkowar:master Apr 14, 2024
1 check passed
@Rayzeq Rayzeq deleted the string-truncation branch April 23, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants