summaryrefslogtreecommitdiff
path: root/gdk/gdkdndprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-30 14:10:44 +0200
committerBenjamin Otte <otte@redhat.com>2018-06-18 23:49:19 +0200
commitf247d268d4aa02c945ed7297080b685d9df79464 (patch)
tree879b3e327a739098be808d0190a3c86b29e7e2ad /gdk/gdkdndprivate.h
parent841a29837e5929bd07a45081e5eec43c1bc910f5 (diff)
downloadgtk+-f247d268d4aa02c945ed7297080b685d9df79464.tar.gz
dnd: Add GdkDrop base class for GdkDragContext
The ultimate goal of this patch series is to split GdkDragContext into GdkDrop + GdkDrag classes for the destination and source side of a dnd operation. The refactoring is meant to work something like this: 1. Introduce GdkDrop as a base class 2. Make all drop related code (like GdkEvent) use GdkDrop instead of GdkDragContext. Move/duplicate APIs to allow that. 3. Port all drop contexts in the backends from GdkDragContext to GdkDrop 4. Delete all APIs in GdkDragContext that aren't needed anymore. 5. Make GdkDragContext no longer a GdkDrop subclass 6. Rename GdkDragContext to GdkDrag
Diffstat (limited to 'gdk/gdkdndprivate.h')
-rw-r--r--gdk/gdkdndprivate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdk/gdkdndprivate.h b/gdk/gdkdndprivate.h
index 8f779dabb2..9c240f084a 100644
--- a/gdk/gdkdndprivate.h
+++ b/gdk/gdkdndprivate.h
@@ -20,6 +20,8 @@
#include "gdkdnd.h"
+#include "gdkdropprivate.h"
+
G_BEGIN_DECLS
@@ -31,7 +33,7 @@ typedef struct _GdkDragContextClass GdkDragContextClass;
struct _GdkDragContextClass {
- GObjectClass parent_class;
+ GdkDropClass parent_class;
void (*drag_status) (GdkDragContext *context,
GdkDragAction action,
@@ -77,7 +79,7 @@ struct _GdkDragContextClass {
};
struct _GdkDragContext {
- GObject parent_instance;
+ GdkDrop parent_instance;
/*< private >*/
gboolean is_source;