annotate src/dnd.h @ 1811:f405ec9b696b default tip

Some small logic mistakes Use boolean operators for booleans and bitwise otherwise only.
author mow
date Mon, 10 May 2010 11:33:13 +0000
parents 956aab097ea7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 9
diff changeset
2 * Geeqie
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
1802
956aab097ea7 added 2010 to copyright text
nadvornik
parents: 1393
diff changeset
4 * Copyright (C) 2008 - 2010 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #ifndef DND_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15 #define DND_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
316
2ebd0d9145cf Define drag and drop target string in dnd.h.
zas_
parents: 196
diff changeset
17 #define TARGET_APP_COLLECTION_MEMBER_STRING "application/x-" GQ_APPNAME_LC "-collection-member"
1374
27ba259d3496 reorder exif pane entries with drag and drop
nadvornik
parents: 1284
diff changeset
18 #define TARGET_APP_EXIF_ENTRY_STRING "application/x-" GQ_APPNAME_LC "-exif-entry"
1392
d1b32a69b40a dnd in keywords tree
nadvornik
parents: 1374
diff changeset
19 #define TARGET_APP_KEYWORD_PATH_STRING "application/x-" GQ_APPNAME_LC "-keyword-path"
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
20
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
21 enum {
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22 TARGET_APP_COLLECTION_MEMBER,
1374
27ba259d3496 reorder exif pane entries with drag and drop
nadvornik
parents: 1284
diff changeset
23 TARGET_APP_EXIF_ENTRY,
1392
d1b32a69b40a dnd in keywords tree
nadvornik
parents: 1374
diff changeset
24 TARGET_APP_KEYWORD_PATH,
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25 TARGET_URI_LIST,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26 TARGET_TEXT_PLAIN
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 };
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30 extern GtkTargetEntry dnd_file_drag_types[];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 extern gint dnd_file_drag_types_count;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33 extern GtkTargetEntry dnd_file_drop_types[];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34 extern gint dnd_file_drop_types_count;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 /* sets a drag icon to pixbuf, if items is > 1, text is drawn onto icon to indicate value */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 void dnd_set_drag_icon(GtkWidget *widget, GdkDragContext *context, GdkPixbuf *pixbuf, gint items);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39
1393
79b32088ecc4 show a label instead of the default drag icon
nadvornik
parents: 1392
diff changeset
40 void dnd_set_drag_label(GtkWidget *widget, GdkDragContext *context, const gchar *text);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 475
diff changeset
43 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */