[gtk+/wip/baedert/progressbar: 19/20] widget: Fix set_parent/unparent docs to not mention GtkContainer
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/progressbar: 19/20] widget: Fix set_parent/unparent docs to not mention GtkContainer
- Date: Mon, 24 Apr 2017 17:15:04 +0000 (UTC)
commit ad1c5c6a3c1c4a0ca8f7446c48324acb9768435a
Author: Timm Bäder <mail baedert org>
Date: Mon Apr 24 19:07:15 2017 +0200
widget: Fix set_parent/unparent docs to not mention GtkContainer
They can both be used by non-container widgets these days.
gtk/gtkwidget.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 049a788..8ce3cf3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3982,8 +3982,8 @@ gtk_widget_new (GType type,
* @widget: a #GtkWidget
*
* This function is only for use in widget implementations.
- * Should be called by implementations of the remove method
- * on #GtkContainer, to dissociate a child from the container.
+ * Should be called by parent widgets to dissociate @widget
+ * from the parent.
**/
void
gtk_widget_unparent (GtkWidget *widget)
@@ -8525,14 +8525,14 @@ gtk_widget_reposition_after (GtkWidget *widget,
/**
* gtk_widget_set_parent:
* @widget: a #GtkWidget
- * @parent: parent container
+ * @parent: parent widget
*
* This function is useful only when implementing subclasses of
- * #GtkContainer.
- * Sets the container as the parent of @widget, and takes care of
+ * #GtkWidget.
+ * Sets @parent as the parent widget of @widget, and takes care of
* some details such as updating the state and style of the child
- * to reflect its new location. The opposite function is
- * gtk_widget_unparent().
+ * to reflect its new location and resizing the parent. The opposite
+ * function is gtk_widget_unparent().
**/
void
gtk_widget_set_parent (GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]