-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Replace Tree control left click on title signal with new signal for either left or right click #64369
Replace Tree control left click on title signal with new signal for either left or right click #64369
Conversation
@YuriSizov does 4.x mean deferred past 4.0 (i.e. not anytime soon?) Because I need this for current development of the debugger. [edit: Not "need" as much as "I am using it." I guess I can go rework the UI?] |
No, The debugger work doesn't seem to be approved yet by any maintainer, so I don't know if we want it in 4.0 or if it would require breaking compatibility. But if #64364 is approved for 4.0, then this can be moved as well. |
Thank you for the detailed explanation. That sounds perfect. |
And just for clarity: this adds a new signal and intentionally does not remove the previous version of the signal, so that it does not break compatibility. The legacy signal continues to be fired in the same cases as before. |
If such new signal is gonna be added then it makes sense to do break compatibility and remove the old signal as it would be redundant. Such change of course would need to be introduced in 4.0 (because of breaking compatibility). If you'd want to backport it to I suggest/prefer removing the old signal in this PR (just my opinion). |
I don't think I can accept responsibility for hunting down all the code that uses the old signal and fixing it, especially at a time when things are supposed to stabilize for 4.0? I don't know how to proceed. |
Responsibility is also on the reviewers/approvers/merger, that's how I see it. And searching for the signal name in the whole codebase and going through all the findings doesn't look too hard / error prone. Especially since I've justed searched for that old signal (
As I pointed out, it was just my opinion. Whether others will agree with me that it should go into 4.0 I don't know. So I guess you can just wait for other opinions / decision. If you want you could add a second commit removing the old signal to show what it's about (and later based on the decision you would either remove that commit or squash both commits into one). |
779014c
to
b58a7b1
Compare
But
I thought that means people can be using it in their Games' UIs or Editor Plugins and we'd never know?
I don't have enough experience with the Godot dev process I guess. I will just wait a while and see what other comments happen. Maybe it is normal to just remove API or maybe I misunderstood what is public API. I do appreciate your careful review! |
Yes and yes. But Godot 4.0 is not meant to be backwards compatibile with 3.x, there are already many compatibility breaking changes between these versions. And, since 4.0 is still in the alpha stage, new breaking changes can still be introduced. I think it's pointed out in each 4.0.alpha release note that the things can change (be removed/changed/added and so on). So it's not like the users are not aware of this. E.g. from the latest release note:
Anyway, feels like we're getting offtopic. I think I've already stated my point (I like the new signal and I think it should be a replacement for the old one, not an addition to it) and I have nothing more to say here for now. |
b58a7b1
to
a5d96c7
Compare
Removed the previous signal as requested. This PR will now need the |
a5d96c7
to
e852a01
Compare
@YuriSizov Shouldn't the milestone be changed to |
Sure, we can switch the milestone back and forth 🙃 But it still needs a review more than anything else, then we can adjust the metadata, once we agree if we want this or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look fine. Signal rename and added additional parameter seem like an obvious improvement to me.
e852a01
to
00cedc0
Compare
00cedc0
to
0ba2e99
Compare
Thanks! |
Right mouse button support for clicking on the "column title" headers in the Tree control was apparently missed when right click support was added for other items.
This interaction style is needed to support a context menu to configure hiding/showing of optional columns in a normal way.
@KoBeWi as discussed on chat.