[gtk+] widget: Make parent property read-only
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Make parent property read-only
- Date: Sun, 29 Oct 2017 17:06:16 +0000 (UTC)
commit 91f40eb088f78e6a6e617d21784848e75511c9fa
Author: Timm Bäder <mail baedert org>
Date: Sun Oct 29 18:03:10 2017 +0100
widget: Make parent property read-only
gtk/gtkwidget.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d603906..5efeb80 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -1091,7 +1091,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
P_("Parent widget"),
P_("The parent widget of this widget."),
GTK_TYPE_WIDGET,
- GTK_PARAM_READWRITE);
+ GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
widget_props[PROP_WIDTH_REQUEST] =
g_param_spec_int ("width-request",
@@ -3166,9 +3166,6 @@ gtk_widget_set_property (GObject *object,
case PROP_NAME:
gtk_widget_set_name (widget, g_value_get_string (value));
break;
- case PROP_PARENT:
- gtk_container_add (GTK_CONTAINER (g_value_get_object (value)), widget);
- break;
case PROP_WIDTH_REQUEST:
gtk_widget_set_usize_internal (widget, g_value_get_int (value), -2);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]