Commit 6f1c9450 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

inspector: Avoid a crash

gkt_cell_layout_get_area may return NULL, handle it.
parent 9c73603c
......@@ -332,6 +332,9 @@ object_tree_cell_layout_forall (GObject *object,
return;
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (object));
if (!area)
return;
g_object_set_data (G_OBJECT (area), "gtk-inspector-cell-layout", object);
forall_func (G_OBJECT (area), "cell-area", forall_data);
}
......
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