profile/ivi/clutter.git
12 years agoClutterActor: clear redraw entry before emitting signals
Giovanni Campagna [Thu, 1 Mar 2012 21:58:39 +0000 (22:58 +0100)]
ClutterActor: clear redraw entry before emitting signals

If the redraw entry is not cleared, queueing a redraw from a signal
handler could reinsert the same object in the stage redraw list,
causing the segfault later (as the object is immediately freed)

https://bugzilla.gnome.org/show_bug.cgi?id=671173

12 years agoinput: Add a check on the argument
Emmanuele Bassi [Thu, 1 Mar 2012 15:11:59 +0000 (15:11 +0000)]
input: Add a check on the argument

12 years agosymbols: Add missing InputDevice symbol
Emmanuele Bassi [Thu, 1 Mar 2012 15:11:36 +0000 (15:11 +0000)]
symbols: Add missing InputDevice symbol

12 years agoMake clutter-stage-window.h a private header
Emmanuele Bassi [Thu, 1 Mar 2012 11:06:04 +0000 (11:06 +0000)]
Make clutter-stage-window.h a private header

It should have never been public in the first place; nothing can
implement the ClutterStageWindow interface and use it, so this is
not a break.

12 years agoFix compilation
Emmanuele Bassi [Thu, 1 Mar 2012 15:07:05 +0000 (15:07 +0000)]
Fix compilation

Hide a symbol if we're not compiling with Wayland compositor support.

12 years agoclutter-wayland-surface: Add padding to the class struct
Neil Roberts [Wed, 29 Feb 2012 19:20:18 +0000 (19:20 +0000)]
clutter-wayland-surface: Add padding to the class struct

This just adds some padding pointers so that we can later add more
virtual functions without breaking ABI.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoclutter-input-device-wayland: Include clutter-stage-private.h
Neil Roberts [Wed, 29 Feb 2012 17:50:22 +0000 (17:50 +0000)]
clutter-input-device-wayland: Include clutter-stage-private.h

This was giving a warning about using _clutter_stage_update_state
without declaring it.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: don't queue redraw on buffer attach
Robert Bragg [Mon, 13 Feb 2012 13:20:02 +0000 (13:20 +0000)]
wayland-surface: don't queue redraw on buffer attach

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoevdev: Adds api to release/reclaim the evdev devices
Robert Bragg [Sun, 22 Jan 2012 15:36:17 +0000 (15:36 +0000)]
evdev: Adds api to release/reclaim the evdev devices

Clutter applications using evdev are typically fullscreen applications
associated with a single virtual termainal. When switching away from
the applications associated tty then Clutter should stop managing all
evdev devices and re-probe for devices when the application regains
focus by switching back to the tty. To facilitate this, this patch
adds clutter_evdev_release_devices() and clutter_evdev_reclaim_devices()
functions.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland/x11: Set constraints on the CoglRenderer
Neil Roberts [Wed, 29 Feb 2012 16:35:48 +0000 (16:35 +0000)]
wayland/x11: Set constraints on the CoglRenderer

When using the Wayland backend this sets a constraint that the
CoglRenderer selects the Wayland EGL winsys.

When a Wayland compositor display is set it now also sets a constraint
that the render should use EGL because only EGL renderers will set up
the required wl_drm global object.

The X11 backend now sets the X11 constraint.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agodevice-manager-core-x11: Create core input devices as x11
Neil Roberts [Tue, 17 Jan 2012 17:29:18 +0000 (17:29 +0000)]
device-manager-core-x11: Create core input devices as x11

The core input devices when XInput doesn't work were being created as
generic ClutterInputDevices instead of ClutterInputDeviceX11s. This
meant the keycode_to_evdev virtual wouldn't work.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoAdd an input device function to convert keycodes to evdev codes
Neil Roberts [Tue, 17 Jan 2012 15:40:08 +0000 (15:40 +0000)]
Add an input device function to convert keycodes to evdev codes

This adds a virtual function to ClutterInputDevice to translate a
keycode from the hardware_keycode member of ClutterKeyEvent to an
evdev keycode. The function can fail so that input backends that don't
have a sensible way to translate to evdev keycodes can return FALSE.
There are implementations for evdev, wayland and X. The X
implementation assumes that the X server is using an evdev driver in
which case the hardware keycodes are the evdev codes plus 8.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoevdev: Associate devices with the first created stage
Neil Roberts [Tue, 17 Jan 2012 13:37:26 +0000 (13:37 +0000)]
evdev: Associate devices with the first created stage

Because evdev isn't associated with the display system, it doesn't
have any easy way to associate an input device with a stage.
Previously Clutter would never set a stage for an input device and
leave it up to the application to set it. To make it easier for
applications which just have a single fullscreen stage (which is
probably the most common use case for evdev) the device manager now
associates all input devices with the first stage that is created
unless something has already set a stage.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoUpdates in line with latest wayland protocol
Robert Bragg [Thu, 12 Jan 2012 20:36:16 +0000 (20:36 +0000)]
Updates in line with latest wayland protocol

The shm buffer format enum values were renamed and the explicitly
premultiplied format was dropped since it's now assumed if the buffer
has an alpha component then it's premultiplied.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoclutter-wayland-surface: Remove the pick method
Neil Roberts [Wed, 11 Jan 2012 18:11:51 +0000 (18:11 +0000)]
clutter-wayland-surface: Remove the pick method

The pick method doesn't do anything special over the default pick
method provided by ClutterActor so there's no need to implement it.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: removes unused origin variable
Robert Bragg [Wed, 11 Jan 2012 00:16:10 +0000 (00:16 +0000)]
wayland-surface: removes unused origin variable

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: Adds queue-damage-redraw signal
Robert Bragg [Wed, 11 Jan 2012 00:08:05 +0000 (00:08 +0000)]
wayland-surface: Adds queue-damage-redraw signal

This adds a signal that's emitted whenever a wayland surface is damaged
that allows sub-classes to override the default handler to change
how clipped redraws are queued if the sub-class doesn't simply draw
a rectangle. The signal can also be used just to track damage.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: Add cogl-texture property
Robert Bragg [Tue, 10 Jan 2012 22:39:53 +0000 (22:39 +0000)]
wayland-surface: Add cogl-texture property

This adds a "cogl-texture" gobject property so that a compositor may
listen for notifications of changes to the texture used to paint.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoclutter-wayland-surface: Rename the width/height properties
Neil Roberts [Mon, 9 Jan 2012 16:13:03 +0000 (16:13 +0000)]
clutter-wayland-surface: Rename the width/height properties

This patch renames the width/height properties to
surface-width/surface-height so that they won't override the
width/height properties of ClutterActor which have different
semantics.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoconfigure: Adds xkb-utils automake conditional
Robert Bragg [Tue, 10 Jan 2012 17:04:50 +0000 (17:04 +0000)]
configure: Adds xkb-utils automake conditional

This adds a NEEDS_XKB_UTILS automake conditional that's set to true if
either the wayland backend is enabled or the evdev input backend is
enabled since they both depend on clutter-xkb-utils.c and we need
to avoid listing the file twice since that leads to duplicate symbols
and the build fails.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: Set actor size on buffer attach
Robert Bragg [Mon, 9 Jan 2012 19:03:59 +0000 (19:03 +0000)]
wayland-surface: Set actor size on buffer attach

When a new buffer is attached and we update the width and height
properties for the surface we now also call clutter_actor_set_size()

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: Adds _get_surface function
Robert Bragg [Mon, 9 Jan 2012 19:16:21 +0000 (19:16 +0000)]
wayland-surface: Adds _get_surface function

This adds a clutter_wayland_surface_get_surface() function for querying
the struct wl_surface * associated with a ClutterWaylandSurface.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: Make _set_surface api public
Robert Bragg [Mon, 9 Jan 2012 19:14:09 +0000 (19:14 +0000)]
wayland-surface: Make _set_surface api public

This exposes a clutter_wayland_surface_set_surface() function. The
implementation ignores requests to re-set the same surface and since now
has code to cleanup old surface state before setting the new surface.
(previously the surface was construct only so this wasn't necessary)

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: Cleanup properly in _dispose
Robert Bragg [Mon, 9 Jan 2012 19:11:43 +0000 (19:11 +0000)]
wayland-surface: Cleanup properly in _dispose

When disposing a ClutterWaylandSurface we now make sure to unref any
pipeline we created and unref any surface buffer textures we created.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland-surface: remove unused damage array
Robert Bragg [Mon, 9 Jan 2012 19:09:43 +0000 (19:09 +0000)]
wayland-surface: remove unused damage array

There was a GArray member named damage that wasn't being used which this
patch removes.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoconfigure: fix --enable-evdev-input documentation
Robert Bragg [Sat, 7 Jan 2012 21:44:32 +0000 (21:44 +0000)]
configure: fix --enable-evdev-input documentation

The --help documentation for ./configure was listing a spurious
--with-evdev option when it should list --enable-evdev-input.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agowayland: install wayland compositor headers + pkgconfig file
Robert Bragg [Thu, 5 Jan 2012 14:33:35 +0000 (14:33 +0000)]
wayland: install wayland compositor headers + pkgconfig file

If wayland compositor support has been enabled then we make sure to
install the corresponding public headers and a
clutter-wayland-compositor.pc pkgconfig file.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoRemove test-wayland-surface
Neil Roberts [Wed, 29 Feb 2012 16:18:07 +0000 (16:18 +0000)]
Remove test-wayland-surface

In a separate branch, this test has become quite complicated and
involves multiple files and its own configure options. Instead of
cluttering up the clutter source tree it has now been moved to its own
repo at:

 http://github.com/clutter-project/test-wayland-surface

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoUpdated Brazilian Portuguese translation
Jonh Wendell [Wed, 29 Feb 2012 17:03:44 +0000 (14:03 -0300)]
Updated Brazilian Portuguese translation

12 years agodocs: Refresh the layout managers example image
Emmanuele Bassi [Wed, 29 Feb 2012 15:12:55 +0000 (15:12 +0000)]
docs: Refresh the layout managers example image

Drop the window decoration and pointer; drop the double image for the
FlowLayout class; add an image for the TableLayout class.

12 years agodocs: Update the actor example image
Emmanuele Bassi [Wed, 29 Feb 2012 15:05:44 +0000 (15:05 +0000)]
docs: Update the actor example image

12 years agointeractive/actor: Add margin usage example
Emmanuele Bassi [Wed, 29 Feb 2012 15:02:59 +0000 (15:02 +0000)]
interactive/actor: Add margin usage example

12 years agobuild: Remove clutter-version.h.win32.in
Emmanuele Bassi [Wed, 29 Feb 2012 14:46:01 +0000 (14:46 +0000)]
build: Remove clutter-version.h.win32.in

The clutter-version.h header file is now completely generic, and does
not need to be masked by a Windows-specific header when building under
MSVC.

12 years agoAnnotate the exported version variables
Emmanuele Bassi [Wed, 29 Feb 2012 14:43:01 +0000 (14:43 +0000)]
Annotate the exported version variables

When using MSVC we need to annotate the variables that are going to be
exported.

12 years agoactor: Do not check for child destruction in add_child_internal()
Emmanuele Bassi [Tue, 28 Feb 2012 15:45:24 +0000 (15:45 +0000)]
actor: Do not check for child destruction in add_child_internal()

We currently check for the IN_DESTRUCTION flag inside the
add_child_internal() function.

This check disallows calling methods that change the stacking order
within the destruction sequence, by triggering a critical warning first,
and leaving the actor in an undefined state, which then ends up being
caught by an assertion.

The reproducible sequence is:

  - actor gets destroyed;
  - another actor, linked to the first, will try to change the
    stacking order of the first actor;
  - changing the stacking order is a composite operation composed
    by the following steps:
    1. ref() the child;
    2. remove_child_internal(), which removes the reference;
    3. add_child_internal(), which adds a reference;
  - the state of the actor is not changed between (2) and (3), as
    it could be an expensive recomputation;
  - if (3) bails out, then the actor is in an undefined state, but
    still alive;
  - the destruction sequence terminates, but the actor is unparented
    while its state indicates being parented instead.
  - assertion failure.

The obvious fix would be to decompose each set_child_*_sibling() method
into proper remove_child()/add_child(), with state validation; this may
cause excessive work, though, and trigger a cascade of other bugs in
code that assumes that a change in the stacking order is an atomic
operation.

Another potential fix is to just remove this check here, and let code
doing stacking order changes inside the destruction sequence of an actor
continue doing the work.

The third fix is to silently bail out early from every
set_child_*_sibling() and set_child_at_index() method, and avoid doing
work.

I have a preference for the second solution, since it involves the least
amount of work, and the least amount of code duplication.

See bug: https://bugzilla.gnome.org/show_bug.cgi?id=670647

12 years agoa11y: Not compute extents for actors without an stage
Alejandro Piñeiro [Wed, 29 Feb 2012 14:49:23 +0000 (15:49 +0100)]
a11y: Not compute extents for actors without an stage

This solves a crash on GNOME Shell, as compute the extents
for some StWidgets could lead to call st_widget_get_theme_node,
and it is a fatal error to call this on a widget that it not
beed added to a stage.

12 years agoa11y: Stop to use ClutterActor::name as default accessible-name
Alejandro Piñeiro [Wed, 29 Feb 2012 14:47:36 +0000 (15:47 +0100)]
a11y: Stop to use ClutterActor::name as default accessible-name

ClutterActor::name is mostly used for debugging purposes

12 years agoUpdate VS property sheets
Chun-wei Fan [Wed, 29 Feb 2012 10:09:29 +0000 (18:09 +0800)]
Update VS property sheets

Update the "installation" of headers...

12 years agoUpdate clutter-version.h.win32(.in)
Chun-wei Fan [Wed, 29 Feb 2012 10:03:15 +0000 (18:03 +0800)]
Update clutter-version.h.win32(.in)

Make it like the clutter-version.h.in template.  Since we aren't having
Windows-specific items in here (such as CLUTTER_FLAVOUR), perhaps we
could get the dllexport stuff in clutter-version.h.in, where it can be
used when necessary, and this file would be gone.

12 years agointeractive: Remove test-shader
Emmanuele Bassi [Wed, 29 Feb 2012 09:27:01 +0000 (09:27 +0000)]
interactive: Remove test-shader

ClutterShader is deprecated, and we already have various tests for the
shader API, both for Cogl and for ClutterShaderEffect.

12 years agointeractive: Remove test-fullscreen
Emmanuele Bassi [Wed, 29 Feb 2012 09:25:51 +0000 (09:25 +0000)]
interactive: Remove test-fullscreen

The stage state test also has a fullscreen option, and it's a better
test all around.

12 years agointeractive: Remove test-actor-clone
Emmanuele Bassi [Wed, 29 Feb 2012 09:24:34 +0000 (09:24 +0000)]
interactive: Remove test-actor-clone

Another clone of the venerable test-actors - but test-actor already uses
ClutterClone, so there's really little point in it.

12 years agointeractive: Remove test-behave
Emmanuele Bassi [Wed, 29 Feb 2012 09:23:40 +0000 (09:23 +0000)]
interactive: Remove test-behave

ClutterBehaviour and friends are deprecated, there's no point in having
an interactive test, and it may be misleading.

12 years agodocs: Document the versioning macros
Emmanuele Bassi [Mon, 27 Feb 2012 16:47:53 +0000 (16:47 +0000)]
docs: Document the versioning macros

12 years agoAnnotate all functions available since 1.10
Emmanuele Bassi [Mon, 27 Feb 2012 16:31:53 +0000 (16:31 +0000)]
Annotate all functions available since 1.10

12 years agodocs: Add new macros to the sections file
Emmanuele Bassi [Mon, 27 Feb 2012 16:03:09 +0000 (16:03 +0000)]
docs: Add new macros to the sections file

12 years agoMove clutter-util.h into the deprecated section
Emmanuele Bassi [Mon, 27 Feb 2012 15:56:12 +0000 (15:56 +0000)]
Move clutter-util.h into the deprecated section

12 years agoAdd a deprecated header for ClutterCairoTexture
Emmanuele Bassi [Mon, 27 Feb 2012 15:47:46 +0000 (15:47 +0000)]
Add a deprecated header for ClutterCairoTexture

12 years agoAdd a deprecated header for ClutterTexture
Emmanuele Bassi [Mon, 27 Feb 2012 15:44:38 +0000 (15:44 +0000)]
Add a deprecated header for ClutterTexture

12 years agoAdd deprecated header for ClutterAnimation
Emmanuele Bassi [Mon, 27 Feb 2012 15:29:50 +0000 (15:29 +0000)]
Add deprecated header for ClutterAnimation

12 years agoAdd a deprecated header for ClutterAnimatable
Emmanuele Bassi [Mon, 27 Feb 2012 15:21:07 +0000 (15:21 +0000)]
Add a deprecated header for ClutterAnimatable

12 years agoAdd deprecated header for ClutterStageManager
Emmanuele Bassi [Mon, 27 Feb 2012 15:16:38 +0000 (15:16 +0000)]
Add deprecated header for ClutterStageManager

12 years agoUpdate the deprecation macros
Emmanuele Bassi [Mon, 27 Feb 2012 15:10:13 +0000 (15:10 +0000)]
Update the deprecation macros

Use the new versioned macros instead of the generic ones.

12 years agoAdd flexible versioning scheme
Emmanuele Bassi [Mon, 27 Feb 2012 14:59:00 +0000 (14:59 +0000)]
Add flexible versioning scheme

GLib introduced macros that allows defining the lower and upper bounds
of the API to be used by application code.

The lower bound allows to define the minimum version that will trigger
deprecation warnings; the upper bound defines the maximum version that
will trigger compiler warnings for unavailable symbols.

This scheme allows gradually porting application code to a new version
of the API, especially in case of resynchronization after multiple
development cycles.

12 years agoRequire GLib ≥ 2.31.19
Emmanuele Bassi [Mon, 27 Feb 2012 14:35:53 +0000 (14:35 +0000)]
Require GLib ≥ 2.31.19

For the new deprecation and versioning macros.

12 years agoMove macros to their own headers
Emmanuele Bassi [Mon, 27 Feb 2012 14:03:57 +0000 (14:03 +0000)]
Move macros to their own headers

12 years agoconformance: Clean up
Emmanuele Bassi [Mon, 27 Feb 2012 13:08:31 +0000 (13:08 +0000)]
conformance: Clean up

Remove the last inconsistent bits.

12 years agoconformance: Rename the source files
Emmanuele Bassi [Mon, 27 Feb 2012 13:02:01 +0000 (13:02 +0000)]
conformance: Rename the source files

It's the conformance test suite: there's no need to namespace the files,
just like there's no need to namespace the units.

This commit does not change the Cogl tests: they will be moved to Cogl
over time, and it's easier to do if we leave them as they are.

12 years agoconform: Clean up test names
Emmanuele Bassi [Mon, 27 Feb 2012 12:54:23 +0000 (12:54 +0000)]
conform: Clean up test names

Drop the 'test-' prefix: it's the conformance test suite, we know it's
full of tests.

12 years agoactor: Add a method for computing the default paint volume
Emmanuele Bassi [Mon, 27 Feb 2012 11:59:57 +0000 (11:59 +0000)]
actor: Add a method for computing the default paint volume

Now that ClutterActor has a default paint volume, subclasses may wish
to retrieve it without chaining up to the parent's implementation of
the get_paint_volume() function.

The get_default_paint_volume() returns a ClutterPaintVolume pointer
to the paint volume as computed by the default implementation of the
get_paint_volume() virtual function; it can only be used immediately,
as it's not guaranteed to survive across multiple frames.

12 years agopaint-volume: Add a union method for boxes
Emmanuele Bassi [Mon, 13 Feb 2012 22:40:19 +0000 (22:40 +0000)]
paint-volume: Add a union method for boxes

Creating PaintVolume instances is not possible, and it's not recommended
anyway. It is, though, necessary to union paint volumes, especially with
2D boxes, in some cases.

Clutter should provide a simple convenience function that allows
unioning volumes to boxes in a moderately efficient way.

https://bugzilla.gnome.org/show_bug.cgi?id=670021

12 years agocookbook/examples: Modernize the code
Emmanuele Bassi [Fri, 24 Feb 2012 15:42:11 +0000 (15:42 +0000)]
cookbook/examples: Modernize the code

Use new and non-deprecated methods.

12 years agoUpdated Bulgarian translation
Alexander Shopov [Mon, 27 Feb 2012 04:53:05 +0000 (06:53 +0200)]
Updated Bulgarian translation

12 years agoUploaded Ukranian
Daniel Korostil [Sun, 26 Feb 2012 12:07:44 +0000 (14:07 +0200)]
Uploaded Ukranian

12 years agoUyghur translation
Gheyret Kenji [Sun, 26 Feb 2012 02:12:37 +0000 (11:12 +0900)]
Uyghur translation

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sat, 25 Feb 2012 19:33:41 +0000 (22:33 +0300)]
Updated Belarusian translation.

12 years agoUpdated Galician translations
Fran Diéguez [Sat, 25 Feb 2012 12:49:07 +0000 (13:49 +0100)]
Updated Galician translations

12 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 23 Feb 2012 20:04:59 +0000 (21:04 +0100)]
Updated Slovenian translation

12 years agoUpdated Serbian translation
Мирослав Николић [Thu, 23 Feb 2012 19:54:23 +0000 (20:54 +0100)]
Updated Serbian translation

12 years agobuild: Make abicheck.sh backend-aware
Emmanuele Bassi [Thu, 23 Feb 2012 14:34:26 +0000 (14:34 +0000)]
build: Make abicheck.sh backend-aware

It should be possible to adapt the abicheck.sh script so that it
actually tests the ABI of libclutter-1.0.so taking into account
the backends that were compiled into Clutter, and avoid expected
failures if Clutter was not built with a specific backend.

https://bugzilla.gnome.org/show_bug.cgi?id=670680

12 years agoClean up the included headers
Emmanuele Bassi [Thu, 23 Feb 2012 17:21:57 +0000 (17:21 +0000)]
Clean up the included headers

Especially inside ClutterStage.

12 years agobuild: Fix the header order
Emmanuele Bassi [Thu, 23 Feb 2012 17:01:40 +0000 (17:01 +0000)]
build: Fix the header order

The "keep the list sorted" comment on the list of headers is there not
for fun, or because I'm anal-retentive like that.

12 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 23 Feb 2012 13:00:35 +0000 (14:00 +0100)]
Updated Spanish translation

12 years agoPost-release version bump to 1.9.13
Emmanuele Bassi [Thu, 23 Feb 2012 12:15:41 +0000 (12:15 +0000)]
Post-release version bump to 1.9.13

12 years agoRelease Clutter 1.9.12 (snapshot)
Emmanuele Bassi [Thu, 23 Feb 2012 12:04:29 +0000 (12:04 +0000)]
Release Clutter 1.9.12 (snapshot)

12 years agodocs: Documentation fixes
Emmanuele Bassi [Thu, 23 Feb 2012 12:01:11 +0000 (12:01 +0000)]
docs: Documentation fixes

12 years agodocs: Document ClutterTextBuffer structures
Emmanuele Bassi [Thu, 23 Feb 2012 11:54:41 +0000 (11:54 +0000)]
docs: Document ClutterTextBuffer structures

12 years agodocs: Fix unused symbols
Emmanuele Bassi [Thu, 23 Feb 2012 11:50:43 +0000 (11:50 +0000)]
docs: Fix unused symbols

12 years agobuild: Bump up Cogl dependency
Emmanuele Bassi [Thu, 23 Feb 2012 11:44:21 +0000 (11:44 +0000)]
build: Bump up Cogl dependency

We use the latest stable snapshot.

12 years agoFix compiler warning
Emmanuele Bassi [Thu, 23 Feb 2012 11:31:26 +0000 (11:31 +0000)]
Fix compiler warning

12 years agodocs: "Soft" deprecation of ClutterAlpha
Emmanuele Bassi [Tue, 21 Feb 2012 15:14:26 +0000 (15:14 +0000)]
docs: "Soft" deprecation of ClutterAlpha

We cannot deprecate ClutterAlpha yet. We cannot also implement
ClutterAlpha in terms of ClutterTimeline, because multiple Alpha
instances can be attached to the same Timeline. So we can start
with a "soft" deprecation: just a warning in the documentation
stating that ClutterAlpha will be deprecated, and removed, in the
future, and that newly-written code should use ClutterTimeline
instead.

12 years agoFix the progress function scope annotation
Emmanuele Bassi [Tue, 21 Feb 2012 12:34:57 +0000 (12:34 +0000)]
Fix the progress function scope annotation

12 years agoanimation: Deprecate Alpha usage
Emmanuele Bassi [Mon, 10 Oct 2011 10:25:40 +0000 (11:25 +0100)]
animation: Deprecate Alpha usage

We can use ClutterTimeline and its progress mode inside
ClutterAnimation; obviously, we have to maintain the invariants because
of the ClutterAnimation:alpha property, but if all you set is the :mode
property using one of the Clutter animation modes then we can skip the
ClutterAlpha entirely.

12 years agotimeline: Add progress functions
Emmanuele Bassi [Fri, 17 Feb 2012 16:06:28 +0000 (16:06 +0000)]
timeline: Add progress functions

The whole progress computation should not be done using a separate
class: it should be part of the Timeline class.

12 years agoMove the easing functions to their own file
Emmanuele Bassi [Tue, 12 Jul 2011 11:32:18 +0000 (12:32 +0100)]
Move the easing functions to their own file

Instead of having the easing functions be dependent of ClutterAlpha, and
static to the clutter-alpha.c source file, we should make them generic
and move them to their own internal header and source files. This will
allow to re-use them in the near future.

12 years agodrag-action: Use the motion event when passing the drag threshold
Emmanuele Bassi [Tue, 21 Feb 2012 11:08:43 +0000 (11:08 +0000)]
drag-action: Use the motion event when passing the drag threshold

This avoids a critical warning, but it also makes the dragging more
fluid in case of threshold crossing.

https://bugzilla.gnome.org/show_bug.cgi?id=670402

12 years agoReduce our internal dependence on the Cogl 1.x api
Robert Bragg [Tue, 21 Feb 2012 15:55:51 +0000 (15:55 +0000)]
Reduce our internal dependence on the Cogl 1.x api

Since Cogl has started restricting what cogl 1.x api is exposed when
COGL_ENABLE_EXPERIMENTAL_2_0_API is defined and since we build all
Clutter internals with COGL_ENABLE_EXPERIMENTAL_2_0_API defined this
patch makes a first pass at reducing our internal use of the Cogl 1.x
api.

The most notable api that's no longer exposed to us internally is
the cogl_material_ api so this switches all Clutter internals to use the
cogl_pipeline_ api instead. This patch also makes quite a bit of
progress removing internal uses of CoglHandle although there is still
more to go.

12 years agoPass context to cogl_texture_pixmap_x11_new() api
Robert Bragg [Tue, 21 Feb 2012 14:23:44 +0000 (14:23 +0000)]
Pass context to cogl_texture_pixmap_x11_new() api

The experimental cogl_texture_pixmap_x11_new() api was recently changed
to take an explicit context argument and return a GError on failures.
This updates Clutter's use of the api accordingly.

12 years agoLoosen the guard around clutter_backend_get_cogl_context
Robert Bragg [Tue, 21 Feb 2012 14:01:22 +0000 (14:01 +0000)]
Loosen the guard around clutter_backend_get_cogl_context

We were only exposing clutter_backend_get_cogl_context() if
COGL_ENABLE_EXPERIMENTAL_2_0_API had been defined but the CoglContext
api is also available if COGL_ENABLE_EXPERIMENTAL_API has been defined.

As it was it meant that code opting into the experimental Cogl api
but not limiting to the 2.0 only api would have to #define
COGL_ENABLE_EXPERIMENTAL_2_0_API before including clutter.h but make
sure it wasn't defined when including cogl.h which was particularly
awkward.

12 years agoRename cogl_framebuffer_swap_* apis to cogl_onscreen_swap_*
Robert Bragg [Tue, 21 Feb 2012 13:37:55 +0000 (13:37 +0000)]
Rename cogl_framebuffer_swap_* apis to cogl_onscreen_swap_*

Recently the cogl_framebuffer_swap_* apis were moved into the
cogl_onscreen_* namespace since only CoglOnscreen framebuffers can be
double buffered. This renames all uses of the cogl_framebuffer_swap_*
apis in Clutter.

12 years agoPass a CoglContext when calling cogl_pipeline_new
Robert Bragg [Tue, 21 Feb 2012 13:22:17 +0000 (13:22 +0000)]
Pass a CoglContext when calling cogl_pipeline_new

The experimental cogl_pipeline_new() api was recently changed so it
explicitly takes a CoglContext. This updates all calls to
cogl_pipeline_new() in clutter accordingly.

12 years agoUpdated Galician translations
Fran Diéguez [Tue, 21 Feb 2012 10:38:18 +0000 (11:38 +0100)]
Updated Galician translations

12 years agoUpdated Bulgarian translation
Alexander Shopov [Tue, 21 Feb 2012 08:22:48 +0000 (10:22 +0200)]
Updated Bulgarian translation

12 years agoUpdated Danish translation
Kenneth Nielsen [Mon, 20 Feb 2012 21:55:26 +0000 (22:55 +0100)]
Updated Danish translation

12 years agoUpdated Belarusian translation
Kasia Bondarava [Fri, 17 Feb 2012 22:04:55 +0000 (00:04 +0200)]
Updated Belarusian translation

12 years agoclutter-drop-action: annotation fixes for some signals
Stefano Facchini [Sun, 19 Feb 2012 16:56:12 +0000 (17:56 +0100)]
clutter-drop-action: annotation fixes for some signals

https://bugzilla.gnome.org/show_bug.cgi?id=670433

12 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 17 Feb 2012 22:04:55 +0000 (00:04 +0200)]
Updated Lithuanian translation

12 years agoUpdated Slovenian translation
Andrej Žnidaršič [Wed, 15 Feb 2012 19:56:43 +0000 (20:56 +0100)]
Updated Slovenian translation

12 years agoa11y: remove Container explanation
Alejandro Piñeiro [Wed, 15 Feb 2012 18:09:04 +0000 (19:09 +0100)]
a11y: remove Container explanation

That explanation is outdated after the last changes on clutter

12 years agoa11y: proper ATK role for ClutterStage
Alejandro Piñeiro [Thu, 9 Feb 2012 11:32:44 +0000 (12:32 +0100)]
a11y: proper ATK role for ClutterStage

ATK_ROLE_CANVAS is not a suitable role, as the user (in general) can't
draw on the Stage. CallyStage implements AtkWindow, so the proper role
is ATK_ROLE_WINDOW