[gtk+] widget: Fix :parent property type
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Fix :parent property type
- Date: Sat, 7 Jan 2017 16:21:30 +0000 (UTC)
commit 8960bb7c8e35f7fbbfc5fa875eaa0bcce1386967
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 0be6b0d..c644ac0 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]