-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Decouple clipboard from fyne.Window #4418
Comments
This will make some system tray people happy as well, because we can then use clipboard without having any windows created. |
Cool. I'll assign myself and look into implementing this |
What is the status of this issue? I had a quick glance and it seems that what is left is:
This seems too simple to be true :) |
That sounds about right except I don't think there is any need to expose new structs to do this... |
NB. getting a lot of errors when running go test ./..., unrelated to this change. Will investigate some of them as they relate to the locale, others I have no idea.
I wonder if step two here should be to deprecate the clipboard field from shortcuts? Is there any point in passing a copy of the clipboard with each shortcut if it can be looked up easily from the app? |
It can be deprecated yes, but we will have to keep populating those deprecated fields until v3 because they were filled from inside the toolkit. |
Absolutely, I'm aware of that :) |
I wonder if this should stay open until those fields are deprecated or if that should be a different ticket? |
Given that there is no harm in using them still I don't think this has to stay open. |
Checklist
Is your feature request related to a problem?
The clipboard in GLFW was previously tied to the window. This is no longer the case so I think it seems strange to have a
window.Clipboard()
method when clipboards generally are per app or per system and not per window.See #4417 for step one.
Is it possible to construct a solution with the existing API?
Yeah. We can move the clipboard struct anywhere we'd like.
Describe the solution you'd like to see.
Add a
app.Clipboard()
method and deprecate the one on the window.The text was updated successfully, but these errors were encountered: