[gtk/matthiasc/for-master: 4/5] dragicon: Derive from GtkWidget



commit 8653a5e27b32c6dcb2aaa47d26db27c1ce74e02c
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 1 12:21:42 2020 -0400

    dragicon: Derive from GtkWidget
    
    This wasn't meant to derive from GtkContainer.

 gtk/gtkdragicon.c | 2 +-
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]