From 2234d100ad72797cbdb0653095af752a270a954c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 6 May 2017 12:41:50 +0200 Subject: expander: Inherit from GtkContainer This fixes the expansion not working. As a GtkBin, GtkExpander can only have one child and if that's a GtkBox (and not the one added through gtk_expander_add), things go wrong. --- gtk/gtkexpander.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkexpander.h') diff --git a/gtk/gtkexpander.h b/gtk/gtkexpander.h index 69a3fec3ff..a0024d0b05 100644 --- a/gtk/gtkexpander.h +++ b/gtk/gtkexpander.h @@ -43,7 +43,7 @@ typedef struct _GtkExpanderPrivate GtkExpanderPrivate; struct _GtkExpander { - GtkBin bin; + GtkContainer parent_instance; GtkExpanderPrivate *priv; }; @@ -55,7 +55,7 @@ struct _GtkExpander */ struct _GtkExpanderClass { - GtkBinClass parent_class; + GtkContainerClass parent_class; /*< public >*/ -- cgit v1.2.1