profile/ivi/clutter.git
12 years agotext: Chain up in the ScriptableIface implementation
Emmanuele Bassi [Fri, 8 Jun 2012 13:13:36 +0000 (14:13 +0100)]
text: Chain up in the ScriptableIface implementation

We need ClutterActor's implementation to run as well.

12 years agocanvas: Use the actor's content repeat policy
Emmanuele Bassi [Fri, 8 Jun 2012 11:49:07 +0000 (12:49 +0100)]
canvas: Use the actor's content repeat policy

Similarly to what ClutterImage does.

12 years agoimage: Use the actor's content repeat policy
Emmanuele Bassi [Fri, 8 Jun 2012 11:45:39 +0000 (12:45 +0100)]
image: Use the actor's content repeat policy

When painting we can now use the ClutterActor content-repeat property to
decide whether or not to repeat the texture data.

12 years agoactor: Add content-repeat
Emmanuele Bassi [Fri, 8 Jun 2012 11:44:28 +0000 (12:44 +0100)]
actor: Add content-repeat

ClutterContent implementations may allow repeating their contents when
painting; we should provide the repeat policy on the actor, like we do
for scaling filters and content gravity.

12 years agotable: Deprecate the align, expand, and fill layout properties
Emmanuele Bassi [Thu, 7 Jun 2012 17:02:25 +0000 (18:02 +0100)]
table: Deprecate the align, expand, and fill layout properties

ClutterActor exposes their equivalent, and ClutterTableLayout honours
them since commit 8e24de86b6f88f3bfd1e65cdfd845f330212d1c6.

12 years agotext: Use actor alignments when painting the layout
Emmanuele Bassi [Thu, 7 Jun 2012 15:14:21 +0000 (16:14 +0100)]
text: Use actor alignments when painting the layout

ClutterActor's x-align and y-align properties should be used to control
the alignment of the PangoLayout when painting it within a larger
allocation, and the ClutterText has the x-expand or the y-expand flags
set.

12 years agoDon't allocate size to invisible BinLayout children
Alexander Larsson [Fri, 8 Jun 2012 09:29:43 +0000 (11:29 +0200)]
Don't allocate size to invisible BinLayout children

This is similar to what other layouts do, and avoids problems with
Gtk+ actor children which warn about being allocated not enough
space.

12 years agoBinLayout: Always use fixed_x/y for FIXED if set
Alexander Larsson [Thu, 7 Jun 2012 14:44:08 +0000 (16:44 +0200)]
BinLayout: Always use fixed_x/y for FIXED if set

We want to use the actually set value for x/y, not the current allocation,
as that might be a transition from an earlier allocation animation.

12 years agoEnsure that fixed positions always start at 0,0
Alexander Larsson [Thu, 7 Jun 2012 14:32:01 +0000 (16:32 +0200)]
Ensure that fixed positions always start at 0,0

Fixed positions are defined to be initialized at 0,0 whenever
enabled, by setting fixed_position_enabled to true, or by setting
just one of x/y. This normally happens in the defaults, but we need
to make sure it also happens if a fixed position was once set but
then disabled. We do this by always resetting it back to 0,0 when
fixed_position_set is unset.

12 years agoAdd _clutter_actor_peek_layout_info
Alexander Larsson [Thu, 7 Jun 2012 14:31:22 +0000 (16:31 +0200)]
Add _clutter_actor_peek_layout_info

This will be needed later to get a layout_info without creating one
if there is none already.

12 years agoconform/events-touch: Silently bail out if init failed
Emmanuele Bassi [Thu, 7 Jun 2012 11:23:49 +0000 (12:23 +0100)]
conform/events-touch: Silently bail out if init failed

This removes the need to conditionally run the test.

12 years agoactor: Improve debug message for create_transition()
Emmanuele Bassi [Thu, 7 Jun 2012 11:06:56 +0000 (12:06 +0100)]
actor: Improve debug message for create_transition()

Add the property and easing state information.

12 years agodebug: Group debug messages by timestamps
Emmanuele Bassi [Thu, 7 Jun 2012 10:51:33 +0000 (11:51 +0100)]
debug: Group debug messages by timestamps

Instead of showing the full timestamp for debugging messages that happen
within a second, showing the delta from the previous full timestamp can
be more useful when debugging; this allows immediately seeing the time
difference, instead of doing the math in our heads.

12 years agoactor: Improve the debug name
Emmanuele Bassi [Thu, 7 Jun 2012 10:34:12 +0000 (11:34 +0100)]
actor: Improve the debug name

Only for debug builds, the debug name should include a) actor name, b)
type name, and c) pointer address.

For non-debug builds we can live with the actor/type name.

12 years agotests: Add unit test for touch event handling
Tomeu Vizoso [Thu, 7 Jun 2012 09:08:49 +0000 (11:08 +0200)]
tests: Add unit test for touch event handling

For now, it just generates a simple horizontal slide (by writing
to /dev/uinput) and checks that the stage gets the events at the
expected coordinates.

The test won't run if it doesn't have read/write permissions to
/dev/uinput.

It also adds OS_LINUX to config.h.

12 years agoexamples: Enable maintainer compiler flags
Emmanuele Bassi [Wed, 6 Jun 2012 12:39:50 +0000 (13:39 +0100)]
examples: Enable maintainer compiler flags

Another step in keeping the example code up to date and correct.

12 years agoexamples/layout: Initialize variables to avoid warnings
Emmanuele Bassi [Wed, 6 Jun 2012 12:39:47 +0000 (13:39 +0100)]
examples/layout: Initialize variables to avoid warnings

12 years agoexamples: Build with deprecation warnings turned on
Emmanuele Bassi [Wed, 6 Jun 2012 12:37:05 +0000 (13:37 +0100)]
examples: Build with deprecation warnings turned on

We want to ensure that the examples stay valid and idiomatic; thus, we
should build them with deprecation warnings turned on.

12 years agoexamples/constraints: Do not use deprecated API
Emmanuele Bassi [Wed, 6 Jun 2012 12:37:02 +0000 (13:37 +0100)]
examples/constraints: Do not use deprecated API

12 years agoexamples/flow: Do not use deprecated API
Emmanuele Bassi [Wed, 6 Jun 2012 12:36:46 +0000 (13:36 +0100)]
examples/flow: Do not use deprecated API

12 years agodocs: Fix wrong rotation-* properties name
Emmanuele Bassi [Wed, 6 Jun 2012 10:19:33 +0000 (11:19 +0100)]
docs: Fix wrong rotation-* properties name

Copy and paste typos from the old documentation.

12 years agoevdev: Use new xkbcommon include path
Danielle Madeley [Tue, 5 Jun 2012 05:00:48 +0000 (15:00 +1000)]
evdev: Use new xkbcommon include path

Inspired by a similar patch in Wayland.

12 years agoPost-release version bump to 1.11.5
Emmanuele Bassi [Tue, 5 Jun 2012 18:52:13 +0000 (19:52 +0100)]
Post-release version bump to 1.11.5

12 years agoRelease Clutter 1.11.4 (snapshot)
Emmanuele Bassi [Tue, 5 Jun 2012 18:36:45 +0000 (19:36 +0100)]
Release Clutter 1.11.4 (snapshot)

12 years agosymbols: Add missing functions
Emmanuele Bassi [Tue, 5 Jun 2012 18:40:07 +0000 (19:40 +0100)]
symbols: Add missing functions

12 years agodocs: Add ClutterTimelineClass.stopped annotation
Emmanuele Bassi [Tue, 5 Jun 2012 18:27:28 +0000 (19:27 +0100)]
docs: Add ClutterTimelineClass.stopped annotation

12 years agoexamples/threads: Modernize code
Emmanuele Bassi [Mon, 4 Jun 2012 22:16:30 +0000 (23:16 +0100)]
examples/threads: Modernize code

Drop the usage of behaviours and alphas, and use transitions and
implicit animations instead.

12 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 5 Jun 2012 15:56:45 +0000 (17:56 +0200)]
Updated Spanish translation

12 years agotests: Add interactive test for touch events
Tomeu Vizoso [Mon, 4 Jun 2012 11:15:43 +0000 (13:15 +0200)]
tests: Add interactive test for touch events

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

12 years agoevents: Deliver touch events to actors
Tomeu Vizoso [Mon, 4 Jun 2012 11:15:13 +0000 (13:15 +0200)]
events: Deliver touch events to actors

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

12 years agoUpdated Galician translations
Fran Diéguez [Tue, 5 Jun 2012 13:51:07 +0000 (15:51 +0200)]
Updated Galician translations

12 years agoUpdated POTFILES.in
Piotr Drąg [Tue, 5 Jun 2012 13:24:57 +0000 (15:24 +0200)]
Updated POTFILES.in

12 years agoexamples: Add a grid-layout example
Bastian Winkler [Sun, 3 Jun 2012 10:18:37 +0000 (12:18 +0200)]
examples: Add a grid-layout example

A fairly complete example for ClutterGridLayout

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

12 years agoAdd ClutterGridLayout
Bastian Winkler [Sun, 3 Jun 2012 03:02:31 +0000 (05:02 +0200)]
Add ClutterGridLayout

ClutterGridLayout is port of GtkGrid to a Clutter layout manager. All
the logic is taken from gtkgrid.c, so all the credits should go to
Matthias Clasen for writing this nice piece of code.

ClutterGridLayout supports adding children with it's own methods
GridLayout.attach() and GridLayout.attach_next_to() as well as
Actor.add_child() and friends. The latter adds children in a similar
fashion to ClutterBoxLayout

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

12 years agoDon't allocate size for invisible BinLayout children
Alexander Larsson [Tue, 5 Jun 2012 08:55:17 +0000 (10:55 +0200)]
Don't allocate size for invisible BinLayout children

12 years agobox-layout: Deprecate expand/fill/align child properties
Bastian Winkler [Mon, 4 Jun 2012 09:47:58 +0000 (11:47 +0200)]
box-layout: Deprecate expand/fill/align child properties

These are covered by ClutterActor:[xy]-align and
ClutterActor:[xy]-expand

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

12 years agoexamples: Updated box-layout example
Bastian Winkler [Sat, 2 Jun 2012 13:01:11 +0000 (15:01 +0200)]
examples: Updated box-layout example

Updated test-box-layout to use modern API and move it to examples.

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

12 years agobox-layout: Honor actor expand and alignment
Bastian Winkler [Fri, 1 Jun 2012 14:43:11 +0000 (16:43 +0200)]
box-layout: Honor actor expand and alignment

Check if the actor has needs to expand and use Actor.allocate() instead
of Actor.allocate_align_fill() in that case.

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

12 years agotable-layout: Honor actors expand and alignment settings
Bastian Winkler [Fri, 1 Jun 2012 14:49:51 +0000 (16:49 +0200)]
table-layout: Honor actors expand and alignment settings

Check if the actor has needs to expand and use Actor.allocate() instead
of Actor.allocate_align_fill in that case.

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

12 years agodoc: Add ClutterLayoutManagerPrivate to doc sections
Bastian Winkler [Sun, 3 Jun 2012 11:55:30 +0000 (13:55 +0200)]
doc: Add ClutterLayoutManagerPrivate to doc sections

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

12 years agoimage: Add a data setter using GBytes
Emmanuele Bassi [Mon, 4 Jun 2012 09:34:22 +0000 (10:34 +0100)]
image: Add a data setter using GBytes

The plain C bytes array, while convenient from a C perspective, is not
well handled by language bindings: the length of the array is not
specified, and it's only just implied by the image data size, rowstride,
and pixel format.

GBytes is a read-only bytes buffer that has an implicit length; we can
use it as the storage medium so that language bindings can actually
function correctly.

12 years agoUpdated French translation
Bruno Brouard [Sun, 3 Jun 2012 11:51:19 +0000 (13:51 +0200)]
Updated French translation

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 3 Jun 2012 01:23:40 +0000 (03:23 +0200)]
Updated Galician translations

12 years agocookbook/examples: Don't mix up height and width while splitting
Debarshi Ray [Sun, 13 May 2012 22:57:57 +0000 (00:57 +0200)]
cookbook/examples: Don't mix up height and width while splitting

Fixes: https://bugzilla.gnome.org/675998

12 years agoosx/backend: Chain up in create_context()
Emmanuele Bassi [Thu, 31 May 2012 09:06:05 +0000 (10:06 +0100)]
osx/backend: Chain up in create_context()

This will ensure that we have a CoglContext, albeit the stub winsys one,
on Mac.

Tested-by: Roland Peffer <gdevel@clixxun.com>
Tested-by: Laszlo Pandy <laszlok2@gmail.com>
12 years agoFix width-for-height allocations
Emanuele Aina [Tue, 29 May 2012 15:40:51 +0000 (17:40 +0200)]
Fix width-for-height allocations

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

12 years agotimeline: Add a new "stopped" signal
Emmanuele Bassi [Fri, 25 May 2012 23:41:14 +0000 (19:41 -0400)]
timeline: Add a new "stopped" signal

The ::stopped signal is emitted when the timeline has been completely
exhausted or when the timeline has been programmatically stopped by
using clutter_timeline_stop(); the notification at the end of the
timeline run allows to write handlers without having to check whether
the current repeat is the last one, like we are forced to do when using
the ::completed signal.

Based on the patch by: Jasper St. Pierre <jstpierre@mecheye.net>

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

12 years agoactor: Stop transitions on remove_child()
Emmanuele Bassi [Wed, 30 May 2012 13:26:58 +0000 (14:26 +0100)]
actor: Stop transitions on remove_child()

There's no point in having transitions running when removing a child, so
we just stop them.

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

12 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 30 May 2012 15:48:00 +0000 (17:48 +0200)]
Updated Spanish translation

12 years agoactor: Finally fix RESIZE_ASPECT content gravity
Emmanuele Bassi [Tue, 29 May 2012 14:39:59 +0000 (15:39 +0100)]
actor: Finally fix RESIZE_ASPECT content gravity

Ensure that resizing transitions smoothly when switching between major
axis; the allocation aspect ratio is not important: it's the size of the
allocation that dictates the major axis.

12 years agobox-layout: Remove unused BoxChild members
Bastian Winkler [Tue, 29 May 2012 12:57:41 +0000 (14:57 +0200)]
box-layout: Remove unused BoxChild members

These are leftovers from the old animation API an are unused now.

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

12 years agoexamples: Allow optional animations in flow-layout
Bastian Winkler [Tue, 29 May 2012 12:44:44 +0000 (14:44 +0200)]
examples: Allow optional animations in flow-layout

Allow animations to demonstrate the LayoutManager animation API

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

12 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 29 May 2012 18:04:11 +0000 (20:04 +0200)]
Updated Slovenian translation

12 years agoexamples: Update layout-manager example to use the animations API
Bastian Winkler [Thu, 24 May 2012 18:25:22 +0000 (20:25 +0200)]
examples: Update layout-manager example to use the animations API

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

12 years agotable-layout: Use the ClutterLayoutManager animation API
Bastian Winkler [Thu, 24 May 2012 15:32:11 +0000 (17:32 +0200)]
table-layout: Use the ClutterLayoutManager animation API

ClutterTableLayout now only calls the animation API of
ClutterLayoutManager

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

12 years agobox-layout: Use the ClutterLayoutManager animation API
Bastian Winkler [Thu, 24 May 2012 15:31:44 +0000 (17:31 +0200)]
box-layout: Use the ClutterLayoutManager animation API

ClutterBoxLayout now only calls the animation API of
ClutterLayoutManager

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

12 years agoflow-layout: Implement layout animations
Bastian Winkler [Thu, 24 May 2012 14:06:31 +0000 (16:06 +0200)]
flow-layout: Implement layout animations

Allow to animate the child allocation using the ClutterLayoutManager
animation API

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

12 years agobin-layout: Implement layout animations
Bastian Winkler [Thu, 24 May 2012 14:05:06 +0000 (16:05 +0200)]
bin-layout: Implement layout animations

Allow to animate the child allocation using the ClutterLayoutManager
animation API

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

12 years agolayout-manager: Add a new animation API
Bastian Winkler [Thu, 24 May 2012 13:45:07 +0000 (15:45 +0200)]
layout-manager: Add a new animation API

It's similar to to the implicit animation API of ClutterActor and
compatible to deprecated API of ClutterBoxLayout and
ClutterTableLayout.

It adds :use-animations, :easing-mode, :easing-duration and
:easing-delay properties to control animations when allocation of a
child has changed. Layout manager implementers should call

use_animations = clutter_layout_manager_get_easing_state (manager,
                                                          &mode,
                                                          &duration,
                                                          &delay);

from the allocate() virtual function to access these values.

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

12 years agolayout-manager: Add a private struct to hold future properties
Bastian Winkler [Thu, 24 May 2012 12:26:57 +0000 (14:26 +0200)]
layout-manager: Add a private struct to hold future properties

In order to allow the abstract ClutterLayoutManager class to have own
GObject properties we'll need a private structure.

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

12 years agobuild: Move test-unit-names.h out of the dist
Emmanuele Bassi [Mon, 28 May 2012 14:33:01 +0000 (15:33 +0100)]
build: Move test-unit-names.h out of the dist

Let it be generated at build time, as it should.

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

12 years agopaint-volume: Use the correct coordinate for axis alignment
Emmanuele Bassi [Mon, 28 May 2012 13:07:04 +0000 (14:07 +0100)]
paint-volume: Use the correct coordinate for axis alignment

The z coordinate of the origin should be checked against the same
coordinate of the vertex behind it. Given that most actors are flat
surfaces, this check should always succeed.

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

12 years agotext: Enable implicit color animations
Bastian Winkler [Mon, 28 May 2012 12:02:25 +0000 (14:02 +0200)]
text: Enable implicit color animations

Implement the ClutterAnimatable interface to enable implicit animations
for :color, :cursor-color, :selected-text-color and :selection-color.

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

12 years agoevent: Add convenience functions for Shift and Ctrl modifiers
Emmanuele Bassi [Fri, 25 May 2012 10:33:57 +0000 (11:33 +0100)]
event: Add convenience functions for Shift and Ctrl modifiers

Instead of going through clutter_event_get_state() and checking if the
modifier mask is set, we can provide simple convenience functions to do
it for us.

12 years agoVisual C++ support: Copy clutter-gdk.h as well
Chun-wei Fan [Thu, 24 May 2012 15:34:36 +0000 (23:34 +0800)]
Visual C++ support: Copy clutter-gdk.h as well

... when the GDK backend is also built

12 years agoVisual C++ 2010: Fix x64 Release_GDK configs
Chun-wei Fan [Thu, 24 May 2012 14:27:57 +0000 (22:27 +0800)]
Visual C++ 2010: Fix x64 Release_GDK configs

12 years agoexamples: Update drag and drop action code
Emmanuele Bassi [Thu, 24 May 2012 11:08:58 +0000 (12:08 +0100)]
examples: Update drag and drop action code

Use modern API and show idiomatic behaviour.

12 years agoUpdate French translation
Alexandre Franke [Wed, 23 May 2012 15:46:15 +0000 (17:46 +0200)]
Update French translation

12 years agoflow-layout: Check for all positive values
Mike Ruprecht [Tue, 22 May 2012 13:25:19 +0000 (14:25 +0100)]
flow-layout: Check for all positive values

When creating a FlowLayout container, setting a specific size on it, and
adding a child to it, as per the attached testcase, it crashes. The line
on the backtrace doesn't really make sense, but from looking over it, it
appears that it's probably because priv->line_natural is NULL. The
attached patch makes it so in this case, priv->line_natural is
allocated.

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

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agomodules: Use 0.10 branch for GStreamer packages
Emmanuele Bassi [Tue, 22 May 2012 12:58:40 +0000 (13:58 +0100)]
modules: Use 0.10 branch for GStreamer packages

12 years agovs9/clutter.sln: Fix missing build item
Chun-wei Fan [Mon, 21 May 2012 17:50:12 +0000 (01:50 +0800)]
vs9/clutter.sln: Fix missing build item

12 years agoBug 676150 GDK: Fix build on Windows
Chun-wei Fan [Wed, 16 May 2012 09:36:38 +0000 (17:36 +0800)]
Bug 676150 GDK: Fix build on Windows

-Don't include unistd.h and stdint.h unconditionally as not all Windows
 compilers have them around.
-Only include cogl/cogl-xlib.h when it is really supported by Cogl and GDK.
-sys/ioctl.h is not available on Windows (MinGW/MSVC).
-Correct the call to cogl_renderer_set_winsys_id:
 (backend_cogl->cogl_renderer, COGL_WINSYS_ID_WGL) ->
 (renderer, COGL_WINSYS_ID_WGL)

12 years agoactor: Add a custom scriptable "margin" property
Bastian Winkler [Sat, 19 May 2012 12:37:08 +0000 (14:37 +0200)]
actor: Add a custom scriptable "margin" property

The property uses an array with the following CSS style syntax

 [ top, right, bottom, left ] or
 [ top, left/right, bottom ] or
 [ top/bottom, left/right ] or
 [ top/right/bottom/left ]

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

12 years agoClutterText: Cannot pass NULL string to clutter_text_set_text()
Dominique Bureau [Fri, 11 May 2012 17:26:50 +0000 (13:26 -0400)]
ClutterText: Cannot pass NULL string to clutter_text_set_text()

Passing a NULL buffer to clutter_text_set_text() does not behave the same
way as passing an empty string "" (as specified in the documentation).
This was working as expected previously, but somehow the behaviour changed
at some point and created 2 new issues:
- Passing a NULL pointer will not reset the string
- If the ClutterText is editable, it will segfault in strcmp

Validations have been added to prevent this.

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

12 years agoClutterDropAction: Avoid accessing priv->stage is not yet resolved.
Tristan Van Berkom [Thu, 17 May 2012 22:08:57 +0000 (18:08 -0400)]
ClutterDropAction: Avoid accessing priv->stage is not yet resolved.

This fixes drop_action_unregister() to not call g_object_get_data()
on priv->stage if not yet resolved. This can happen if the action's
actor was destroyed before ever being mapped.

12 years agoscroll-actor: Check for point equality in the internal setter
Emmanuele Bassi [Fri, 18 May 2012 17:00:30 +0000 (18:00 +0100)]
scroll-actor: Check for point equality in the internal setter

The public API should just accept any valid value; it's up to the
internal setter to check if we're getting the same value as the one
currently set.

12 years agoscroll-actor: Fix ->transition not being reset
Bastien Nocera [Fri, 18 May 2012 16:34:18 +0000 (17:34 +0100)]
scroll-actor: Fix ->transition not being reset

When the transition was removed from the scroll-actor manually,
to cancel a not-finished animation, the transition struct member
wasn't reset to NULL.

This fixes this problem, and removes the need for the struct member
to be reset manually when animation has completed.

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

12 years agoMove scroll actor test to the examples
Emmanuele Bassi [Wed, 16 May 2012 15:12:20 +0000 (16:12 +0100)]
Move scroll actor test to the examples

Nothing specific to test, and the code is idiomatic enough to be used as
an example.

12 years agotable-layout: Remove unused animation helpers
Bastian Winkler [Wed, 16 May 2012 11:57:44 +0000 (13:57 +0200)]
table-layout: Remove unused animation helpers

They aren't used since ClutterTableLayout switched to the implicit
animations API.

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

12 years agoVS property sheets: Correct "install" process
Chun-wei Fan [Wed, 16 May 2012 10:58:53 +0000 (18:58 +0800)]
VS property sheets: Correct "install" process

Fix the location where clutter-win32.h is "installed".

12 years agoVisual C++ support: Fix clutter.def generation
Chun-wei Fan [Wed, 16 May 2012 10:36:51 +0000 (18:36 +0800)]
Visual C++ support: Fix clutter.def generation

I forgot about the Visual C++ 2010 files... :|

12 years agoVisual C++ support: Fix clutter.def generation
Chun-wei Fan [Wed, 16 May 2012 10:35:27 +0000 (18:35 +0800)]
Visual C++ support: Fix clutter.def generation

Some Windows-specific functions were not exported due to this problem.

12 years agoVisual C++ support: Avoid redefinition warnings
Chun-wei Fan [Wed, 16 May 2012 09:21:10 +0000 (17:21 +0800)]
Visual C++ support: Avoid redefinition warnings

CLUTTER_WINDOWING_GDK is defined in the (pre-configured) clutter-config.h,
so don't define that in the Projects again.

12 years agotext: Add missing introspection annotations
Bastian Winkler [Mon, 14 May 2012 23:44:51 +0000 (01:44 +0200)]
text: Add missing introspection annotations

Add allow-none annotations where appropriate

12 years agokeyframe-transition: Create a new interval if necessary
Bastian Winkler [Mon, 14 May 2012 14:32:53 +0000 (16:32 +0200)]
keyframe-transition: Create a new interval if necessary

When setting up the transition manually by calling

  clutter_keyframe_transition_set_key_frame (transition, n, keys);
  clutter_keyframe_transition_set_values (transition, n, values);
  clutter_keyframe_transition_set_modes (transition, n, modes);

the frame doesn't have a valid interval when calling set_keys(), so we
need to check its existence and create it if necessary.

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

12 years agokeyframe-transition: Documentation fixes
Bastian Winkler [Mon, 14 May 2012 14:17:34 +0000 (16:17 +0200)]
keyframe-transition: Documentation fixes

Update the documentation to use the right symbols

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

12 years agoscroll-actor: Paint children in pick mode
Emmanuele Bassi [Tue, 15 May 2012 14:06:20 +0000 (15:06 +0100)]
scroll-actor: Paint children in pick mode

Chaining up to the parent's implementation of pick() is not enough: we
need to paint our children explicitly because of the compatibility mode
checks we use to avoid breaking custom containers.

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

12 years agoscroll-actor: Implement pick()
Emmanuele Bassi [Mon, 14 May 2012 09:33:13 +0000 (10:33 +0100)]
scroll-actor: Implement pick()

We need to clip the children during picking as well as we do when
painting, to avoid reactive children outside of the visible area
receiving events.

This also allows us to refactor some common code into proper functions.

12 years agoVisual C++ support: Add support to build GDK backend
Chun-wei Fan [Mon, 14 May 2012 08:18:13 +0000 (16:18 +0800)]
Visual C++ support: Add support to build GDK backend

-Add configuration in Clutter projects to add option to build Clutter with
 the GDK3 backend in addition to the Win32 backend
-Add another preconfigured clutter-config.h.win32_GDK which contains
 backend configs for both GDK3 and Win32 windowing and input.

12 years agoexamples/canvas: Resize the canvas on allocation changes
Emmanuele Bassi [Fri, 11 May 2012 16:38:53 +0000 (17:38 +0100)]
examples/canvas: Resize the canvas on allocation changes

This should show how to make a Canvas resize whenever the actor that
uses it as content changes size. For good measure, it also shows how to
coalesce multiple allocations into one Canvas resize through a timeout
source.

12 years agobuild: Drop version check on auto*
Emmanuele Bassi [Fri, 11 May 2012 16:37:20 +0000 (17:37 +0100)]
build: Drop version check on auto*

Just use autoreconf, to avoid having to deal with changes in the version
of autotools.

If somebody has more recent autotools but the symbolic links used by
autoreconf are still pointing to an old version then they can also fix
their own installation, or get a better distribution.

12 years agomodules: Point to the correct branch of Cogl
Emmanuele Bassi [Fri, 11 May 2012 12:48:41 +0000 (13:48 +0100)]
modules: Point to the correct branch of Cogl

Clutter requires the cogl-1.10 branch of Cogl.

12 years agoactor: Include margin in explicit sizes for all cases
Emmanuele Bassi [Wed, 9 May 2012 14:03:51 +0000 (15:03 +0100)]
actor: Include margin in explicit sizes for all cases

When asking for the preferred width and height of an actor, in case
only one of either the minimum or the natural width is set, the margin
offsets should also be applied.

12 years agoPut bind-constraint back into the interactive tests
Emmanuele Bassi [Tue, 8 May 2012 09:51:14 +0000 (10:51 +0100)]
Put bind-constraint back into the interactive tests

The bind-constraint.c example still uses clutter_actor_animate(), and
it'd require some serious reworking to move it to
ClutterPropertyTransition or to implicit animations.

12 years agoscore: Add deprecation annotations to all docs
Emmanuele Bassi [Tue, 8 May 2012 15:13:26 +0000 (16:13 +0100)]
score: Add deprecation annotations to all docs

A single deprecation to the long-desc is not enough.

12 years agoscore: Fix version of the deprecation annotations
Emmanuele Bassi [Tue, 8 May 2012 15:06:59 +0000 (16:06 +0100)]
score: Fix version of the deprecation annotations

ClutterScore was deprecated in Clutter 1.8, not 1.10.

12 years agoexamples: Add an example of layout manager
Emmanuele Bassi [Fri, 4 May 2012 16:43:30 +0000 (17:43 +0100)]
examples: Add an example of layout manager

The MultiLayout shows how to write a layout manager with two policies,
and to use the easing state of a child to interpolate the allocation.

12 years agoAdd rounded corners rectangle example using Canvas
Emmanuele Bassi [Thu, 3 May 2012 12:53:29 +0000 (13:53 +0100)]
Add rounded corners rectangle example using Canvas

An old request: how to create a rectangle with rounded corners with
Clutter; we use ClutterCanvas and Cairo because we want anti-aliased
edges.

12 years agox11/device-manager-xi2: Fix assertions with touch
Bastien Nocera [Thu, 3 May 2012 16:58:12 +0000 (18:58 +0200)]
x11/device-manager-xi2: Fix assertions with touch

When getting touch events, the device manager would try
to pass an invalid device to translate_axes().

clutter_event_set_device() will only update event->touch.device
for touch events, not event->motion.device, as used.

Fixes Totem crashing on mouse motion/button press when using
a touchpad.

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

12 years agoevent: Fix copying touch events
Bastien Nocera [Thu, 3 May 2012 16:56:45 +0000 (18:56 +0200)]
event: Fix copying touch events

We were trying to copy motion axes instead of touch ones.

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