summaryrefslogtreecommitdiffstats
path: root/src/nautilus-clipboard.h
blob: 5ac1522aee16639ae75b54f5410b2bc406ad7ab5 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* fm-directory-view.h
 *
 * Copyright (C) 1999, 2000  Free Software Foundaton
 * Copyright (C) 2000  Eazel, Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Rebecca Schulman <rebecka@eazel.com>
 */

#pragma once

#include <gtk/gtk.h>

typedef struct _NautilusClipboard NautilusClipboard;
#define NAUTILUS_TYPE_CLIPBOARD (nautilus_clipboard_get_type())
GType              nautilus_clipboard_get_type     (void);

#if 0 && NAUTILUS_DND_NEEDS_GTK4_REIMPLEMENTATION
void nautilus_clipboard_clear_if_colliding_uris    (GtkWidget          *widget,
                                                    const GList        *item_uris);
#endif
GList             *nautilus_clipboard_peek_files   (NautilusClipboard *clip);
GList             *nautilus_clipboard_get_uri_list (NautilusClipboard *clip);
gboolean           nautilus_clipboard_is_cut       (NautilusClipboard *clip);

NautilusClipboard *nautilus_clipboard_copy         (NautilusClipboard *clip);
void               nautilus_clipboard_free         (NautilusClipboard *clip);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (NautilusClipboard, nautilus_clipboard_free)

void nautilus_clipboard_prepare_for_files (GdkClipboard *clipboard,
                                           GList        *files,
                                           gboolean      cut);

void               nautilus_clipboard_register     (void);