Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / lib / ephy-dnd.h
blob05435cdbbe417fc90ce86196692e8f06b715c4d5
1 /*
2 * Copyright © 2000-2003 Marco Pesenti Gritti
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * $Id: ephy-dnd.h 6952 2007-03-11 19:42:02Z chpe $
21 #ifndef EPHY_DND_H
22 #define EPHY_DND_H
24 #include <glib.h>
25 #include <gtk/gtkwidget.h>
26 #include <gtk/gtkdnd.h>
28 G_BEGIN_DECLS
30 /* Drag & Drop target names. */
31 #define EPHY_DND_URI_LIST_TYPE "text/uri-list"
32 #define EPHY_DND_TEXT_TYPE "text/plain"
33 #define EPHY_DND_URL_TYPE "_NETSCAPE_URL"
34 #define EPHY_DND_TOPIC_TYPE "ephy_topic_node"
36 typedef void (* EphyDragEachSelectedItemDataGet) (const char *url,
37 const char *title,
38 gpointer data);
40 typedef void (* EphyDragEachSelectedItemIterator) (EphyDragEachSelectedItemDataGet iteratee,
41 gpointer iterator_context,
42 gpointer data);
44 gboolean ephy_dnd_drag_data_get (GtkWidget *widget,
45 GdkDragContext *context,
46 GtkSelectionData *selection_data,
47 guint32 time,
48 gpointer container_context,
49 EphyDragEachSelectedItemIterator each_selected_item_iterator);
51 G_END_DECLS
53 #endif