dnd: Make the base Drag/Drop types abstract
authorBenjamin Otte <otte@redhat.com>
Thu, 14 Jun 2018 03:13:13 +0000 (05:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Jun 2018 21:49:52 +0000 (23:49 +0200)
This way, they'll be ignored by the testsuite.

And we don't want to instantiate them anyway, the backends have
their own subclasses.

gdk/gdkdnd.c
gdk/gdkdrop.c

index d091c6c5605bde8d143a2d1f8aa135922017efba..60b84189fc997a18a7bb0ba964e02f00e2a2ff98 100644 (file)
@@ -79,7 +79,7 @@ static GParamSpec *properties[N_PROPERTIES] = { NULL, };
 static guint signals[N_SIGNALS] = { 0 };
 static GList *contexts = NULL;
 
-G_DEFINE_TYPE_WITH_PRIVATE (GdkDragContext, gdk_drag_context, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GdkDragContext, gdk_drag_context, G_TYPE_OBJECT)
 
 /**
  * SECTION:dnd
index f17f709ea868654502be164247bfc5ea66c35b83..bdcc3866d09ab19a8975e24d464eae02cde57d12 100644 (file)
@@ -57,7 +57,7 @@ enum {
 
 static GParamSpec *properties[N_PROPERTIES] = { NULL, };
 
-G_DEFINE_TYPE_WITH_PRIVATE (GdkDrop, gdk_drop, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GdkDrop, gdk_drop, G_TYPE_OBJECT)
 
 /**
  * GdkDrop: