ui/gtk/dnd.h

changeset 90
f501f0efc9a8
parent 0
2483f517c562
equal deleted inserted replaced
89:2fbb3cac05a5 90:f501f0efc9a8
30 #define DND_H 30 #define DND_H
31 31
32 #include "../ui/dnd.h" 32 #include "../ui/dnd.h"
33 #include "toolkit.h" 33 #include "toolkit.h"
34 34
35 #include <cx/list.h>
36
35 #ifdef __cplusplus 37 #ifdef __cplusplus
36 extern "C" { 38 extern "C" {
37 #endif 39 #endif
38 40
41 #if GTK_MAJOR_VERSION >= 4
42
43 struct UiDnD {
44 GtkDropTarget *target;
45 const GValue *value;
46 CxList *providers;
47 GdkDragAction selected_action;
48 gboolean delete;
49 gboolean accept;
50 };
51
52 #else
53
54 struct UiDnD {
55 GdkDragContext *context;
56 GtkSelectionData *data;
57 GdkDragAction selected_action;
58 gboolean delete;
59 gboolean accept;
60 };
39 61
62 #endif
40 63
64 UiDnD* ui_create_dnd(void);
65 void ui_dnd_free(UiDnD *dnd);
41 66
42 #ifdef __cplusplus 67 #ifdef __cplusplus
43 } 68 }
44 #endif 69 #endif
45 70

mercurial