0
|
1 /* XMMS - Cross-platform multimedia player
|
|
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
|
|
3 *
|
|
4 * This program is free software; you can redistribute it and/or modify
|
|
5 * it under the terms of the GNU General Public Licensse as published by
|
|
6 * the Free Software Foundation; either version 2 of the License, or
|
|
7 * (at your option) any later version.
|
|
8 *
|
|
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.
|
|
13 *
|
|
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
17 */
|
|
18
|
|
19 #include <gtk/gtk.h>
|
|
20
|
|
21 /* Designate dropped data types that we know and care about */
|
|
22 enum {
|
|
23 BMP_DROP_STRING,
|
|
24 BMP_DROP_PLAINTEXT,
|
|
25 BMP_DROP_URLENCODED,
|
|
26 BMP_DROP_SKIN,
|
|
27 BMP_DROP_FONT
|
|
28 };
|
|
29
|
|
30 /* Drag data format listing for gtk_drag_dest_set() */
|
|
31 static const GtkTargetEntry bmp_drop_types[] = {
|
|
32 {"text/plain", 0, BMP_DROP_PLAINTEXT},
|
|
33 {"text/uri-list", 0, BMP_DROP_URLENCODED},
|
|
34 {"STRING", 0, BMP_DROP_STRING},
|
|
35 {"interface/x-winamp-skin", 0, BMP_DROP_SKIN},
|
|
36 {"application/x-font-ttf", 0, BMP_DROP_FONT},
|
|
37 };
|
|
38
|
|
39 #define bmp_drag_dest_set(widget) \
|
|
40 gtk_drag_dest_set(widget, \
|
|
41 GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_DROP, \
|
|
42 bmp_drop_types, 5, \
|
|
43 GDK_ACTION_COPY | GDK_ACTION_MOVE)
|