diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-12-29 17:05:08 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-01-11 11:43:55 +0100 |
commit | 57c8b0416135ee3b5c1315b3419269d20ced233c (patch) | |
tree | 8459571a0af2c244acc7e9f6131055f1c1e257cc /src/nautilus-view-dnd.h | |
parent | 1f734cce8b243e2c1c1fd40491ab4e38c0eb65cd (diff) | |
download | nautilus-57c8b0416135ee3b5c1315b3419269d20ced233c.tar.gz |
view: split DnD code into its own module
And use new method names in other classes
Diffstat (limited to 'src/nautilus-view-dnd.h')
-rw-r--r-- | src/nautilus-view-dnd.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/nautilus-view-dnd.h b/src/nautilus-view-dnd.h new file mode 100644 index 000000000..16d0e550a --- /dev/null +++ b/src/nautilus-view-dnd.h @@ -0,0 +1,68 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ + +/* + * nautilus-view-dnd.h: DnD helpers for NautilusView + * + * Copyright (C) 1999, 2000 Free Software Foundaton + * Copyright (C) 2000, 2001 Eazel, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Authors: Ettore Perazzoli + * Darin Adler <darin@bentspoon.com> + * John Sullivan <sullivan@eazel.com> + * Pavel Cisler <pavel@eazel.com> + */ + +#ifndef __NAUTILUS_VIEW_DND_H__ +#define __NAUTILUS_VIEW_DND_H__ + +#include "nautilus-view.h" + +void nautilus_view_handle_netscape_url_drop (NautilusView *view, + const char *encoded_url, + const char *target_uri, + GdkDragAction action, + int x, + int y); +void nautilus_view_handle_uri_list_drop (NautilusView *view, + const char *item_uris, + const char *target_uri, + GdkDragAction action, + int x, + int y); +void nautilus_view_handle_text_drop (NautilusView *view, + const char *text, + const char *target_uri, + GdkDragAction action, + int x, + int y); +void nautilus_view_handle_raw_drop (NautilusView *view, + const char *raw_data, + int length, + const char *target_uri, + const char *direct_save_uri, + GdkDragAction action, + int x, + int y); + +void nautilus_view_drop_proxy_received_uris (NautilusView *view, + const GList *uris, + const char *target_location, + GdkDragAction action); + + +#endif /* __NAUTILUS_VIEW_DND_H__ */ |