blob: 805ee24472d872c302c0f9d3fd1a1535c1e0c286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef GGAZE_CLIPBOARD_H
#define GGAZE_CLIPBOARD_H
#include <gdk/gdk.h>
#include <gio/gio.h>
#include <glib.h>
G_BEGIN_DECLS
/* Copy a single image as PNG pixels to the clipboard (decodes in a GTask). */
void clipboard_copy_image_async(GdkClipboard *p_clip, GFile *p_file,
GCancellable *p_cancel,
GAsyncReadyCallback p_cb, gpointer p_data);
gboolean clipboard_copy_image_finish(GAsyncResult *p_res, GError **p_err);
/* Copy a list of files as text/uri-list to the clipboard. */
void clipboard_copy_uris(GdkClipboard *p_clip, GList *p_files);
/* Build (but do not set) a content provider offering the given files as
* text/uri-list (CRLF) and text/plain (newline-joined local paths). Returns
* a new ref; caller must unref. Useful for testing without a clipboard. */
GdkContentProvider *clipboard_build_uri_provider(GList *p_files);
G_END_DECLS
#endif
|