mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-08 11:40:16 +00:00
widget: Fix :parent property type
Parent widgets can now also be widgets, not just containers.
This commit is contained in:
parent
3698f664b2
commit
8960bb7c8e
@ -1085,8 +1085,8 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
|||||||
widget_props[PROP_PARENT] =
|
widget_props[PROP_PARENT] =
|
||||||
g_param_spec_object ("parent",
|
g_param_spec_object ("parent",
|
||||||
P_("Parent widget"),
|
P_("Parent widget"),
|
||||||
P_("The parent widget of this widget. Must be a Container widget"),
|
P_("The parent widget of this widget."),
|
||||||
GTK_TYPE_CONTAINER,
|
GTK_TYPE_WIDGET,
|
||||||
GTK_PARAM_READWRITE);
|
GTK_PARAM_READWRITE);
|
||||||
|
|
||||||
widget_props[PROP_WIDTH_REQUEST] =
|
widget_props[PROP_WIDTH_REQUEST] =
|
||||||
@ -8507,9 +8507,9 @@ gtk_widget_set_parent (GtkWidget *widget,
|
|||||||
* gtk_widget_get_parent:
|
* gtk_widget_get_parent:
|
||||||
* @widget: a #GtkWidget
|
* @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 *
|
GtkWidget *
|
||||||
gtk_widget_get_parent (GtkWidget *widget)
|
gtk_widget_get_parent (GtkWidget *widget)
|
||||||
|
Loading…
Reference in New Issue
Block a user