st: Deprecate StBoxLayout child properties

We are no longer using them, and so shouldn't anyone else :-)

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/780
This commit is contained in:
Florian Müllner 2019-10-23 15:15:42 +02:00 committed by Georges Basile Stavracas Neto
parent 104071acbd
commit f0a5170473

View File

@ -179,7 +179,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
pspec = g_param_spec_boolean ("expand", "Expand", pspec = g_param_spec_boolean ("expand", "Expand",
"Allocate the child extra space", "Allocate the child extra space",
FALSE, FALSE,
ST_PARAM_READWRITE); ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
g_object_class_install_property (object_class, PROP_EXPAND, pspec); g_object_class_install_property (object_class, PROP_EXPAND, pspec);
pspec = g_param_spec_boolean ("x-fill", "x-fill", pspec = g_param_spec_boolean ("x-fill", "x-fill",
@ -187,7 +187,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
"when the container is allocating spare space " "when the container is allocating spare space "
"on the horizontal axis", "on the horizontal axis",
TRUE, TRUE,
ST_PARAM_READWRITE); ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
g_object_class_install_property (object_class, PROP_X_FILL, pspec); g_object_class_install_property (object_class, PROP_X_FILL, pspec);
pspec = g_param_spec_boolean ("y-fill", "y-fill", pspec = g_param_spec_boolean ("y-fill", "y-fill",
@ -195,7 +195,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
"when the container is allocating spare space " "when the container is allocating spare space "
"on the vertical axis", "on the vertical axis",
TRUE, TRUE,
ST_PARAM_READWRITE); ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
g_object_class_install_property (object_class, PROP_Y_FILL, pspec); g_object_class_install_property (object_class, PROP_Y_FILL, pspec);
pspec = g_param_spec_enum ("x-align", pspec = g_param_spec_enum ("x-align",
@ -203,7 +203,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
"X alignment of the widget within the cell", "X alignment of the widget within the cell",
ST_TYPE_ALIGN, ST_TYPE_ALIGN,
ST_ALIGN_MIDDLE, ST_ALIGN_MIDDLE,
ST_PARAM_READWRITE); ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
g_object_class_install_property (object_class, PROP_X_ALIGN, pspec); g_object_class_install_property (object_class, PROP_X_ALIGN, pspec);
pspec = g_param_spec_enum ("y-align", pspec = g_param_spec_enum ("y-align",
@ -211,7 +211,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
"Y alignment of the widget within the cell", "Y alignment of the widget within the cell",
ST_TYPE_ALIGN, ST_TYPE_ALIGN,
ST_ALIGN_MIDDLE, ST_ALIGN_MIDDLE,
ST_PARAM_READWRITE); ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
g_object_class_install_property (object_class, PROP_Y_ALIGN, pspec); g_object_class_install_property (object_class, PROP_Y_ALIGN, pspec);
} }