From 8960bb7c8e35f7fbbfc5fa875eaa0bcce1386967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 3 Dec 2016 11:09:58 +0100 Subject: [PATCH] widget: Fix :parent property type Parent widgets can now also be widgets, not just containers. --- gtk/gtkwidget.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 0be6b0df27..c644ac0f7b 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -1085,8 +1085,8 @@ gtk_widget_class_init (GtkWidgetClass *klass) widget_props[PROP_PARENT] = g_param_spec_object ("parent", P_("Parent widget"), - P_("The parent widget of this widget. Must be a Container widget"), - GTK_TYPE_CONTAINER, + P_("The parent widget of this widget."), + GTK_TYPE_WIDGET, GTK_PARAM_READWRITE); widget_props[PROP_WIDTH_REQUEST] = @@ -8507,9 +8507,9 @@ gtk_widget_set_parent (GtkWidget *widget, * gtk_widget_get_parent: * @widget: a #GtkWidget * - * Returns the parent container of @widget. + * Returns the parent widget of @widget. * - * Returns: (transfer none) (nullable): the parent container of @widget, or %NULL + * Returns: (transfer none) (nullable): the parent widget of @widget, or %NULL **/ GtkWidget * gtk_widget_get_parent (GtkWidget *widget)