Skip to content

Fix GTK runtime errors generated by the plugin manager #4079

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

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

techee
Copy link
Member

@techee techee commented Nov 26, 2024

The use of geany_wrap_label_new() together with the list below seems to interact in a strange way somehow and generate lots of runtime warnings/errors.

This is a (cowardly) attempt by fixing this without having to understand what is going on ;-). Simply using gtk_label_new() seems to resolve the issue.

Also, I think the text can be made a bit shorter in case the translation is too wide for some languages. The "at startup" is kind of misleading anyway since plugins are loaded immediately when checked in the box below and since this is a preference, it's remembered so I think it's pretty clear it happens at startup too.

Just a historical note - the text used to be much longer in the past so this is probably why geany_wrap_label_new() was
used: b0cd7b9

Fixes #2065.

The use of geany_wrap_label_new() together with the list below seems
to interact in a strange way somehow and generate lots of runtime
warnings/errors.

This is a (cowardly) attempt by fixing this without having to understand
what is going on ;-). Simply using gtk_label_new() seems to resolve
the issue.

Also, I think the text can be made a bit shorter in case the translation
is too wide for some languages. The "at startup" is kind of misleading
anyway since plugins are loaded immediately when checked in the box
below and since this is a preference, it's remembered so I think it's
pretty clear it happens at startup too.

Fixes geany#2065.
@b4n b4n self-assigned this Nov 28, 2024
Copy link
Member

@eht16 eht16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the change of the label text and that there is probably no need for the wrapped label.

Good catch! Thanks.

@techee
Copy link
Member Author

techee commented Dec 3, 2024

Unless there are any objections, I'd merge this in about a week.

@b4n I noticed you assigned yourself to this PR. Knowing you, I assume you want to dive into the depths of GTK and fix geany_wrap_label_new() so it works anywhere under any condition. Feel free to do so, but in this case I think the usage of gtk_label_new() is a sufficient "ordinary mortal" fix :-)

@techee techee merged commit 453ece0 into geany:master Dec 9, 2024
7 checks passed
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.

When opening Plugin Manager, GTK warning and critical messages appear in console
3 participants