2007-07-30 12:28:53 -04:00
|
|
|
GENERAL
|
|
|
|
=======
|
|
|
|
|
2007-07-25 18:09:53 -04:00
|
|
|
General notes and rules on clutter core hacking;
|
|
|
|
|
2008-12-18 12:56:11 -05:00
|
|
|
- Follow the CODING_STYLE document.
|
2007-07-25 18:09:53 -04:00
|
|
|
|
2008-01-30 08:05:10 -05:00
|
|
|
- All non static public API funcs should be documented in the source files
|
|
|
|
via gtk-doc. Structures, enumerations and macros should be documented in
|
|
|
|
the header files.
|
|
|
|
|
|
|
|
- All non-trivial static and private API should be documented, especially
|
|
|
|
the eventual lifetime handling of the arguments/return values or locking
|
|
|
|
of mutexes.
|
2007-07-30 12:28:53 -04:00
|
|
|
|
2007-07-25 18:09:53 -04:00
|
|
|
- All public functions with float parameters should also provide a fixed
|
2008-04-17 07:10:32 -04:00
|
|
|
point version, with the 'x' postfix to the function name, e.g.:
|
|
|
|
|
|
|
|
clutter_actor_set_foo - floating point
|
|
|
|
clutter_actor_set_foox - fixed point
|
|
|
|
|
|
|
|
Fixed point should be always be used internally, except when precision
|
|
|
|
is paramount.
|
2007-07-25 18:09:53 -04:00
|
|
|
|
2008-04-03 03:21:15 -04:00
|
|
|
- All public functions dealing with pixels should also provide a
|
2008-04-17 07:10:32 -04:00
|
|
|
ClutterUnit version, with the 'u' postfix to the function name, e.g:
|
|
|
|
|
|
|
|
clutter_actor_set_bar - pixels
|
|
|
|
clutter_actor_set_baru - units
|
|
|
|
|
|
|
|
ClutterUnit should always be used internally.
|
2007-07-25 18:09:53 -04:00
|
|
|
|
2008-04-03 03:21:15 -04:00
|
|
|
- Properties should always be in floating point (never fixed point).
|
2008-12-18 12:56:11 -05:00
|
|
|
The preferred precision is double.
|
2008-04-17 07:10:32 -04:00
|
|
|
|
|
|
|
- Properties should use pixels whenever is possible. If sub-pixel
|
|
|
|
precision is fundamental, use ClutterParamSpecUnit and
|
|
|
|
clutter_param_spec_unit() to install ClutterUnit properties, and
|
|
|
|
clutter_value_set_unit()/clutter_value_get_unit() to handle GValues in
|
|
|
|
a safe way. Never install a ClutterUnit property using a GParamSpecInt.
|
2007-07-25 18:09:53 -04:00
|
|
|
|
2008-04-03 03:21:15 -04:00
|
|
|
- Public entry points must always check their arguments with
|
|
|
|
g_return_if_fail() or g_return_val_if_fail().
|
|
|
|
|
2008-04-17 07:10:32 -04:00
|
|
|
- Private entry points should use g_assert() to verify internal state;
|
|
|
|
do not use g_return_if_fail()/g_return_val_if_fail() as they might
|
|
|
|
be compiled out.
|
2008-04-03 03:21:15 -04:00
|
|
|
|
|
|
|
- Really try to avoid if possible additions to clutter-private.h. Use
|
|
|
|
accessor functions instead.
|
2007-07-25 18:09:53 -04:00
|
|
|
|
2008-04-17 07:10:32 -04:00
|
|
|
- Don't add direct GL calls but wrap with cogl (also adding GLES
|
|
|
|
version if possible, or at least a stub).
|
2007-07-25 18:09:53 -04:00
|
|
|
|
2007-07-30 12:28:53 -04:00
|
|
|
- Use CLUTTER_NOTE() macro for debug statements.
|
|
|
|
|
2008-12-18 12:56:11 -05:00
|
|
|
- New features should also include an exhaustive test unit under
|
|
|
|
tests/conform and, eventually, a user-interactive tes under
|
|
|
|
tests/interactive.
|
2007-07-30 12:28:53 -04:00
|
|
|
|
|
|
|
RELEASES
|
|
|
|
========
|
|
|
|
|
|
|
|
In making a new release;
|
|
|
|
|
|
|
|
- Check out a fresh copy from SVN.
|
|
|
|
|
2008-04-03 03:21:15 -04:00
|
|
|
- Verify versioning in configure.ac, increasing relevant
|
2007-07-30 12:28:53 -04:00
|
|
|
clutter_major_version/clutter_minor_version/clutter_micro_version
|
2008-04-03 03:21:15 -04:00
|
|
|
value. For point releases, bump clutter_micro_version to the next
|
|
|
|
even number.
|
|
|
|
|
|
|
|
- If there was no API change (addition, removal), increment
|
2008-06-26 09:59:30 -04:00
|
|
|
clutter_interface_age by two. If there was an API change,
|
|
|
|
set clutter_interface_age to zero. The interface_age is used to
|
|
|
|
keep the soname the same.
|
2007-07-30 12:28:53 -04:00
|
|
|
|
|
|
|
- Update NEWS (New feature details, bug #'s), README (Any API changes
|
|
|
|
relevant to developers + version), AUTHORS if relevant.
|
|
|
|
|
|
|
|
- Add a Release entry to the ChangeLog noting version.
|
|
|
|
|
2008-01-30 08:05:10 -05:00
|
|
|
- Call make distcheck and fix if fails.
|
|
|
|
|
|
|
|
- Upload the tarball.
|
2007-07-30 12:28:53 -04:00
|
|
|
|
2008-04-03 03:21:15 -04:00
|
|
|
- Bump clutter_micro_version to the next odd number version.
|
2007-07-30 12:28:53 -04:00
|
|
|
|
2008-01-30 08:05:10 -05:00
|
|
|
- Commit.
|
2007-07-30 12:28:53 -04:00
|
|
|
|
|
|
|
- Announce release to waiting world on blog and mailing list.
|
|
|
|
|
|
|
|
- Release any dependant add-ons following similar rules to above.
|
2008-01-30 08:05:10 -05:00
|
|
|
Dont forget to check *.pc file version deps!
|
|
|
|
|
|
|
|
$LastChangedDate$
|