profile/ivi/clutter.git
13 years agobuild: Fix the path to the tslib event source
Emmanuele Bassi [Mon, 4 Jul 2011 15:09:41 +0000 (16:09 +0100)]
build: Fix the path to the tslib event source

13 years agoclutter-media: mention the asynchronous behavior of set_playing() in the doc.
Samuel Degrande [Fri, 20 May 2011 13:57:51 +0000 (15:57 +0200)]
clutter-media: mention the asynchronous behavior of set_playing() in the doc.

Depending on the ClutterMedia implementation, the set_playing()
call can be asynchronous, the playing state's change being not
immediate.

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

13 years agoclutter-text: Always update cursor positions when painting
Jasper St. Pierre [Sun, 3 Jul 2011 20:43:17 +0000 (16:43 -0400)]
clutter-text: Always update cursor positions when painting

The cursor's on-screen rectangle is defined in terms of the text
length, the current index, and text_x and text_y, which hold the text
offset in overflowing text fields.

When deleting large amounts of text, text_x is set to 0. In some
edge case branch paths, the cursor rectangle could be calculated
after the current index and text length were updated, but before
the text_x offset could be. This left a negative x position, which
consequently blew up Cogl and the widget.

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

13 years agoDeprecate mallum's add() macros for Group and Stage
Emmanuele Bassi [Sun, 3 Jul 2011 18:31:15 +0000 (19:31 +0100)]
Deprecate mallum's add() macros for Group and Stage

I think we're way past overdue.

13 years agobuild: fix Makefile.am to build glx tfp code on x11 platforms
Robert Bragg [Mon, 4 Jul 2011 14:16:50 +0000 (15:16 +0100)]
build: fix Makefile.am to build glx tfp code on x11 platforms

It was already the intention that the ClutterGLXTexturePixmap API should
be built and made available on any X11 based platforms since there was
nothing specific about the API and it is useful to have for
compatibility. There was a mistake in the Makefile.am though which meant
only the header was getting installed but the code wasn't being built.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
13 years agoglx-tfp: Don't include glx.h
Robert Bragg [Mon, 4 Jul 2011 14:14:52 +0000 (15:14 +0100)]
glx-tfp: Don't include glx.h

Since the implementation of ClutterGLXTexturePixmap has nothing GLX
specific about it (it is simply layered on top of
ClutterX11TexturePixmap) we don't need to include glx.h. Removing this
include also means that the code can be built for compatibility against
GLES drivers.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
13 years agobuild: check COGL_HAS_GLES2 to check for gles2 support
Robert Bragg [Mon, 4 Jul 2011 14:09:42 +0000 (15:09 +0100)]
build: check COGL_HAS_GLES2 to check for gles2 support

We were checking HAVE_COGL_GLES2 but this is not publicly defined by
Cogl so since splitting Cogl from Clutter test-cogl-materials.c would
not have built against gles2 since it would end up enabling the GL
specific code path which would reference an undefined symbol.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
13 years agoBump up the Cogl dependency
Emmanuele Bassi [Fri, 1 Jul 2011 16:26:10 +0000 (17:26 +0100)]
Bump up the Cogl dependency

We need 1.7.2 at least.

13 years agoArrays in parameters were not correctly annotated.
Peter Ward [Wed, 29 Jun 2011 03:01:20 +0000 (13:01 +1000)]
Arrays in parameters were not correctly annotated.

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

13 years agopaint-volume: remove more is_axis_aligned assertions
Robert Bragg [Wed, 22 Jun 2011 18:54:19 +0000 (19:54 +0100)]
paint-volume: remove more is_axis_aligned assertions

This removes the is_axis_aligned assertions for the width/height/depth
getters and setters, since for example it is legitimate to query the
width, height or depth of a container's child actors which aren't
necessarily axis aligned.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
13 years agobackend-cogl: update in line with Cogl API change
Robert Bragg [Tue, 28 Jun 2011 13:47:35 +0000 (14:47 +0100)]
backend-cogl: update in line with Cogl API change

cogl_renderer_xlib_set_foreign_display was renamed to
cogl_xlib_renderer_set_foriegn_display so this is the corresponding
change to clutter.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
13 years agowin32: use typesafe cogl_win32_renderer_handle_event
Robert Bragg [Tue, 28 Jun 2011 13:01:22 +0000 (14:01 +0100)]
win32: use typesafe cogl_win32_renderer_handle_event

The generic cogl_renderer_handle_native_event API was removed from the
Cogl public API in favour of typesafe functions, so this updates the
win32 backend in line with that change.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
13 years agodoc/RELEASING: Fix the check for diffs from origin/master
Neil Roberts [Wed, 29 Jun 2011 15:16:25 +0000 (16:16 +0100)]
doc/RELEASING: Fix the check for diffs from origin/master

The recommended command to check for differences from master to the
remote master was using git log with a range from the local master to
the remote master but this wouldn't work if the local master is ahead
of the remote master because the range is backwards. This patch
changes it to recommend git diff --stat instead because then the
command would work even if the two branches have diverged.

13 years agoAnnotate ClutterTexture::load-finished with the correct type for error.
Peter Ward [Fri, 24 Jun 2011 04:31:31 +0000 (14:31 +1000)]
Annotate ClutterTexture::load-finished with the correct type for error.

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

13 years agobuild: Create and install clutter-glx pkg-config file
Emmanuele Bassi [Fri, 24 Jun 2011 18:22:22 +0000 (19:22 +0100)]
build: Create and install clutter-glx pkg-config file

For backward compatibility.

13 years agoSupport multiple pointers in ClutterDragAction.
Peter Ward [Tue, 21 Jun 2011 13:17:51 +0000 (23:17 +1000)]
Support multiple pointers in ClutterDragAction.

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

13 years agodocs: Remove the in-tree cogl fixxref option
Emmanuele Bassi [Tue, 21 Jun 2011 09:52:44 +0000 (10:52 +0100)]
docs: Remove the in-tree cogl fixxref option

Cogl has been moved out of tree.

13 years agodocs: Fix the GLX section
Emmanuele Bassi [Mon, 20 Jun 2011 18:45:14 +0000 (19:45 +0100)]
docs: Fix the GLX section

The whole thing should just go away.

13 years agodocs: Fix deprecation notice for ClutterBehaviour
Emmanuele Bassi [Mon, 20 Jun 2011 18:44:55 +0000 (19:44 +0100)]
docs: Fix deprecation notice for ClutterBehaviour

13 years agodocs: Fix up labels in the constraint example image
Emmanuele Bassi [Mon, 20 Jun 2011 18:44:33 +0000 (19:44 +0100)]
docs: Fix up labels in the constraint example image

13 years agodocs: Add the (now deprecated) GLX texture-pixmap
Emmanuele Bassi [Mon, 20 Jun 2011 17:46:56 +0000 (18:46 +0100)]
docs: Add the (now deprecated) GLX texture-pixmap

It was missing from the API reference.

13 years agodocs: Add the Deprecate tag to Behaviours
Emmanuele Bassi [Mon, 20 Jun 2011 17:42:08 +0000 (18:42 +0100)]
docs: Add the Deprecate tag to Behaviours

And link the migration guide.

13 years agodocs: Fix duplicate symbol in the sections list
Emmanuele Bassi [Mon, 20 Jun 2011 17:40:31 +0000 (18:40 +0100)]
docs: Fix duplicate symbol in the sections list

13 years agobuild: Build the GLX symbols
Emmanuele Bassi [Mon, 20 Jun 2011 17:26:34 +0000 (18:26 +0100)]
build: Build the GLX symbols

The change from the GLX backend to the Cogl backend left out the GLX
source code from the list of source files to be built.

13 years agoFix the deprecation guard for ClutterGLXTexturePixmap
Emmanuele Bassi [Mon, 20 Jun 2011 17:22:06 +0000 (18:22 +0100)]
Fix the deprecation guard for ClutterGLXTexturePixmap

It's CLUTTER_DISABLE_DEPRECATED.

13 years agodocs: Document ClutterDropAction
Emmanuele Bassi [Fri, 17 Jun 2011 16:22:01 +0000 (17:22 +0100)]
docs: Document ClutterDropAction

And add it to the API reference.

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

13 years agoAdd ClutterDropAction
Emmanuele Bassi [Fri, 17 Jun 2011 15:54:31 +0000 (16:54 +0100)]
Add ClutterDropAction

ClutterDropAction is an Action sub-class that allows writing actors that
react to dragged actors being dropped on them.

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

13 years agodrag-action: Remove the drag handle on destruction
Emmanuele Bassi [Fri, 17 Jun 2011 15:53:22 +0000 (16:53 +0100)]
drag-action: Remove the drag handle on destruction

When the drag handle actor is destroyed we should unset the field inside
the DragAction, to avoid having stale pointers lying around.

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

13 years agodrag-action: Use the dragged actor private API
Emmanuele Bassi [Fri, 17 Jun 2011 15:52:25 +0000 (16:52 +0100)]
drag-action: Use the dragged actor private API

Use the newly added private API on ClutterStage to track the currently
dragged actor.

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

13 years agostage: Allow tracking dragged actors
Emmanuele Bassi [Fri, 17 Jun 2011 15:51:05 +0000 (16:51 +0100)]
stage: Allow tracking dragged actors

We should be able to internally attach the actor currently being dragged
to the device that is dragging it.

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

13 years agodocs: Fix up the API reference
Emmanuele Bassi [Mon, 20 Jun 2011 13:26:57 +0000 (14:26 +0100)]
docs: Fix up the API reference

13 years agobuild: Use tar-ustar and dist-xz to dist tarballs
Emmanuele Bassi [Mon, 20 Jun 2011 12:59:14 +0000 (13:59 +0100)]
build: Use tar-ustar and dist-xz to dist tarballs

13 years agobuild: Update the API reference build
Emmanuele Bassi [Mon, 20 Jun 2011 12:56:46 +0000 (13:56 +0100)]
build: Update the API reference build

Add the Cogl prefix to the fix-cross-references script options, and
update the location of the extra headers.

13 years agostage: Maintain the motion event delivery invariants
Emmanuele Bassi [Mon, 20 Jun 2011 12:53:09 +0000 (13:53 +0100)]
stage: Maintain the motion event delivery invariants

It is possible, by calling clutter_set_motion_events_enabled() prior to
the creation of any stage, to control the per-actor motion event
delivery flag on each newly created stage. Since we deprecated the
global accessor functions in favour of the per-Stage ones, we need to
remove the call to clutter_get_motion_events_enabled() inside the
ClutterStage instance initialization, and replace it with an internal
function.

This code will go away when we can finally break API and remove the
deprecated functions.

13 years agostage: Make per-actor motion event delivery accessors public
Emmanuele Bassi [Mon, 20 Jun 2011 10:41:28 +0000 (11:41 +0100)]
stage: Make per-actor motion event delivery accessors public

Complete the quest of commit bc548dc86271d38918d310c26c9c59de76218d16
by making the ClutterStage methods for controlling the per-actor motion
and crossing event delivery public, and deprecating the global ones.

13 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 19 Jun 2011 10:14:35 +0000 (12:14 +0200)]
Updated Spanish translation

13 years agoactor: documents _get/apply_relative_transform_matrix
Robert Bragg [Fri, 17 Jun 2011 17:27:45 +0000 (18:27 +0100)]
actor: documents _get/apply_relative_transform_matrix

Although this patch doesn't make them public, it documents the
_clutter_actor_get/apply_relative_transform_matrix functions so they
could easily be made public if desired. I think these API could be
useful to have publicly, and I originally documented them because I
thought they would be needed in the MX toolkit.

13 years agoactor: Don't use propagated_one_redraw to determine effect dirty state
Neil Roberts [Fri, 17 Jun 2011 16:27:09 +0000 (17:27 +0100)]
actor: Don't use propagated_one_redraw to determine effect dirty state

Previously ClutterActor was using priv->propagated_one_redraw to
determine whether to pass CLUTTER_EFFECT_PAINT_ACTOR_DIRTY to the
paint method of the effect. This isn't a good idea because the
propagated_one_redraw flag is cleared whenever clutter_actor_paint is
called, even if the actor isn't actually painted because of the zero
opacity shortcut. Instead of this, ClutterActor now has a separate
flag called is_dirty that gets set whenever queue_redraw_full is
called or whenever the queue redraw signal is bubbled up from a child
actor. The flag is only cleared in clutter_actor_paint if the effects
are actually run. Therefore it will stay set even if the opacity is
zero or if the parent actor decides not to paint the child.

Previously there were two places set propagated_one_redraw to FALSE -
once if the opacity is zero and once just before we emit the paint
signal.  Now that propagated_one_redraw is only used to determine
whether to pass on the queue redraw signal it seems to make sense to
just clear it in one place right at the start of clutter_actor_paint.

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

13 years agoactor: review use of _apply_modelview_transform_recursive
Robert Bragg [Fri, 17 Jun 2011 16:44:16 +0000 (17:44 +0100)]
actor: review use of _apply_modelview_transform_recursive

On reviewing the clutter-actor.c code using
_apply_modelview_transform_recursive I noticed various comments stating
that it will never call the stage's ->apply_transform vfunc to transform
into eye coordinates, but actually looking at the implementation that's
not true. The comments probably got out of sync with an earlier
implementation that had that constraint. This removes the miss-leading
comments and also updates various uses of the api where we were manually
applying the stage->apply_transform.

13 years agogroup: Handle list modification while destroying children
Robert Bragg [Fri, 17 Jun 2011 15:23:35 +0000 (16:23 +0100)]
group: Handle list modification while destroying children

This makes the dispose code that destroys children resilient against
priv->children being modified during child destruction.

13 years agodebug: Use cogl_primitive api for paint-volume visualization
Robert Bragg [Thu, 16 Jun 2011 16:50:50 +0000 (17:50 +0100)]
debug: Use cogl_primitive api for paint-volume visualization

Instead of using the cogl_vertex_buffer API this uses the more concise
cogl_primitive API instead. The aim is to get rid of the
cogl_vertex_buffer API eventually so we should be trying out the
replacement API wherever possible.

13 years agodebug: disable culling with CLUTTER_PAINT=paint-volumes
Robert Bragg [Thu, 16 Jun 2011 16:24:26 +0000 (17:24 +0100)]
debug: disable culling with CLUTTER_PAINT=paint-volumes

When using CLUTTER_PAINT=paint-volumes to visualize the paint-volumes of
actors we were already disabling clipped-redraws because we are drawing
extra geometry that the actors don't know about but we didn't disable
culling. This was resulting in actors disappearing while using this
debug option.

13 years agodebug: avoid visualization code during picking
Robert Bragg [Thu, 16 Jun 2011 16:22:30 +0000 (17:22 +0100)]
debug: avoid visualization code during picking

This makes sure we don't try and draw paint-volumes or culling results
during a pick cycle since that results in us reading back invalid ids
from the pick-buffer.

13 years agoclutter-actor: Add a debug flag for disabling offscreen redirect
Neil Roberts [Mon, 6 Jun 2011 17:22:20 +0000 (18:22 +0100)]
clutter-actor: Add a debug flag for disabling offscreen redirect

This adds CLUTTER_PAINT=disable-offscreen-redirect to help diagnose
problems with the correct opacity changes. This just makes it so that
it never installs the flatten effect so it will never automatically
redirect an actor offscreen.

13 years agokeysyms: Update the key symbols
Emmanuele Bassi [Fri, 17 Jun 2011 11:14:15 +0000 (12:14 +0100)]
keysyms: Update the key symbols

Re-sync with the X.org headers.

13 years agoRemove an unused variable
Emmanuele Bassi [Fri, 17 Jun 2011 11:03:21 +0000 (12:03 +0100)]
Remove an unused variable

And the compiler warning that comes with it.

13 years agotests/cally: Remove last uses of clutter_group_add()
Emmanuele Bassi [Thu, 16 Jun 2011 16:11:39 +0000 (17:11 +0100)]
tests/cally: Remove last uses of clutter_group_add()

13 years agoRemove usage of clutter_group_add()
Emmanuele Bassi [Thu, 16 Jun 2011 16:07:32 +0000 (17:07 +0100)]
Remove usage of clutter_group_add()

The macro is there for mallum eyes only.

13 years agopaint-volumes: remove is_axis_aligned assert for _union
Robert Bragg [Thu, 16 Jun 2011 14:22:03 +0000 (15:22 +0100)]
paint-volumes: remove is_axis_aligned assert for _union

This removes the pv->is_xis_aligned assertion in
_clutter_paint_volume_union. We were already considering the case where
the second volume may not be axis aligned and aligning it into a
temporary variable in that case, but we now also consider that the first
pv may also not be aligned.

13 years agopaint-volumes: avoid is_complete assert in _axis_align
Robert Bragg [Thu, 16 Jun 2011 14:18:46 +0000 (15:18 +0100)]
paint-volumes: avoid is_complete assert in _axis_align

The removes the pv->is_complete assertion from
_clutter_paint_volume_axis_align() and instead if the volume isn't
complete it calls _clutter_paint_volume_complete().

13 years agobuild: Replace AC_HELP_STRING with AS_HELP_STRING
Emmanuele Bassi [Thu, 16 Jun 2011 12:35:22 +0000 (13:35 +0100)]
build: Replace AC_HELP_STRING with AS_HELP_STRING

The latter is the new version of the former.

13 years agopaint-volumes: fix unioning with empty volumes
Robert Bragg [Thu, 16 Jun 2011 11:33:25 +0000 (12:33 +0100)]
paint-volumes: fix unioning with empty volumes

When calculating the union of a volume with an empty volume we aim to
simply take the contents of the non-empty volume, but we were not
copying the flags across. We now use
_clutter_paint_volume_set_from_volume which copies all the flags except
the is_static flag.

13 years agopaint-volumes: remove alignment constraint for _set_origin
Robert Bragg [Thu, 16 Jun 2011 11:31:50 +0000 (12:31 +0100)]
paint-volumes: remove alignment constraint for _set_origin

The implementation for clutter_paint_volume_set_origin can cope with
volumes that are not axis aligned so this remove the is_axis_aligned
assertion.

13 years agopaint-volumes: avoid trashing is_static state
Robert Bragg [Thu, 16 Jun 2011 11:28:37 +0000 (12:28 +0100)]
paint-volumes: avoid trashing is_static state

In _clutter_paint_volume_set_from_volume we were using memcpy to simply
copy everything from one volume to another, but that meant we were
trashing the is_static flag which determines if the destination
paint-volume was slice allocated or not.

13 years agopaint-volumes: remove alignment constraint for completion
Robert Bragg [Thu, 16 Jun 2011 11:19:49 +0000 (12:19 +0100)]
paint-volumes: remove alignment constraint for completion

This removes the constraint that a paint-volume must be axis aligned
before _clutter_paint_volume_complete can be called. NB: A paint volume
is represented by one origin vertex and then three axis vertices to
define the width, height and depth of the volume. It's straightforward
to use the vectors from the origin to the axis vertices to deduce the
other 4 vertices so we can remove the is_axis_aligned assertion.

13 years agoclutter-stage: Allow a wider range of visible z values
Robert Bragg [Mon, 6 Jun 2011 16:40:57 +0000 (17:40 +0100)]
clutter-stage: Allow a wider range of visible z values

Since eef9078f the translation of the camera away from the z=zero
plane was hardcoded at 50 which is approximately half way between the
default z_near and z_far values. This ended up with quite a small
distance in user-space coordinates to the far plane with the default
stage size and this was causing test-texture-quality to clip the actor
early.

This patch makes it try to calculate a reasonable value for the
position of the z=0 plane as well as a value for z_far so we maximize
the space in between the z=0 plane and the near plane and we have a
predictable amount of space behind the stage before hitting the far
clipping plane, while considering the trade off of loosing depth
precision by pushing the far plane too far back relative to the near
plane.

With the default fov of 60° it's not possible to use the stage size to
define the gap in-front of the stage plane; only ~87% of the stage size
is possible as an upper limit. We make 85% of the stage_height available
assuming you have a fov of 60°. We consistently provide 10 times the
stage height of space behind the stage regardless of the fov.

It seems worth noting here that we went around in circles a few times
over how to calculate the gaps since there are a number of trade offs to
consider and they also affect the complexity of the solution. In the end
we went for simplicity but commented the issues well enough hopefully so
we can develop a more elaborate solution if we ever have a use-case.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2625

13 years agoclutter-stage: Don't override the user's perspective matrix
Neil Roberts [Mon, 4 Apr 2011 17:42:52 +0000 (18:42 +0100)]
clutter-stage: Don't override the user's perspective matrix

Since eef9078f ClutterStage updates the aspect ratio of the
perspective matrix whenever the size of the stage changes. This meant
that if an application tries to set its own perspective matrix then
part of it would get overridden. It's not really clear what the
use-case of setting the perspective on the stage should be but it
seems like the safest bet is to always try to preserve the
application's request. The documentation for the function has been
tweaked to discourage its use.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2625

13 years agomake some parts of the stage-window interface optional
Robert Bragg [Wed, 11 May 2011 18:59:52 +0000 (19:59 +0100)]
make some parts of the stage-window interface optional

Some parts of the StageWindow interface aren't meaningful for all window
systems. This makes stage_window_set_title/fullscreen/cursor_visible
optional instead of requiring those window systems to implement empty
stubs. Notably the empty stubs we had in the Cogl backend (previously
the EGL backend) used g_warning to report the feature as unsupported and
that was causing conformance test failures.

13 years agoUpdate the location of the cex100 header in the ignore file
Emmanuele Bassi [Wed, 15 Jun 2011 12:07:04 +0000 (13:07 +0100)]
Update the location of the cex100 header in the ignore file

13 years agoDo not include clutter-egl.h unconditionally
Emmanuele Bassi [Wed, 15 Jun 2011 12:05:18 +0000 (13:05 +0100)]
Do not include clutter-egl.h unconditionally

13 years agobackend-cogl: fix s/egl/cogl/ naming left-over
Robert Bragg [Wed, 15 Jun 2011 11:43:47 +0000 (12:43 +0100)]
backend-cogl: fix s/egl/cogl/ naming left-over

13 years agobuild: Adds missing clutter-glx.h
Robert Bragg [Wed, 15 Jun 2011 11:41:08 +0000 (12:41 +0100)]
build: Adds missing clutter-glx.h

13 years agobuild: Adds missing clutter-egl-headers.h
Robert Bragg [Wed, 15 Jun 2011 11:28:44 +0000 (12:28 +0100)]
build: Adds missing clutter-egl-headers.h

13 years agounify egl and glx backends as "cogl" backend
Robert Bragg [Sun, 8 May 2011 23:27:10 +0000 (00:27 +0100)]
unify egl and glx backends as "cogl" backend

Since GLX and EGL are abstracted by Cogl the two backends are both
implementing everything using the Cogl API and they are almost
identical.

This updates the egl backend to support everything that the glx backend
supports. Now that EGL and GLX are abstracted by Cogl, the plan is that
we will squash the clutter-egl/glx backends into one. Since the EGL
backend in clutter can conditionally not depend on X11 we will use the
EGL backend as the starting point of our common backend.

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

13 years agoegl: fix args to cogl_onscreen_x11_set_foreign_window_xid
Robert Bragg [Mon, 9 May 2011 00:09:39 +0000 (01:09 +0100)]
egl: fix args to cogl_onscreen_x11_set_foreign_window_xid

We hadn't updated the egl backend inline with a change to the arguments
that cogl_onscreen_x11_set_foreign_window_xid would expect and that was
causing a compilation error.

13 years agostage: Ignore do_update() on unrealized stages
Emmanuele Bassi [Tue, 14 Jun 2011 15:11:54 +0000 (16:11 +0100)]
stage: Ignore do_update() on unrealized stages

An unrealized stage has no resources set yet, so we might as well skip
it during the master clock spin.

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

13 years agobackend: Do not call ensure_context() with NULL stage
Emmanuele Bassi [Tue, 14 Jun 2011 14:50:42 +0000 (15:50 +0100)]
backend: Do not call ensure_context() with NULL stage

Always call ensure_context() if we have a valid Stage.

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

13 years agoglx: Ignore ensuring context on NULL stages
Emmanuele Bassi [Tue, 14 Jun 2011 14:50:21 +0000 (15:50 +0100)]
glx: Ignore ensuring context on NULL stages

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

13 years agobuild: Disable deprecated symbols during development cycles
Emmanuele Bassi [Tue, 14 Jun 2011 13:47:14 +0000 (14:47 +0100)]
build: Disable deprecated symbols during development cycles

And add a configure switch to toggle them.

13 years agoglx: Remove unused Atom members from ClutterBackendGLX
Emmanuele Bassi [Tue, 14 Jun 2011 10:36:01 +0000 (11:36 +0100)]
glx: Remove unused Atom members from ClutterBackendGLX

The atoms were moved to the shared X11 backend structure ages ago.

13 years agodocs: Add symbols index for 1.8
Emmanuele Bassi [Tue, 14 Jun 2011 00:02:09 +0000 (01:02 +0100)]
docs: Add symbols index for 1.8

13 years agoClutterModifierType: Port fix from GDK to clutter's GDK copy
Colin Walters [Mon, 16 May 2011 16:41:10 +0000 (12:41 -0400)]
ClutterModifierType: Port fix from GDK to clutter's GDK copy

See https://bugzilla.gnome.org/show_bug.cgi?id=634994 where GDK was
modified to include all flag values, which helps bindings.  Port this
fix to Clutter's copy of GDK.

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

13 years agoPost-release version bump to 1.7.3
Emmanuele Bassi [Mon, 13 Jun 2011 22:46:21 +0000 (23:46 +0100)]
Post-release version bump to 1.7.3

13 years agoRelease Clutter 1.7.2 (snapshot)
Emmanuele Bassi [Mon, 13 Jun 2011 16:24:28 +0000 (17:24 +0100)]
Release Clutter 1.7.2 (snapshot)

13 years agobuild: Put back ChangeLog.pre-git-import to unbreak distcheck
Emmanuele Bassi [Mon, 13 Jun 2011 22:14:39 +0000 (23:14 +0100)]
build: Put back ChangeLog.pre-git-import to unbreak distcheck

13 years agobuild: Fix up ChangeLog build generation
Emmanuele Bassi [Mon, 13 Jun 2011 16:20:19 +0000 (17:20 +0100)]
build: Fix up ChangeLog build generation

Since the pre-git-import ChangeLog has been moved, we need to put it
back in the list temporarily when generating the rest.

13 years agorelease rules: Add note for snapshots
Emmanuele Bassi [Mon, 13 Jun 2011 15:32:24 +0000 (16:32 +0100)]
release rules: Add note for snapshots

13 years agoclutter-text: new clutter_text_get_layout_offsets API
Philippe Normand [Fri, 4 Feb 2011 11:33:53 +0000 (12:33 +0100)]
clutter-text: new clutter_text_get_layout_offsets API

This new function can be used to retrieve the coordinates where the
ClutterText will draw the PangoLayout representing the text.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2553

13 years agoeffect: Rename RunFlags to PaintFlags
Emmanuele Bassi [Mon, 13 Jun 2011 14:58:46 +0000 (15:58 +0100)]
effect: Rename RunFlags to PaintFlags

Since run() was replaced and both paint() and pick() use the
enumeration.

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

13 years agoGive a chance to effects for running when picking
Tomeu Vizoso [Thu, 2 Jun 2011 12:16:23 +0000 (14:16 +0200)]
Give a chance to effects for running when picking

Some effects can change the actor's shape and position, so they need
to run when picking.

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

13 years agoRename ClutterEffect::run to ClutterEffect::paint
Tomeu Vizoso [Mon, 6 Jun 2011 06:44:11 +0000 (08:44 +0200)]
Rename ClutterEffect::run to ClutterEffect::paint

In preparation for adding ClutterEffect::pick

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

13 years agodocs: Fix Clutter API reference
Emmanuele Bassi [Mon, 13 Jun 2011 14:36:07 +0000 (15:36 +0100)]
docs: Fix Clutter API reference

13 years agoMerge branch 'swipe-action'
Emmanuele Bassi [Mon, 13 Jun 2011 13:39:03 +0000 (14:39 +0100)]
Merge branch 'swipe-action'

* swipe-action:
  test-swipe-action: Clean up the test code
  docs: Add the new actions to the API reference
  gesture-action: Remove the multi-device entry points
  swipe-action: Remove the required devices call
  swipe-action: Clean up
  gesture-action: Clean up
  Add ClutterSwipeAction and ClutterGestureAction

13 years agodocs: Update missing documentation
Emmanuele Bassi [Mon, 13 Jun 2011 12:27:46 +0000 (13:27 +0100)]
docs: Update missing documentation

13 years agoscript: Plug a leak
Emmanuele Bassi [Mon, 13 Jun 2011 12:08:26 +0000 (13:08 +0100)]
script: Plug a leak

The SignalInfo structure gained a couple of string fields that should be
deallocated when destroying the structure.

13 years agoscript: Allow warping to states
Emmanuele Bassi [Mon, 13 Jun 2011 12:07:04 +0000 (13:07 +0100)]
script: Allow warping to states

Do not just allow animating states connected to signals: add a "warp"
optional key that ends up calling clutter_state_warp_to_state(). This
is useful for debugging.

13 years agoSkip introspection for GValue ↔ CoglFixed API
Emmanuele Bassi [Mon, 13 Jun 2011 11:11:45 +0000 (12:11 +0100)]
Skip introspection for GValue ↔ CoglFixed API

It's pointless to introspect an API that it's not meant to be used
through introspection.

13 years agoscript: Use a weak ref to remove the signal emission hook
Emmanuele Bassi [Sun, 12 Jun 2011 10:27:34 +0000 (11:27 +0100)]
script: Use a weak ref to remove the signal emission hook

When an object goes away we should remove the emission hook for the
state transitions, to avoid leaving hooks around.

13 years agoscript: Rename "state" → "states"
Emmanuele Bassi [Sat, 11 Jun 2011 12:30:02 +0000 (13:30 +0100)]
script: Rename "state" → "states"

Make it clear that the key used when defining a state-based signal is
linked to the states of a ClutterState.

13 years agoscript: Allow resolving signals states added from code
Emmanuele Bassi [Fri, 10 Jun 2011 16:16:45 +0000 (17:16 +0100)]
script: Allow resolving signals states added from code

Currently, defining states for object signals can only be done by
defining a ClutterState inside the ClutterScript definition. We should
allow creating a (named) ClutterState in code, and associating it to a
ClutterScript instance — and have the Script resolve the "state" field
of a signal definition correctly.

13 years agotest-interactive: Add signal-based state transitions
Emmanuele Bassi [Mon, 7 Feb 2011 13:57:16 +0000 (13:57 +0000)]
test-interactive: Add signal-based state transitions

Use the newly added support for binding signal emissions to state
changes on a ClutterState.

13 years agoscript: Allow connecting signal to ClutterState states
Emmanuele Bassi [Mon, 7 Feb 2011 13:48:58 +0000 (13:48 +0000)]
script: Allow connecting signal to ClutterState states

One of the uses of a ClutterState state machine along with ClutterScript
is to provide a quick way to transition from state to state in response
to signal emitted on specific instances.

Connecting a real function, in code, to a specific signal does not
improve the ease of use of ClutterScript to define scenes.

By adding a new signal definition to the current one we can have both a
simple way to define application logic in code and in the UI definition
file.

The new syntax is trivial:

  {
    "name" : <signal name>,
    "state" : <state machine script id>,
    "target-state" : <target state>
  }

The ClutterState instance is identified by its script id, and the target
state is resolved at run-time, so it can be defined both in
ClutterScript or in code. Ideally, we should find a way to associate a
default ClutterState instance to the ClutterScript one that parses the
definition; this way we would be able to remove the "state" member, or
even "style" the behaviour of an object by replacing the ClutterState
instance.

The implementation uses a signal emission hook, to avoid knowing the
signal signature; we check the emitter of the signal against the object
that defined the signal, to avoid erroneous state changes.

13 years agoUpdated Czech translation
Marek Černocký [Mon, 13 Jun 2011 11:54:32 +0000 (13:54 +0200)]
Updated Czech translation

13 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 11 Jun 2011 15:36:23 +0000 (17:36 +0200)]
Updated Slovenian translation

13 years agobuild: include <cairo.h> not <cairo/cairo.h>
Robert Bragg [Fri, 10 Jun 2011 16:48:54 +0000 (17:48 +0100)]
build: include <cairo.h> not <cairo/cairo.h>

cairo.h is intended to be included as <cairo.h> not <cairo/cairo.h> as
is the style for clutter.h. If you have installed cairo to a custom
prefix then using cairo/cairo.h can result in unintentional use of the
system cairo headers, or if they aren't installed then it will result in
a failure to find the header.

13 years agotest-swipe-action: Clean up the test code
Emmanuele Bassi [Fri, 10 Jun 2011 14:01:13 +0000 (15:01 +0100)]
test-swipe-action: Clean up the test code

Remove unused code, and be more strict at discarding swipes on
constrained actors.

Add a note on the behaviour of each rectangle/action pair.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2585

13 years agodocs: Add the new actions to the API reference
Emmanuele Bassi [Fri, 10 Jun 2011 13:47:16 +0000 (14:47 +0100)]
docs: Add the new actions to the API reference

http://bugzilla.clutter-project.org/show_bug.cgi?id=2585

13 years agogesture-action: Remove the multi-device entry points
Emmanuele Bassi [Fri, 10 Jun 2011 13:45:50 +0000 (14:45 +0100)]
gesture-action: Remove the multi-device entry points

GestureAction supports a single device/touch point. We'll need touch
events supported in Clutter before adding the ability to set required
device/touch points on gestures.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2585

13 years agoswipe-action: Remove the required devices call
Emmanuele Bassi [Fri, 10 Jun 2011 13:44:06 +0000 (14:44 +0100)]
swipe-action: Remove the required devices call

The SwipeAction requires one device/touch point, and that is the default
for GestureAction — if GestureAction supported multiple devices/touch
points.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2585

13 years agoswipe-action: Clean up
Emmanuele Bassi [Fri, 10 Jun 2011 13:33:20 +0000 (14:33 +0100)]
swipe-action: Clean up

Clean up the documentation, and use a type safe GFlags marshaller for
the ::swept signal's @direction argument - instead of a generic integer
marshaller.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2585