Emmanuele Bassi [Tue, 20 Mar 2012 10:22:26 +0000 (10:22 +0000)]
Post-branching version bump to 1.11.1
Chun-wei Fan [Tue, 20 Mar 2012 08:36:51 +0000 (16:36 +0800)]
Update Visual C++ property sheets
-"Install" the newly-introduced headers
-Fix the situation when the Clutter sources are not unpacked in the root
folder of a drive (ex: Clutter is unpacked in c:\blah or d:\blah, instead
of c:\ or d:\)
Chun-wei Fan [Tue, 20 Mar 2012 08:16:57 +0000 (16:16 +0800)]
Update test-interactive Visual C++ projects
Link to GDK-Pixbuf as well.
Emmanuele Bassi [Mon, 19 Mar 2012 18:10:26 +0000 (18:10 +0000)]
cookbook/examples: Use real implicit animations
Instead of clutter_actor_animate().
Emmanuele Bassi [Mon, 19 Mar 2012 18:05:29 +0000 (18:05 +0000)]
timeline: Increment current-repeat after ::completed
The ::completed signal emission is part of the current cycle; repeating,
like the automatic reverse of the timeline's direction, happens after
the ::completed chain of handlers has been called.
Chao-Hsiung Liao [Mon, 19 Mar 2012 15:45:28 +0000 (23:45 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Emmanuele Bassi [Mon, 19 Mar 2012 15:23:08 +0000 (15:23 +0000)]
Post-release version bump to 1.9.17
Emmanuele Bassi [Mon, 19 Mar 2012 15:10:04 +0000 (15:10 +0000)]
Release Clutter 1.9.16 (1.10 release candidate 1)
Emmanuele Bassi [Mon, 19 Mar 2012 14:57:46 +0000 (14:57 +0000)]
docs: Fixes for the API reference
Emmanuele Bassi [Mon, 19 Mar 2012 14:47:55 +0000 (14:47 +0000)]
conform/anchors: Fix a dubious test
Changing the scale gravity should not affect the scale factors as well;
it was just a side-effect of the wrong implementation of the setter.
Emmanuele Bassi [Mon, 19 Mar 2012 14:40:46 +0000 (14:40 +0000)]
x11/keymap: Silence deprecation warnings around a fallback
We still use XKeycodeToKeysym() in a fallback path in case we're not
running on a decent enough system; XKeycodeToKeysym() is deprecated as
of version 1.12 of the X server, but since I don't want to copy a bunch
of code from GDK or, god forbid, from Xlib, for a fallback path, it's
probably more reasonable to just silence the compiler warnings - at
least until we can drop all the X compatibility crap, and just use
modern, or semi-modern, API.
Emmanuele Bassi [Mon, 19 Mar 2012 14:28:34 +0000 (14:28 +0000)]
x11: Add support for touch events
For the time being, we just relay everything we get from the X server to
the Clutter application.
Emmanuele Bassi [Mon, 19 Mar 2012 13:47:19 +0000 (13:47 +0000)]
event: Add ClutterTouchEvent
The ClutterTouchEvent structure contains the data relative to a touch
event.
Emmanuele Bassi [Mon, 19 Mar 2012 12:19:26 +0000 (12:19 +0000)]
gdk: Relay scroll delta from GDK
Emmanuele Bassi [Mon, 19 Mar 2012 14:27:54 +0000 (14:27 +0000)]
x11: Reset scroll valuators
We need to clear up the state on enter and leave, as well as when the X
server tells us that the device has changed.
Emmanuele Bassi [Mon, 19 Mar 2012 12:16:53 +0000 (12:16 +0000)]
x11: Add support for scroll valuators on XInput2.2
Emmanuele Bassi [Mon, 19 Mar 2012 12:15:41 +0000 (12:15 +0000)]
event: Expose precise scrolling information
Some events may contain precise scrolling information coming from
devices like trackpads and touchscreens. ClutterEvent should allow
setting and getting this information.
Emmanuele Bassi [Mon, 19 Mar 2012 12:13:01 +0000 (12:13 +0000)]
Check for XInput 2.2 extension
Carles Ferrando [Mon, 19 Mar 2012 00:15:12 +0000 (01:15 +0100)]
[l10n]Updated Catalan (Valencian) translation
Gil Forcada [Mon, 19 Mar 2012 00:15:07 +0000 (01:15 +0100)]
[l10n] Updated Catalan translation
Bruno Brouard [Sun, 18 Mar 2012 20:41:05 +0000 (21:41 +0100)]
Updated French translation
Alexander Shopov [Sun, 18 Mar 2012 18:29:17 +0000 (20:29 +0200)]
Updated Bulgarian translation
Daniel Nylander [Sun, 18 Mar 2012 10:04:34 +0000 (11:04 +0100)]
Updated Swedish translation
Emmanuele Bassi [Sun, 18 Mar 2012 08:07:56 +0000 (08:07 +0000)]
actor: Add ::transitions-completed signal
While you can get a per-transition notification of completion, it can be
convenient to also have a way to notify that all the transitions
involving an actor are complete. A simple signal triggered by the
removal of the last transition fits the bill pretty neatly.
Jasper St. Pierre [Sun, 18 Mar 2012 07:07:31 +0000 (03:07 -0400)]
script-parser: Fix build
Marek Černocký [Sun, 18 Mar 2012 06:57:52 +0000 (07:57 +0100)]
Updated Czech translation
Adam Matoušek [Sun, 18 Mar 2012 06:38:15 +0000 (07:38 +0100)]
Updated Czech translation
Lionel Landwerlin [Sat, 17 Mar 2012 23:52:48 +0000 (23:52 +0000)]
x11/stage: fix multi-stage support
When handling Configure events from the X server we update the
internal copy of the window size. Unfortunately we may be updating the
wrong stage implementation because we use the one related to the event
translator (which is the first created stage).
This patch fix flickering/redrawning issues with multi-stage by
looking for the right stage implementation associated with an XEvent.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
Duarte Loreto [Sun, 18 Mar 2012 00:19:04 +0000 (00:19 +0000)]
Updated Portuguese translation
Emmanuele Bassi [Sat, 17 Mar 2012 22:55:33 +0000 (22:55 +0000)]
script: Add 'context' to the translatable definitions
This should cover all the possible options.
Мирослав Николић [Sat, 17 Mar 2012 19:45:56 +0000 (20:45 +0100)]
Updated Serbian translation
Emmanuele Bassi [Sat, 17 Mar 2012 16:49:35 +0000 (16:49 +0000)]
actor: Avoid popping the easing state stack once too many
If restore_easing_state() is called on the last easing state on the
stack, clean up the stack, so that we don't leave stale pointers
around to later segfault on.
Emmanuele Bassi [Sat, 17 Mar 2012 16:46:38 +0000 (16:46 +0000)]
actor: Remove the implicit easing state save
When setting the easing mode, duration, or delay without having ever
called clutter_actor_save_easing_state(). It's confusing, and not
really nice.
In the future, we'll have a default easing state implicitly created by
the actor itself, but for the time being explicitly opting in is
preferrable.
Emmanuele Bassi [Sat, 17 Mar 2012 16:38:06 +0000 (16:38 +0000)]
Use G_VALUE_INIT instead of { 0, }
The macro avoids warnings from anal-retentive compilers.
Aurimas Černius [Sat, 17 Mar 2012 16:30:43 +0000 (18:30 +0200)]
Updated Lithuanian translation
Emmanuele Bassi [Sat, 17 Mar 2012 16:29:09 +0000 (16:29 +0000)]
Add initializer utilities for ClutterVertex
Similar to what we did for ClutterActorBox.
Emmanuele Bassi [Sat, 17 Mar 2012 16:17:39 +0000 (16:17 +0000)]
actor: Fix set_scale_with_gravity()
Add a scale-gravity internal setter, and make set_scale_with_gravity()
call it, along with the scale factor.
Emmanuele Bassi [Sat, 17 Mar 2012 15:27:26 +0000 (15:27 +0000)]
Add some utility initializers to ClutterActorBox
Fran Diéguez [Sat, 17 Mar 2012 14:04:38 +0000 (15:04 +0100)]
Updated Galician translations
Emmanuele Bassi [Fri, 16 Mar 2012 23:10:28 +0000 (23:10 +0000)]
osx/stage: Synthesize an enter event on show
If the pointer is inside the window frame when it's shown then we need
to synthesize and emit a NSMouseEnterEvent ourselves, as Quartz won't
do it for us.
This is a bit of a blind commit - but it's taken from an equivalent
patch that has been verified to work in GDK.
Emmanuele Bassi [Fri, 16 Mar 2012 18:10:34 +0000 (18:10 +0000)]
docs: Change the short description of ClutterActor
The Actor class is not abstract any more.
Emmanuele Bassi [Fri, 16 Mar 2012 17:30:26 +0000 (17:30 +0000)]
Annotate functionality added in 1.10
Emmanuele Bassi [Fri, 16 Mar 2012 16:16:40 +0000 (16:16 +0000)]
Debugging cleanups
Add some more debugging notes to the layout and paint node output.
Emmanuele Bassi [Fri, 16 Mar 2012 16:13:11 +0000 (16:13 +0000)]
actor: Remove an has_allocation() check
The get_content_box() method should always succeed; if the actor does
not have an allocation, we are just going to return a 0-box.
Emmanuele Bassi [Fri, 16 Mar 2012 15:05:42 +0000 (15:05 +0000)]
interactive/image-box: Clarify the label contents
Emmanuele Bassi [Fri, 16 Mar 2012 14:26:28 +0000 (14:26 +0000)]
actor: Restore a lost queue_relayout()
It got lost during a rebase conflict resolution.
Piotr Drąg [Fri, 16 Mar 2012 14:25:30 +0000 (15:25 +0100)]
Updated Polish translation
Bruce Cowan [Fri, 16 Mar 2012 14:18:12 +0000 (14:18 +0000)]
Updated British English translation
Piotr Drąg [Fri, 16 Mar 2012 14:12:38 +0000 (15:12 +0100)]
Updated POTFILES.in
Nilamdyuti Goswami [Fri, 16 Mar 2012 14:00:46 +0000 (19:30 +0530)]
Assamese translation updated
Matej Urbančič [Fri, 16 Mar 2012 13:58:09 +0000 (14:58 +0100)]
Updated Slovenian translation
Daniel Mustieles [Fri, 16 Mar 2012 13:13:57 +0000 (14:13 +0100)]
Updated Spanish translation
Emmanuele Bassi [Fri, 16 Mar 2012 12:21:19 +0000 (12:21 +0000)]
build: Remove maintainer flags from cookbook/examples
The code should be a tad more relaxed.
Emmanuele Bassi [Fri, 16 Mar 2012 12:19:33 +0000 (12:19 +0000)]
po: Update POTFILES.in
Emmanuele Bassi [Fri, 16 Mar 2012 12:05:11 +0000 (12:05 +0000)]
Rename 'bilinear' scaling filter to 'trilinear'
Yes, it's not really the proper GL name for a linear-on-every-axis of a
texture plus linear-between-mipmap-levels minification filter, but it
has three redeeming qualities as a name:
- LINEAR_MIPMAP_LINEAR sucks, as it introduces GL concepts like
mipmaps in the API naming, while we're trying to avoid that;
- people using GL already know what 'trilinear' means in this context
without going all Khronos on their asses;
- we're using 2D textures anyway, so 'linear on two axes and linear
between mipmap levels' can be effectively approximated to
'trilinear'.
I mean, if even the OpenGL official wiki says:
Unfortunately, what most people think of as "trilinear" is not linear
filtering of a 3D texture, but what in OpenGL terms is GL_LINEAR mag
filter and GL_LINEAR_MIPMAP_LINEAR in the min filter in a 2D texture.
That is, it is bilinear filtering of each appropriate mipmap level,
and doing a third linear filter between the adjacent mipmap levels.
Hence the term "trilinear".
-- http://www.opengl.org/wiki/Texture
then the horse has already been flogged to death, and I don't intend to
be accused of necrophilia and sadism by flogging it some more.
Prior art: every single GL tutorial in the history of ever;
CoreAnimation's scaling filter enumerations.
If people want to start using 1D or 3D textures they they are probably
going to be using Cogl API directly, and that has the GL naming scheme
for minification and magnification filters anyway.
Emmanuele Bassi [Fri, 16 Mar 2012 12:01:28 +0000 (12:01 +0000)]
docs: Add ClutterActorClass.paint_node() description
Emmanuele Bassi [Fri, 16 Mar 2012 11:57:34 +0000 (11:57 +0000)]
paint-nodes: Make part of the API internal
At least for the time being, we only expose the parts of the API that we
want to use internally and for new, out-of-tree Content implementations.
The full PaintNode tree API will be made public in 1.12 once we branch
master.
Emmanuele Bassi [Thu, 15 Mar 2012 19:08:20 +0000 (19:08 +0000)]
docs: Fixes for ClutterImage's API reference
Emmanuele Bassi [Thu, 15 Mar 2012 19:02:39 +0000 (19:02 +0000)]
Update release notes
Emmanuele Bassi [Thu, 15 Mar 2012 18:26:42 +0000 (18:26 +0000)]
docs: Fixes for the API reference
Emmanuele Bassi [Tue, 13 Mar 2012 17:19:15 +0000 (17:19 +0000)]
interactive/image-box: Remove unneeded stuff
Emmanuele Bassi [Mon, 12 Mar 2012 16:19:08 +0000 (16:19 +0000)]
actor: Unconditionally emit ::paint
It's a bit late in the game for changing the emission of the paint
signal with actors that use paint nodes - mostly because we have both
implicit paint nodes (background color, content) and explicit paint
nodes (the paint_node virtual).
When we branch for 1.12 we can revert this change.
Emmanuele Bassi [Mon, 12 Mar 2012 16:07:55 +0000 (16:07 +0000)]
po: Update POTFILES.in
Emmanuele Bassi [Mon, 12 Mar 2012 15:52:55 +0000 (15:52 +0000)]
paint-node: Make texture template pipeline clamp to edge
It's safer, and consistent with the rest of Clutter, to make sure that
the template pipeline we use for ClutterTextureNode has its wrap mode
set to clamp-to-edge.
Emmanuele Bassi [Mon, 12 Mar 2012 15:46:34 +0000 (15:46 +0000)]
image: Add set_area() method
This method allows replacing an area inside the texture data used by a
ClutterImage.
Emmanuele Bassi [Mon, 12 Mar 2012 15:25:38 +0000 (15:25 +0000)]
image: Add get_texture()
Allow retrieving the Cogl texture used by the ClutterImage.
Emmanuele Bassi [Fri, 9 Mar 2012 16:26:44 +0000 (16:26 +0000)]
actor: Fix RESIZE_ASPECT mode for the content box
Emmanuele Bassi [Fri, 9 Mar 2012 17:11:19 +0000 (17:11 +0000)]
Documentation fixes
Emmanuele Bassi [Fri, 9 Mar 2012 16:26:34 +0000 (16:26 +0000)]
interactive/image-box: Add a pure Image test, suitable for docs
Emmanuele Bassi [Fri, 9 Mar 2012 14:58:17 +0000 (14:58 +0000)]
interactive/image: Test ClutterImage
Load up the image content using a GdkPixbuf; this means that the test is
not compiled when --disable-gdk-pixbuf is passed.
Emmanuele Bassi [Fri, 9 Mar 2012 14:56:58 +0000 (14:56 +0000)]
build: Check for gdk-pixbuf
Some tests may need to load image data without going through
ClutterTexture or Cogl, so let's add a configure switch and a
conditional for gdk-pibxuf.
Emmanuele Bassi [Thu, 8 Mar 2012 17:37:00 +0000 (17:37 +0000)]
Update clutter.symbols
Emmanuele Bassi [Thu, 8 Mar 2012 17:19:58 +0000 (17:19 +0000)]
interactive/canvas: Set the scaling filters
Emmanuele Bassi [Thu, 8 Mar 2012 17:19:12 +0000 (17:19 +0000)]
Use the content scaling filters
Both ClutterCanvas and ClutterImage should use the minification and
magnification filters set on the actor, just like the use the content
box and the paint opacity.
Emmanuele Bassi [Thu, 8 Mar 2012 17:18:17 +0000 (17:18 +0000)]
actor: Add minification/magnification filters
These settings are informative, and will only be used by the eventual
content of an actor.
Emmanuele Bassi [Thu, 8 Mar 2012 16:38:45 +0000 (16:38 +0000)]
Add ClutterImage, and image data content
Emmanuele Bassi [Thu, 8 Mar 2012 16:38:30 +0000 (16:38 +0000)]
canvas: Fix single header inclusion guard
Emmanuele Bassi [Thu, 8 Mar 2012 15:47:16 +0000 (15:47 +0000)]
canvas: Add canvas size to the ::draw signal
Instead of requiring a call to clutter_content_get_preferred_size(), we
can simply pass the canvas size to the Canvas::draw signal.
Emmanuele Bassi [Thu, 8 Mar 2012 10:31:21 +0000 (10:31 +0000)]
Add ClutterCanvas, a drawing content
Emmanuele Bassi [Thu, 8 Mar 2012 14:06:20 +0000 (14:06 +0000)]
paint-node: Remove redundant declarations
Emmanuele Bassi [Thu, 8 Mar 2012 14:05:48 +0000 (14:05 +0000)]
content: Make get_preferred_size() public
Emmanuele Bassi [Mon, 5 Mar 2012 19:02:16 +0000 (19:02 +0000)]
conform: Skip actor-offscreen-redirect
Until we figure out a way to make it succeed even without the paint
signal emission.
Emmanuele Bassi [Mon, 5 Mar 2012 19:01:30 +0000 (19:01 +0000)]
conform/text-cache: Use the stage paint signal
The stage's paint signal is guaranteed to be emitted; ClutterText's
paint signal is not.
Emmanuele Bassi [Mon, 5 Mar 2012 18:32:16 +0000 (18:32 +0000)]
actor: Make paint_node() and ::paint mutually exclusive
The ::paint signal is the old way to paint an actor; the paint_node()
virtual function is the new way. It's still not possible to traverse the
whole scene graph and build a render tree of PaintNode instances, but
with this change we simultaneously cut out the ::paint signal emission
from the critical path for actors that are using the new PaintNode-based
API, and we retain backward compatibility in the interim period between
1.10 and 2.0.
Emmanuele Bassi [Mon, 5 Mar 2012 18:32:02 +0000 (18:32 +0000)]
paint-nodes: Fix compiler warning
Emmanuele Bassi [Mon, 20 Feb 2012 10:09:58 +0000 (10:09 +0000)]
interactive/content: Define the size of the text geometry
So that Clutter can decide whether or not to clip the text properly.
Emmanuele Bassi [Mon, 20 Feb 2012 10:09:05 +0000 (10:09 +0000)]
paint-nodes: Use logical extents for the TextNode::draw
When we decide if we ought to clip, we should use the logical extents of
the PangoLayout, just like we do for ClutterText.
Emmanuele Bassi [Sat, 4 Feb 2012 12:58:40 +0000 (12:58 +0000)]
content: Turn attached and detached into signals
The attached and detached virtual functions are now informative, and not
normative - which means it's a good idea to provide them as signals.
Emmanuele Bassi [Sat, 4 Feb 2012 12:49:49 +0000 (12:49 +0000)]
content: Make vfuncs optional
The virtual functions on the ClutterContent interface should provide
hooks for application code, not be the actual implementation.
Emmanuele Bassi [Fri, 3 Feb 2012 13:51:29 +0000 (13:51 +0000)]
paint-node: Use JSON-GLib for debug serialization
Instead of our homegrown string building; this at least ensures that
we're generating proper data, instead of random strings. Plus, using
JsonNode and JsonBuilder, we can ask the PaintNode subclasses to
serialize themselves in a sensible way.
Emmanuele Bassi [Thu, 2 Feb 2012 14:51:17 +0000 (14:51 +0000)]
docs: Update the API reference
Add all the new symbols.
Emmanuele Bassi [Wed, 1 Feb 2012 19:26:15 +0000 (19:26 +0000)]
docs: Update documentation on the paint sequence
Emmanuele Bassi [Wed, 1 Feb 2012 18:33:55 +0000 (18:33 +0000)]
Add ClutterContent
ClutterContent is an interface for creating delegate objects that handle
what an actor is going to paint.
Since they are a newly added type, they only hook into the new PaintNode
based API.
The position and size of the content is controlled in part by the
content's own preferred size, and by the ClutterContentGravity
enumeration.
Emmanuele Bassi [Wed, 1 Feb 2012 17:47:15 +0000 (17:47 +0000)]
actor: Add paint_node virtual function
The ::paint-node virtual inside ClutterActor is what we want people to
use when painting their actors.
Right now, it's a new code path, that gets called while painting; the
paint_node() implementation should only paint the actor itself, and not
its children — they will get their own paint_node() called when needed.
Internally, ClutterActor will automatically create a dummy PaintNode and
paint the background color; then control will be handed out to the
implementation on the class. This is required to maintain compatibility
with the old ::paint signal emission.
Once we are able to get rid of the paint (and pick) sequences, we'll
switch to a fully retained render tree.
Emmanuele Bassi [Wed, 1 Feb 2012 15:51:27 +0000 (15:51 +0000)]
Add PaintNode, an element on the render object tree
Now that we have a proper scene graph API, we should split out the
rendering part from the logical and event handling part.
ClutterPaintNode is a lightweight fundamental type that encodes only the
paint operations: pipeline state and geometry. At its most simple, is a
way to structure setting up the programmable pipeline using a
CoglPipeline, and submitting Cogl primitives. The important take away
from this API is that you are not allowed to call Cogl API like
cogl_set_source() or cogl_primitive_draw() directly.
The interesting approach to this is that, in the future, we should be
able to move to a purely retained mode: we will decide which actors need
to be painted, they will update their own branch of the render graph,
and we'll take the render graph and build all the rendering commands
from that.
For the 1.x API, we will have to maintain invariants and the existing
behaviour, but as soon as we can break API, the old paint signal will
just go away, and Actors will only be allowed to manipulate the render
tree.
Daniel Mustieles [Fri, 16 Mar 2012 12:04:34 +0000 (13:04 +0100)]
Updated Spanish translation
Nilamdyuti Goswami [Fri, 16 Mar 2012 07:24:23 +0000 (12:54 +0530)]
Assamese translation updated
Fran Diéguez [Fri, 16 Mar 2012 00:56:03 +0000 (01:56 +0100)]
Updated Galician translations
Matej Urbančič [Thu, 15 Mar 2012 20:57:19 +0000 (21:57 +0100)]
Updated Slovenian translation
Piotr Drąg [Thu, 15 Mar 2012 19:53:33 +0000 (20:53 +0100)]
Updated Polish translation