diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-01 12:21:42 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-01 14:24:21 -0400 |
commit | 8653a5e27b32c6dcb2aaa47d26db27c1ce74e02c (patch) | |
tree | 7a2a8f36588440a4b2d6ebdc71591039ee415924 | |
parent | 431545877e71f00cb69e423a45f465d138ed0a8b (diff) | |
download | gtk+-8653a5e27b32c6dcb2aaa47d26db27c1ce74e02c.tar.gz |
dragicon: Derive from GtkWidget
This wasn't meant to derive from GtkContainer.
-rw-r--r-- | gtk/gtkdragicon.c | 2 | ||||
-rw-r--r-- | gtk/gtkdragicon.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkdragicon.c b/gtk/gtkdragicon.c index a431716e5b..570c1f5f04 100644 --- a/gtk/gtkdragicon.c +++ b/gtk/gtkdragicon.c @@ -78,7 +78,7 @@ static GParamSpec *properties[LAST_ARG] = { NULL, }; static void gtk_drag_icon_root_init (GtkRootInterface *iface); static void gtk_drag_icon_native_init (GtkNativeInterface *iface); -G_DEFINE_TYPE_WITH_CODE (GtkDragIcon, gtk_drag_icon, GTK_TYPE_CONTAINER, +G_DEFINE_TYPE_WITH_CODE (GtkDragIcon, gtk_drag_icon, GTK_TYPE_WIDGET, G_IMPLEMENT_INTERFACE (GTK_TYPE_NATIVE, gtk_drag_icon_native_init) G_IMPLEMENT_INTERFACE (GTK_TYPE_ROOT, diff --git a/gtk/gtkdragicon.h b/gtk/gtkdragicon.h index 9bea90b880..8f02287646 100644 --- a/gtk/gtkdragicon.h +++ b/gtk/gtkdragicon.h @@ -35,7 +35,7 @@ G_BEGIN_DECLS #define GTK_TYPE_DRAG_ICON (gtk_drag_icon_get_type ()) GDK_AVAILABLE_IN_ALL -G_DECLARE_FINAL_TYPE (GtkDragIcon, gtk_drag_icon, GTK, DRAG_ICON, GtkContainer) +G_DECLARE_FINAL_TYPE (GtkDragIcon, gtk_drag_icon, GTK, DRAG_ICON, GtkWidget) GDK_AVAILABLE_IN_ALL GtkWidget * gtk_drag_icon_get_for_drag (GdkDrag *drag); |