mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
widget: Make parent property read-only
This commit is contained in:
parent
09239eb670
commit
91f40eb088
@ -1091,7 +1091,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
|||||||
P_("Parent widget"),
|
P_("Parent widget"),
|
||||||
P_("The parent widget of this widget."),
|
P_("The parent widget of this widget."),
|
||||||
GTK_TYPE_WIDGET,
|
GTK_TYPE_WIDGET,
|
||||||
GTK_PARAM_READWRITE);
|
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
|
||||||
|
|
||||||
widget_props[PROP_WIDTH_REQUEST] =
|
widget_props[PROP_WIDTH_REQUEST] =
|
||||||
g_param_spec_int ("width-request",
|
g_param_spec_int ("width-request",
|
||||||
@ -3166,9 +3166,6 @@ gtk_widget_set_property (GObject *object,
|
|||||||
case PROP_NAME:
|
case PROP_NAME:
|
||||||
gtk_widget_set_name (widget, g_value_get_string (value));
|
gtk_widget_set_name (widget, g_value_get_string (value));
|
||||||
break;
|
break;
|
||||||
case PROP_PARENT:
|
|
||||||
gtk_container_add (GTK_CONTAINER (g_value_get_object (value)), widget);
|
|
||||||
break;
|
|
||||||
case PROP_WIDTH_REQUEST:
|
case PROP_WIDTH_REQUEST:
|
||||||
gtk_widget_set_usize_internal (widget, g_value_get_int (value), -2);
|
gtk_widget_set_usize_internal (widget, g_value_get_int (value), -2);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user