Emmanuele Bassi [Sat, 7 Apr 2012 22:07:59 +0000 (23:07 +0100)]
x11/device-manager-xi2: Remove heuristics for touchscreen devices
Devices that have touch valuator classes will be touchscreens or
touchpads; anything else should be ignored.
Emmanuele Bassi [Wed, 4 Apr 2012 14:33:32 +0000 (15:33 +0100)]
osx: Fix build
Emmanuele Bassi [Wed, 4 Apr 2012 14:33:05 +0000 (15:33 +0100)]
build: Remove -Waggregate-returns
Daniel Nylander [Sun, 1 Apr 2012 18:31:08 +0000 (20:31 +0200)]
Updated Swedish translation
Emmanuele Bassi [Thu, 29 Mar 2012 14:52:51 +0000 (15:52 +0100)]
actor: Make _clutter_actor_foreach_child() safe again
We were using g_list_foreach() prior to the first Apocalypse, and that
function is resilient against changes to the list while iterating it;
since we are not using a GList any more, we need handle this case
ourselves.
Emmanuele Bassi [Thu, 29 Mar 2012 14:12:09 +0000 (15:12 +0100)]
interactive/bin-layout: Call save/restore easing state
Don't do unprotected calls to set_easing_mode() and
set_easing_duration().
Emmanuele Bassi [Thu, 29 Mar 2012 12:53:40 +0000 (13:53 +0100)]
actor: Make :content-gravity animatable
Let's start making some non-trivial property animatable, like the
content gravity.
Stefano Facchini [Thu, 29 Mar 2012 12:35:50 +0000 (14:35 +0200)]
canvas: avoid emission of "draw" signal when the size is zero
This also avoids the warning
Cogl-WARNING **: ./cogl-buffer.c:215: GL error (1285): Out of memory
generated by cogl_buffer_map when the CoglBuffer has zero length.
Emmanuele Bassi [Thu, 29 Mar 2012 11:01:03 +0000 (12:01 +0100)]
actor: Ensure that we correctly remove transitions
The check on :remove-on-complete was inverted, but we also need to check
that the current repeat of the timeline is also the last.
Emmanuele Bassi [Wed, 28 Mar 2012 17:07:06 +0000 (18:07 +0100)]
actor: Minor optimization to avoid get_preferred_*
When the easing state has a duration of zero milliseconds we can skip
the entire create_transition() call inside set_width() and set_height(),
to avoid what may be a costly call to get_preferred_*.
Emmanuele Bassi [Wed, 28 Mar 2012 15:39:30 +0000 (16:39 +0100)]
actor: Ensure we use the current easing duration and mode
When updating a transition in flight, if the current easing state does
not match the transition's.
Emmanuele Bassi [Wed, 28 Mar 2012 12:21:58 +0000 (13:21 +0100)]
docs: Mention in-flight value changes
Emmanuele Bassi [Wed, 28 Mar 2012 12:01:17 +0000 (13:01 +0100)]
interactive/animation: Use implicit animations instead of animate()
Also, nest animations.
Emmanuele Bassi [Wed, 28 Mar 2012 11:46:30 +0000 (12:46 +0100)]
interactive/transitions: Jump to middle-click coordinates
Middle click will update an existing transition while in flight, and
skip it.
Emmanuele Bassi [Wed, 28 Mar 2012 11:43:57 +0000 (12:43 +0100)]
actor: Check easing duration when updating in-flight transitions
If we update a transition that is currently playing, we need to check
the current easing state, and look at the eventual duration, in case
the user wants to cancel the transition.
Emmanuele Bassi [Wed, 28 Mar 2012 07:34:36 +0000 (08:34 +0100)]
table-layout: Fix [xy]_expand
A copy and paste thinko.
https://bugzilla.gnome.org/show_bug.cgi?id=672853
Jasper St. Pierre [Tue, 27 Mar 2012 18:54:56 +0000 (15:54 -0300)]
actor: Invalidate the current state when popping easing states
https://bugzilla.gnome.org/show_bug.cgi?id=672945
Emmanuele Bassi [Wed, 28 Mar 2012 10:52:01 +0000 (11:52 +0100)]
actor: Simplify setters of animatable properties
Instead of checking the duration of the current easing state we should
check if there's a transition in progress, and update it
unconditionally.
If there is no easing state, or the easing state has a duration of zero
milliseconds, then create_transition() should bail out early and set the
requested final state.
This allows us to write:
clutter_actor_save_easing_state (actor);
clutter_actor_set_x (actor, 200);
clutter_actor_restore_easing_state (actor);
[...]
clutter_actor_set_x (actor, 100);
and have the second set_x() update the easing in progress, instead of
being ignored.
https://bugzilla.gnome.org/show_bug.cgi?id=672945
Emmanuele Bassi [Wed, 28 Mar 2012 10:49:53 +0000 (11:49 +0100)]
interactive/transitions: Add missing easing state save/restore
The test hasn't been updated after commit
229241b8, and was trying to
change the easing state without creating one.
Emmanuele Bassi [Tue, 27 Mar 2012 11:09:28 +0000 (12:09 +0100)]
Remove unused fields from LayoutInfo
The x_expand and y_expand members would mess up the initialization of
the constant LayoutInfo default structure.
Emmanuele Bassi [Mon, 26 Mar 2012 17:34:15 +0000 (18:34 +0100)]
actor: Add debug annotation in add_transition()
Emmanuele Bassi [Mon, 26 Mar 2012 17:31:42 +0000 (18:31 +0100)]
actor: Add IN_DESTRUCTION checks
Commit
80626e75842a24c3d0a45068e241ba309f6ec138 removed an
IN_DESTRUCTION check from within the add_child_internal() method,
outlining an option for bringing it back. It was too late for the 1.10
cycle to do it, and eventually pick up the pieces, but now that we're
at the beginning of the 1.11 cycle we can restore it, and add checks
elsewhere to balance it.
Tristan Van Berkom [Tue, 27 Mar 2012 07:57:03 +0000 (16:57 +0900)]
Properly manage timeline refcounting in clutter_animation_set_timeline()
This patch fixes clutter to not crash when multiple animations share
the same timeline and the actors are explicitly destroyed before
the timeline completes (bug 672890)
Ihar Hrachyshka [Mon, 26 Mar 2012 11:25:45 +0000 (14:25 +0300)]
Updated Belarusian translation.
Rudolfs Mazurs [Sun, 25 Mar 2012 10:58:54 +0000 (13:58 +0300)]
Updated Latvian translation.
Daniel Korostil [Sat, 24 Mar 2012 16:37:10 +0000 (18:37 +0200)]
Uploaded Ukranian
Kenneth Nielsen [Sat, 24 Mar 2012 10:59:17 +0000 (11:59 +0100)]
Updated Danish translation
Neil Roberts [Fri, 23 Mar 2012 17:12:26 +0000 (17:12 +0000)]
Don't use any GL types or defines in Clutter
Some of the Clutter code was using GL types for the primitive types
such as GLint and GLubyte and then passing these to Cogl. This doesn't
make much sense because the Cogl functions directly take native C
types. This patch just replaces them with either a native C type or a
glib type.
Some of the cogl conformance tests are trying to directly call GL for
example to test creating a foreign texture. These tests have been
changed to manually define the GL enum values instead of relying on a
GL header to define them.
This is necessary because Cogl may soon stop including a GL header
from its public headers.
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Neil Roberts [Fri, 23 Mar 2012 16:34:17 +0000 (16:34 +0000)]
configure: Fix the -o operator in a call to test
The disjunction operator was misspelt as -O which tests whether the
following file is owned by the calling user. This doesn't take enough
arguments so bash was showing an error and the test was always
failing. This meant that NEED_XKB_UTILS was always false which should
have broken the build but the Makefile was mistakenly including
clutter-xkb-utils.c again if SUPPORT_WAYLAND is defined.
See
1b77565e for reference.
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 22 Mar 2012 13:20:55 +0000 (13:20 +0000)]
build: Remove disabling Clutter's deprecation warnings while building it
Now that we have deprecation warnings and not full on symbol removal
from the headers, we can just skip Clutter's own, and use only GLib's.
Rajesh Ranjan [Fri, 23 Mar 2012 09:18:59 +0000 (14:48 +0530)]
hindi translation by Chandan Kumar
Emmanuele Bassi [Thu, 22 Mar 2012 10:11:11 +0000 (10:11 +0000)]
version: Add 1.12 version macros
Emmanuele Bassi [Wed, 21 Mar 2012 14:01:31 +0000 (14:01 +0000)]
osx: Fix compilation warnings
https://bugzilla.gnome.org/show_bug.cgi?id=672536
Emmanuele Bassi [Wed, 21 Mar 2012 14:01:11 +0000 (14:01 +0000)]
Fix fallback profile counter macro
Viktor Nyberg [Thu, 22 Mar 2012 11:40:12 +0000 (12:40 +0100)]
[l10n] Updated German translation
Yuri Myasoedov [Wed, 21 Mar 2012 18:47:04 +0000 (22:47 +0400)]
Updated Russian translation
Jasper St. Pierre [Wed, 21 Mar 2012 14:42:32 +0000 (10:42 -0400)]
table-layout: Remove dead code
If a column/row is expanding, n_expand has to be greater than 1.
https://bugzilla.gnome.org/show_bug.cgi?id=672557
Jasper St. Pierre [Wed, 21 Mar 2012 14:36:42 +0000 (10:36 -0400)]
table-layout: Fix x/y-expand for spanning actors
Ported to ClutterTableLayout from MxTable:
https://github.com/clutter-project/mx/commit/
239e53146a678ae753b1fb9a862f4030c66a1d9b
https://bugzilla.gnome.org/show_bug.cgi?id=672557
Jasper St. Pierre [Wed, 21 Mar 2012 13:36:07 +0000 (09:36 -0400)]
table-layout: Fix column visibility for spanning actors
Ported to ClutterTableLayout from MxTable:
https://github.com/clutter-project/mx/commit/
6633f185fcfb7ce8a6ef85276d09e4ee92f584b8
https://bugzilla.gnome.org/show_bug.cgi?id=672557
Jasper St. Pierre [Wed, 21 Mar 2012 13:35:37 +0000 (09:35 -0400)]
table-layout: Remove unused 'shrink' field.
Ported to ClutterTableLayout from MxTable:
https://github.com/clutter-project/mx/commit/
053a1b04290e6ac307f90033babf761179d1db89
https://bugzilla.gnome.org/show_bug.cgi?id=672557
Jasper St. Pierre [Thu, 16 Feb 2012 19:06:25 +0000 (14:06 -0500)]
actor: Freeze property change notifications on destroy
kkrothap@redhat.com [Wed, 21 Mar 2012 14:03:23 +0000 (19:33 +0530)]
Updated Telugu Translations
Emmanuele Bassi [Wed, 21 Mar 2012 13:30:28 +0000 (13:30 +0000)]
docs: Clean up the animations sections of the Actor reference
Emmanuele Bassi [Wed, 21 Mar 2012 12:57:26 +0000 (12:57 +0000)]
interactive/scrolling: Use the implicit animation API
Rico Tzschichholz [Wed, 21 Mar 2012 12:59:54 +0000 (13:59 +0100)]
build: Remove superfluous ','
Jonh Wendell [Wed, 21 Mar 2012 11:53:43 +0000 (08:53 -0300)]
Updated Brazilian Portuguese translation
Emmanuele Bassi [Tue, 20 Mar 2012 16:18:20 +0000 (16:18 +0000)]
conform: Set harsher environment for running tests
Set the MALLOC_CHECK_ and MALLOC_PERTURB_ environment variables to catch
allocation issues.
Emmanuele Bassi [Tue, 20 Mar 2012 16:11:52 +0000 (16:11 +0000)]
paint-node: Initialize ClutterPaintOperation
Don't leave it to the compiler.
Robert Bragg [Tue, 20 Mar 2012 14:06:10 +0000 (14:06 +0000)]
clutter-wayland-compositor.h: Adds missing header guards
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Neil Roberts [Fri, 9 Mar 2012 18:24:14 +0000 (18:24 +0000)]
wayland: Fix some missing includes
The commit 90e5088 added some extra compiler warning options that were
triggering warnings when enabling the wayland build due to missing
header includes. This adds those header includes in.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Robert Bragg [Tue, 20 Mar 2012 13:50:42 +0000 (13:50 +0000)]
include standalone cogl-wayland-server/client headers
Because the wayland-server-protocol.h header includes symbols that
collide with wayland-client-protocol.h Cogl now provides top level
<cogl/cogl-wayland-server.h> and <cogl/cogl-wayland-client.h> headers so
that applications can ensure they only include one of the wayland
protocol headers in a particular compilation unit. This updates clutter
accordingly to include those headers.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Rob Bradford [Tue, 20 Mar 2012 13:31:28 +0000 (13:31 +0000)]
wayland: Only try and resize the framebuffer if there is a valid framebuffer
Emmanuele Bassi [Tue, 20 Mar 2012 13:06:48 +0000 (13:06 +0000)]
docs: Reorganize the API reference index
Emmanuele Bassi [Tue, 20 Mar 2012 12:06:21 +0000 (12:06 +0000)]
docs: Fix typo
Emmanuele Bassi [Tue, 20 Mar 2012 11:55:41 +0000 (11:55 +0000)]
docs: Add a section on actor animations
Detail the implicit and explicit animation models used by ClutterActor.
Emmanuele Bassi [Tue, 20 Mar 2012 11:47:41 +0000 (11:47 +0000)]
property-transition: Remove animatable from the ctor
Should not have been there in the first place: the animatable will be
set either using ClutterTransition API, or when adding the transition
to a ClutterActor.
Emmanuele Bassi [Tue, 20 Mar 2012 11:22:07 +0000 (11:22 +0000)]
Use g_clear_object() instead of unref() + NULL
Emmanuele Bassi [Tue, 20 Mar 2012 11:17:53 +0000 (11:17 +0000)]
actor: Clarify and improve memory management of transitions
When adding a transition to a ClutterActor, the actor should hold a
reference on it, and release it only when we remove it. This makes
transitions just like other objects held by ClutterActor.
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