[units] Add binding-friendly initializers
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 28 Jul 2009 12:43:52 +0000 (13:43 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 28 Jul 2009 12:46:11 +0000 (13:46 +0100)
commita5d6b233086faa03512975763b286c7ea44b7fec
tree7541d7e27dc422bb1fa6a76cbaa269aa7f361e70
parent57baa2f0bcd37269f029351736681396739263bd
[units] Add binding-friendly initializers

We should follow the convention for boxed types initializers of:

  <type_name>_from_<another_type> (boxed, value)

For ClutterUnits as well; so:

  clutter_units_pixels -> clutter_units_from_pixels
  clutter_units_em     -> clutter_units_from_em
  ...

We should still keep the short-hand version as a macro, though.
clutter/clutter-units.c
clutter/clutter-units.h
doc/reference/clutter/clutter-sections.txt
tests/conform/test-clutter-units.c