Go to file
Emmanuele Bassi 78eb07d657 text: Allow selectability without editability
Being able to select text and being able to edit text are two separate
capabilities, but ClutterText only allows the former with the latter.

The ClutterText:selectable property is set to TRUE by default, given
that it depends on the :editable property; this implies that all
ClutterText instances now are going to show a cursor as soon as they get
key focused. Obviously, this would make labels look a bit off — but if
you have a label then you would not give it key focus, either by
explicitly calling clutter_actor_grab_focus(), or by setting it as
reactive and allowing it to be clicked.

If this turns out to be a problem, we have various ways to avoid showing
a cursor — for instance, we could change the default value of the
selectable property, and ensure that setting the :editable property to
TRUE would also set the :selectable property as a side effect. Or we
could hide the cursor until the first button/touch press event. Finally,
we could always back this commit out if it proves to be too much of a
breakage for existing code bases.

https://bugzilla.gnome.org/show_bug.cgi?id=757470
2015-11-28 20:20:00 +00:00
build build: Fix the URLs in the release email template 2015-05-12 11:51:04 +01:00
clutter text: Allow selectability without editability 2015-11-28 20:20:00 +00:00
doc docs: Fix up the main reference XML 2015-09-22 00:58:13 +01:00
examples actor: Add bind_model_with_properties() 2015-07-10 11:26:34 +01:00
po update zh_CN translation 2015-11-14 15:06:45 +08:00
tests conform/actor-pick: Add more verbose output on failure 2015-08-19 17:34:44 +01:00
.gitignore Move API reference down one level 2015-05-19 15:27:30 +01:00
autogen.sh build: Drop version check on auto* 2012-05-11 17:37:20 +01:00
ChangeLog.pre-git-import build: Put back ChangeLog.pre-git-import to unbreak distcheck 2011-06-13 23:15:17 +01:00
clutter.doap doap category core 2014-09-19 12:38:54 +01:00
configure.ac Bump up version to 1.25.1 2015-11-18 11:54:26 +00:00
COPYING Update the COPYING file 2011-08-15 17:16:54 +01:00
Makefile.am Fully rework the conformance test suite 2013-12-12 18:51:11 +00:00
NEWS Release Clutter 1.24.2 2015-10-12 19:55:39 +01:00
README.in Release Clutter 1.23.4 2015-07-22 19:13:00 +01:00
README.md Drop the UProf dependency 2015-03-03 17:44:15 +00: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:

On X11, Clutter depends on the following extensions:

  • XComposite
  • XDamage
  • XExt
  • XInput 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:

Resources

The official Clutter website is:

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

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

    https://developer.gnome.org/clutter/stable/

The Clutter Cookbook is available at:

    https://developer.gnome.org/clutter-cookbook/

New releases of Clutter are available at:

    https://download.gnome.org/sources/clutter/

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

    https://mail.gnome.org/mailman/listinfo/clutter-list

New bug page on Bugzilla:

    https://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:

    https://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.