Go to file
Emmanuele Bassi 57ebce8039 animation: Use ::destroy with animate()
ClutterAnimation uses the weak ref machinery of GObject when associated
to ClutterActor by clutter_actor_animate() and friends - all the while
taking a reference on the actor itself. In order to trigger the weak ref
callback, external code would need to unref the Actor at least twice,
which has slim chance of happening. Plus, the way to destroy an Actor is
to call destroy(), not call unref().

The destruction sequence of ClutterActor emits the ::destroy signal, which
should be used by classes to release external references the might be
holding. My oh my, this sounds *exactly* the case!

So, let's switch to using the ::destroy signal for clutter_actor_animate()
and friends, since we know that the object bound to the Animation is
an Actor, and has a ::destroy signal.

This change has the added benefit of allowing destroying an actor as the
result of the Animation::completed signal without getting a segfault or
other bad things to happen.

Obviously, the change does not affect other GObject classes, or Animation
instances created using clutter_animation_new(); for those, the current
"let's take a reference on the object to avoid it going away in-flight"
mechanism should still suffice.

Side note: it would be interesting if GObject had an interface for
"destructible" objects, so that we could do a safe type check. I guess
it's a Rainy Day Project(tm)...
2011-04-16 10:22:01 +01:00
build build: Fix typo in the docs URI variable name 2011-04-07 15:09:15 +01:00
clutter animation: Use ::destroy with animate() 2011-04-16 10:22:01 +01:00
doc backend: remove untested fruity backend 2011-04-11 17:54:36 +01:00
po Updated Spanish translation 2011-04-14 19:19:14 +02:00
tests Adds a --with-system-cogl config option for Clutter 2011-04-11 17:54:36 +01:00
.gitignore build: Generate README 2011-02-14 17:27:25 +00:00
AUTHORS AUTHORS: Note that the file is unmaintained 2011-03-14 14:16:16 +00:00
autogen.sh autogen.sh: make autoreconf use automake-1.11 when available 2010-12-30 12:08:28 +00:00
ChangeLog.pre-git-import Add a notice of deprecation in the pre-Git ChangeLog 2010-01-14 15:24:15 +00:00
clutter.doap doap: Update the project information 2011-04-04 15:33:24 +01:00
configure.ac Point to GNOME for filing bugs 2011-04-12 17:32:01 +01:00
COPYING
Makefile.am build: Remove maintainer-clean rule 2011-02-22 18:32:01 +00:00
NEWS Release Clutter 1.6.6 (stable) 2011-02-21 12:47:09 +00:00
README.in Point to GNOME for filing bugs 2011-04-12 17:32:01 +01:00
README.md README.md: Fix all the links to Bugzilla 2011-04-12 17:53:24 +01:00

Clutter

What is Clutter?

Clutter is an open source software library for creating fast, compelling, portable, and dynamic graphical user interfaces.

Requirements

Clutter currently requires:

Clutter also has optional dependencies:

On X11, Clutter depends on the following extensions:

  • XComposite
  • XDamage
  • XExt
  • XFixes
  • XInput (1.x or 2.x)
  • XKB

If you are building the API reference you will also need:

If you are building the additional documentation you will also need:

  • xsltproc
  • jw (optional, for generating PDFs)

If you are building the Introspection data you will also need:

If you want support for profiling Clutter you will also need:

Resources

The official Clutter website is:

    http://www.clutter-project.org/

The API references for the latest stable release are available at:

    http://docs.clutter-project.org/docs/clutter/stable/
    http://docs.clutter-project.org/docs/cogl/stable/
    http://docs.clutter-project.org/docs/cally/stable/

The Clutter Cookbook is available at:

    http://docs.clutter-project.org/docs/clutter-cookbook/

New releases of Clutter are available at:

    http://source.clutter-project.org/sources/clutter/

The Clutter blog is available at:

    http://www.clutter-project.org/blog/

To subscribe to the Clutter mailing lists and read the archives, use the Mailman web interface available at:

    http://lists.clutter-project.org/

New bug page on Bugzilla:

    http://bugzilla.gnome.org/enter_bug.cgi?product=clutter

Clutter is licensed under the terms of the GNU Lesser General Public License, version 2.1 or (at your option) later: see the COPYING file for more information.

Building and Installation

To build Clutter from a release tarball, the usual autotool triad should be followed:

  1. ./configure
  2. make
  3. make install

To build Clutter from a Git clone, run the autogen.sh script instead of the configure one. The autogen.sh script will run the configure script for you, unless the NOCONFIGURE environment variable is set to a non-empty value.

See also the BuildingClutter page on the wiki.

Versioning

Clutter uses the common "Linux kernel" versioning system, where even-numbered minor versions are stable and odd-numbered minor versions are development snapshots.

Different major versions break both API and ABI but are parallel installable. The same major version with differing minor version is expected to be ABI compatible with other minor versions; differing micro versions are meant just for bug fixing. On odd minor versions the newly added API might still change.

The micro version indicates the origin of the release: even micro numbers are only used for released archives; odd micro numbers are only used on the Git repository.

Contributing

If you want to hack on and improve Clutter check the HACKING file for general implementation guidelines, and the HACKING.backends for backend-specific implementation issues.

The CODING_STYLE file contains the rules for writing code conformant to the style guidelines used throughout Clutter. Remember: the coding style is mandatory; patches not conforming to it will be rejected by default.

The usual workflow for contributions should be:

  1. Fork the repository
  2. Create a branch (git checkout -b my_work)
  3. Commit your changes (git commit -am "Added my awesome feature")
  4. Push to the branch (git push origin my_work)
  5. Create an Bug with a link to your branch
  6. Sit back, relax and wait for feedback and eventual merge

Bugs

Bugs should be reported to the Clutter Bugzilla at:

    http://bugzilla.gnome.org/enter_bug.cgi?product=clutter

You will need a Bugzilla account.

In the report you should include:

  • what system you're running Clutter on;
  • which version of Clutter you are using;
  • which version of GLib and OpenGL (or OpenGL ES) you are using;
  • which video card and which drivers you are using, including output of glxinfo and xdpyinfo (if applicable);
  • how to reproduce the bug.

If you cannot reproduce the bug with one of the tests that come with Clutter source code, you should include a small test case displaying the bad behaviour.

If the bug exposes a crash, the exact text printed out and a stack trace obtained using gdb are greatly appreciated.