[gtk+/wip/baedert/children: 44/44] widget: Fix :parent property type
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/children: 44/44] widget: Fix :parent property type
- Date: Sun, 4 Dec 2016 11:02:55 +0000 (UTC)
commit edf4021f526970a4e93a30c8d5fbb8bc32377cc3
Author: Timm Bäder <mail baedert org>
Date: Sat Dec 3 11:09:58 2016 +0100
widget: Fix :parent property type
Parent widgets can now also be widgets, not just containers.
gtk/gtkwidget.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 0a0c62a..b5f73be 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -1105,8 +1105,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] =
@@ -8661,9 +8661,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]