koehlma / pygtkspellcheck

A simple but quite powerful spellchecking library for GTK written in pure Python.
GNU General Public License v3.0
23 stars 9 forks source link

GTK 4 support #43

Closed cheywood closed 2 years ago

cheywood commented 2 years ago

Hey Maximilian,

I've gotten around to massaging my GTK 4 changes in with some GTK 3 support for this first draft changeset.

As planned this drops Python 2 and GTK 2 support.

Mixed notes:

Hopefully a reasonable starting point 😀

koehlma commented 2 years ago

Hey Chris,

Thank you very much for this PR. Your changes look already very good and nicely polished.

It would be great if you could address/respond to my comments. Afterwards, we should be good to go!

cheywood commented 2 years ago

Thanks Maximilian, that all sounds good. I think I've made all the changes you raised. All your reasoning in the comment below makes sense to me too :+1: I think that's sensible for the major version bump with the considerable changes to supported Python and GTK versions, plus it will help with the minor API differences.

Perhaps there are remaining documentation changes to make? It would be good to note that importing the GTK version you want to use before importing the module will result in the GTK version selection. Perhaps you already have that noted somewhere for the old detection? I haven't checked.

Once we get this in I can work on the other two smaller PRs.

koehlma commented 2 years ago

Perfect! 👍

Yes, indeed some minor changes to the documentation (doc/source/index.rst) are necessary. However, this is also something I can do after merging this PR. If you want, you can also do the changes yourself. Just let me know, otherwise, I am ready to merge this PR.

cheywood commented 2 years ago

I'm happy to leave that in your capable hands if you have the time :slightly_smiling_face:

I'll squash the commits pre-merge?

koehlma commented 2 years ago

I think I am able to somehow squeeze this into my schedule.

You do not need to squash the commits—GitHub will take care of that when merging.

Thanks again for making this happen. 🙏

cheywood commented 2 years ago

My pleasure!

cheywood commented 2 years ago

You do not need to squash the commits—GitHub will take care of that when merging.

That it does. I hadn't used the GitHub mechanism for it before. FWIW there's a tiny downside in that the author name also gets squashed (to GitHub username).

koehlma commented 2 years ago

Oh, sorry, I did not know that this would happen. I hope this is not too much of an issue.

I wonder whether this would also happen if you had your name associated with your GitHub account?

Anyway, we can use another procedure next time. :)

cheywood commented 2 years ago

Oh, sorry, I did not know that this would happen. I hope this is not too much of an issue.

No, not a big issue

I wonder whether this would also happen if you had your name associated with your GitHub account?

Oh huh, good point, I didn't know this wasn't set. You're probably onto something there :slightly_smiling_face: