mp3splt-gtk 0.9.2
Loading...
Searching...
No Matches
drag_and_drop.h
1/**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright: (C) 2005-2014 Alexandru Munteanu
7 * Contact: m@ioalex.net
8 *
9 * http://mp3splt.sourceforge.net/
10 *
11 *********************************************************/
12
13/**********************************************************
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
28 * USA.
29 *
30 *********************************************************/
31
32#ifndef DRAG_AND_DROP_H
33
34#define DRAG_AND_DROP_H
35
36#include "all_includes.h"
37
38typedef enum {
39 DND_SINGLE_MODE_AUDIO_FILE,
40 DND_BATCH_MODE_AUDIO_FILES,
41 DND_DATA_FILES,
42 DND_SINGLE_MODE_AUDIO_FILE_AND_DATA_FILES,
43} drop_type;
44
45enum {
46 DROP_PLAIN,
47 DROP_STRING,
48 DROP_URI_LIST
49};
50
51static const GtkTargetEntry drop_types[] = {
52 { "text/plain", 0, DROP_PLAIN },
53 { "STRING", 0, DROP_STRING },
54 { "text/uri-list", 0, DROP_URI_LIST }
55};
56
57void dnd_add_drag_data_received_to_widget(GtkWidget *widget, drop_type type, ui_state *ui);
58
59#endif
60