layout: Use the get_request_mode() getter in BinLayout
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 7 Oct 2009 14:29:47 +0000 (15:29 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 14 Oct 2009 10:31:31 +0000 (11:31 +0100)
Instead of using g_object_get(child, "request-mode", ...).

clutter/clutter-bin-layout.c

index 7c1c55f..61484ca 100644 (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;