1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 
3 /* fm-directory-view.h
4  *
5  * Copyright (C) 1999, 2000  Free Software Foundaton
6  * Copyright (C) 2000  Eazel, Inc.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public License as
10  * published by the Free Software Foundation; either version 2 of the
11  * License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this program; if not, write to the
20  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  *
23  * Author: Rebecca Schulman <rebecka@eazel.com>
24  */
25 
26 #ifndef CAJA_CLIPBOARD_H
27 #define CAJA_CLIPBOARD_H
28 
29 #include <gtk/gtk.h>
30 
31 /* This makes this editable or text view put clipboard commands into
32  * the passed UI manager when the editable/text view is in focus.
33  * Callers in Caja normally get the UI manager from
34  * caja_window_get_ui_manager. */
35 /* The shares selection changes argument should be set to true if the
36  * widget uses the signal "selection_changed" to tell others about
37  * text selection changes.  The CajaEntry widget
38  * is currently the only editable in caja that shares selection
39  * changes. */
40 void caja_clipboard_set_up_editable            (GtkEditable        *target,
41         GtkUIManager       *ui_manager,
42         gboolean            shares_selection_changes);
43 void caja_clipboard_set_up_text_view           (GtkTextView        *target,
44         GtkUIManager       *ui_manager);
45 void caja_clipboard_clear_if_colliding_uris    (GtkWidget          *widget,
46         const GList        *item_uris,
47         GdkAtom             copied_files_atom);
48 GtkClipboard* caja_clipboard_get                (GtkWidget          *widget);
49 GList* caja_clipboard_get_uri_list_from_selection_data
50 (GtkSelectionData   *selection_data,
51  gboolean           *cut,
52  GdkAtom             copied_files_atom);
53 
54 #endif /* CAJA_CLIPBOARD_H */
55