layout: Use the get_request_mode() getter in BinLayout

Instead of using g_object_get(child, "request-mode", ...).
This commit is contained in:
Emmanuele Bassi 2009-10-07 15:29:47 +01:00 committed by Emmanuele Bassi
parent eb40e856e1
commit 0876575a95

View File

@ -447,8 +447,7 @@ clutter_bin_layout_allocate (ClutterLayoutManager *manager,
continue;
}
request = CLUTTER_REQUEST_HEIGHT_FOR_WIDTH;
g_object_get (G_OBJECT (child), "request-mode", &request, NULL);
request = clutter_actor_get_request_mode (child);
if (request == CLUTTER_REQUEST_HEIGHT_FOR_WIDTH)
{
gfloat min_width, nat_width;