summaryrefslogtreecommitdiff
path: root/gdk/gdkclipboard.h
Commit message (Collapse)AuthorAgeFilesLines
* gdk: Documentation improvementsMatthias Clasen2017-12-041-3/+3
|
* Revert "clipboard: Add gdk_clipboard_set()"Matthias Clasen2017-12-041-0/+11
| | | | | | This reverts commit dc50e0637ffa8bc7a369d00a5d8e7656d03c3781. This broke the build.
* clipboard: Add gdk_clipboard_set()Benjamin Otte2017-12-051-11/+0
| | | | | | | | | | | | | | | | This API allows specifying a GType and va_args of a value of that type to set the clipboard contents. This massively simplifies setting weird object types into the clipboard. 2 example patches included in this patch are the GtkTextBuffer and the file list in the file chooser. Using gobject-introspection, this should work without specifying the type, so that you can literlally say clipboard.set ("Hello World") or clipboard.set (pixbuf) which is why I've also marked all other setters as (skip). They just exist in C as wrappers for type safety reasons.
* dnd: Remove x/y coordinates from drag-data-receivedBenjamin Otte2017-12-051-0/+11
| | | | | | This is in preparation of using input streams to show that these coordinates aren't needed most of the time and can otherwise be saved during GtkWidget::drag-drop.
* clipboard: Change image convenience APIsBenjamin Otte2017-12-031-5/+5
| | | | Don't use pixbufs anymore, use textures.
* clipboard: Add infrastructure to store clipboardsBenjamin Otte2017-12-031-0/+11
| | | | | Clipboard managers will be so happy once the backends actually implement it!
* clipboard: Allow claiming the clipboard to failBenjamin Otte2017-12-031-1/+1
| | | | | | | | Also make clipboard_claim() a vfunc so backends can override it. Because the whole operation a vfunc, backends have the option of adding code before the actual claim is done and potentially even fail or do something after the successful claim.
* clipboard: Introduce GdkContentProviderBenjamin Otte2017-12-031-0/+14
| | | | | | | | | | | GdkContentProvider is the object that represents local data in the clipboard. This patch only introduces the object and adds the clipboard properties, it does not yet provide a way for the actual implementations to access it. The only access that is implemented is the local shortcut GValue access.
* clipboard: Add gdk_clipboard_read_text_async()Benjamin Otte2017-12-031-0/+9
| | | | Also add deserializers for G_TYPE_STRING.
* clipboard: Add gdk_clipboard_read_pixbuf_async()Benjamin Otte2017-12-031-0/+9
|
* gdk: Im[plement content deserializingBenjamin Otte2017-12-031-0/+11
| | | | | Add infrastructure to do GInputStream => GType conversions. Use that to implement gdk_clipboard_read_value() which reads into GValues.
* clipboard: Refactor gdk_clipboard_read() to be asyncBenjamin Otte2017-12-031-2/+11
| | | | | | | | This allows us not just to pass any mime type to the read function, but it also makes it possible to pass multiple mime types and the clipboard can then try them in order until it finds a supported one. This is so far not implemented though.
* clipboard: Implement gdk_clipboard_read()Benjamin Otte2017-12-031-0/+3
|
* gdk: A GdkClipboard API draftMatthias Clasen2017-12-031-0/+48
This commit adds a GdkClipboard object which is intended to replace GtkClipboard, eventually.