Comments (4)
We can add a new overload which only takes an object, but we the Func overload still has a purpose. You can expose a type to be available in the clipboard, but serialize the data only when it is really required.
from xwt.
You can expose a type to be available in the clipboard, but serialize the data only when it is really required.
I don't see how. You've explained to me that there's really not a situation in which the execution will not happen, so unless Gtk is executing the callback for the clipboard get_data on another thread, I don't see how anything is really changed here.
from xwt.
There was some misunderstanding during our discussion, key piece of understanding:
13:22:28 lluis so, the callback will not be called if there is no actual paste operation
So I think your original solution of giving another overload and using this for basic types would be the best route.
from xwt.
Since the backend will have to implement the overload with the callback, I don't think it is necessary to have another overload for doing the same, taking into account that the difference in performance is negligible.
from xwt.
Related Issues (20)
- Code review HOT 2
- Add support for keyboard scancode
- [Gkt3] CustomCellRendererComboBox don't show items
- [Request] Docking panels for Xwt
- Can I use VLC to play video in raspberry? HOT 1
- [WPF] ScrollView is broken HOT 1
- XWT + Mono [DLL Notfound Exception] Missing "libwebkitgtk-1.0-0.dll"
- .NET 5
- ToolkitType.AutoDetect
- kill the son of bitch :maui (just limit linux) HOT 1
- [Mac] VPaned resizes dockable Pad VisualStudioMac 2022
- Is there a way to preview the UI design HOT 2
- Support WinRT API - CompactOverlay aka PIP mode
- Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll HOT 11
- DllNotFoundException: Unable to load DLL 'libgtk-win32-2.0-0.dll HOT 2
- Drag&Drop WPF
- Drag&Drop XamMac
- Drag&Drop ubuntu, GTK2
- Notify Icon
- can't compile on latest visual studio 2019.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xwt.