Commit f430a76f authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

Fixed bug #576492 "GtkBuilder does not respect G_PARAM_CONSTRUCT properties"

Added G_PARAM_CONSTRUCT flag in gtk_builder_get_parameters() checks as suggested by Johan Dahlin.
parent 6cee81c7
......@@ -503,7 +503,7 @@ gtk_builder_get_parameters (GtkBuilder *builder,
if (G_IS_PARAM_SPEC_OBJECT (pspec) &&
(G_PARAM_SPEC_VALUE_TYPE (pspec) != GDK_TYPE_PIXBUF))
{
if (pspec->flags & G_PARAM_CONSTRUCT_ONLY)
if (pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))
{
GObject *object;
object = gtk_builder_get_object (builder, prop->data);
......@@ -540,7 +540,7 @@ gtk_builder_get_parameters (GtkBuilder *builder,
continue;
}
if (pspec->flags & G_PARAM_CONSTRUCT_ONLY)
if (pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))
g_array_append_val (*construct_parameters, parameter);
else
g_array_append_val (*parameters, parameter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment