ui/gtk/dnd.h

branch
newapi
changeset 394
bedd499b640d
parent 147
2e384acc89a6
equal deleted inserted replaced
393:3099bf907e21 394:bedd499b640d
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