profile/ivi/clutter.git
12 years agoutils: Remove CLUTTER_DISABLE_DEPRECATED
Emmanuele Bassi [Wed, 2 Nov 2011 12:53:26 +0000 (12:53 +0000)]
utils: Remove CLUTTER_DISABLE_DEPRECATED

We use deprecation warnings now.

12 years agotexture: Remove CLUTTER_DISABLE_DEPRECATED
Emmanuele Bassi [Wed, 2 Nov 2011 12:53:03 +0000 (12:53 +0000)]
texture: Remove CLUTTER_DISABLE_DEPRECATED

We use deprecation warnings now.

12 years agostage-manager: Remove CLUTTER_DISABLE_DEPRECATED
Emmanuele Bassi [Wed, 2 Nov 2011 12:52:42 +0000 (12:52 +0000)]
stage-manager: Remove CLUTTER_DISABLE_DEPRECATED

We use deprecation warnings now.

12 years agocairo-texture: Remove CLUTTER_DISABLE_DEPRECATED
Emmanuele Bassi [Wed, 2 Nov 2011 12:52:18 +0000 (12:52 +0000)]
cairo-texture: Remove CLUTTER_DISABLE_DEPRECATED

We use deprecation warnings now.

12 years agoanimatable: Remove CLUTTER_DISABLE_DEPRECATED
Emmanuele Bassi [Wed, 2 Nov 2011 12:51:58 +0000 (12:51 +0000)]
animatable: Remove CLUTTER_DISABLE_DEPRECATED

We use deprecation warnings, now.

12 years agocairo-texture: Use an internal function for create_region()
Emmanuele Bassi [Wed, 2 Nov 2011 12:48:31 +0000 (12:48 +0000)]
cairo-texture: Use an internal function for create_region()

Avoid double argument checking, and a deprecation warning when
implementing create() as a wrapper around create_region(), by using
a simple internal function.

12 years agoactor: Move deprecated symbols into separate headers
Emmanuele Bassi [Wed, 2 Nov 2011 12:47:46 +0000 (12:47 +0000)]
actor: Move deprecated symbols into separate headers

The clutter-actor.h header is already pretty big, so let's try to keep
the deprecated symbols out of it.

12 years agobackend: Move deprecated symbols to a separate header
Emmanuele Bassi [Wed, 2 Nov 2011 12:41:42 +0000 (12:41 +0000)]
backend: Move deprecated symbols to a separate header

12 years agomain: Move deprecated symbols to a separate header
Emmanuele Bassi [Wed, 2 Nov 2011 12:32:09 +0000 (12:32 +0000)]
main: Move deprecated symbols to a separate header

The number of deprecations in clutter-main.h makes the header harder to
parse, and more confusing. We can use a separate header under the
deprecated subdirectory to hold all the deprecated symbols.

12 years agocogl: include <cogl/cogl-xlib.h> for xlib specific symbols
Robert Bragg [Tue, 1 Nov 2011 15:47:43 +0000 (15:47 +0000)]
cogl: include <cogl/cogl-xlib.h> for xlib specific symbols

Since Xlib.h is such a terrible citizen when it comes to symbol
namespacing it's not desirable to include Xlib.h if it is not absolutely
required. Cogl now has a standalone cogl-xlib.h that should be included
whenever any xlib specific symbols are required.

This patch updates clutter to include <cogl/cogl-xlib.h> wherever
clutter needs to use xlib specific cogl apis.

Acked-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoprofile: Disable deprecation warnings
Emmanuele Bassi [Mon, 31 Oct 2011 10:39:46 +0000 (10:39 +0000)]
profile: Disable deprecation warnings

We use an atexit() handler to print out the profile report coming from
Uprof. The g_atexit() call has been deprecated by GLib, but since this
use case is pretty specific and it's not meant to be turned on by
default (or distributed) then we can safely disable the deprecation
warnings inside clutter-profile.c.

12 years agobackend: Remove atexit handlers
Emmanuele Bassi [Mon, 24 Oct 2011 11:07:30 +0000 (12:07 +0100)]
backend: Remove atexit handlers

The g_atexit() function has been deprecated in GLib as it is a fairly
bad idea in basically all cases.

We could probably use a GCC destructor if we didn't care about
portability, but for the time being we just remove the atexit() handler
that disposed the backend.

12 years agocairo-texture: Drop the half pixel rounding
Emmanuele Bassi [Mon, 24 Oct 2011 10:58:23 +0000 (11:58 +0100)]
cairo-texture: Drop the half pixel rounding

Calling ceilf() should be enough.

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

12 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 30 Oct 2011 15:04:55 +0000 (17:04 +0200)]
Updated Bulgarian translation

12 years agodocs: Clarify CLUTTER_ACTOR_IS_MAPPED
Emmanuele Bassi [Tue, 25 Oct 2011 10:30:46 +0000 (11:30 +0100)]
docs: Clarify CLUTTER_ACTOR_IS_MAPPED

There are a couple of gotchas in the 'mapped' flag that are not properly
documented, or are documented only in the actor_invariants.txt file; we
should have a proper description in the API reference as well, to avoid
confusion.

12 years agoBug 662071-[Win32]-Don't init the Big Clutter Lock
Chun-wei Fan [Mon, 24 Oct 2011 16:13:53 +0000 (00:13 +0800)]
Bug 662071-[Win32]-Don't init the Big Clutter Lock

Since the Windows GUI system is assuming multithreadedness, initializing
locks after entering the GUI portion on Windows is likely to cause
problems[1][2], which results many Clutter programs to crash due to
releasing resources that they did not own.

[1]: Multi-threaded use of GTK+ on Win32 in README.win32 of GTK+
     source package
[2]: Explanation of Windows GUI system regarding its multithreadness
     assumptions-
     http://mail.gnome.org/archives/gtk-list/2011-June/msg00005.html

12 years agoUpdated Spanish translation
Jorge González [Sat, 22 Oct 2011 15:53:30 +0000 (17:53 +0200)]
Updated Spanish translation

12 years agoUpdated Hebrew translation (Initialized PO file).
Yaron Shahrabani [Sat, 22 Oct 2011 13:50:50 +0000 (15:50 +0200)]
Updated Hebrew translation (Initialized PO file).

12 years agodocs: Document the behaviour in case of init failure
Emmanuele Bassi [Fri, 21 Oct 2011 20:19:27 +0000 (21:19 +0100)]
docs: Document the behaviour in case of init failure

Or, better, the fact that the behaviour of any Clutter function will be
undefined in case the initialization fails.

The value returned by clutter_init() and friends has to be handled
properly.

12 years agoUpdated Slovenian translation
Matej Urbančič [Fri, 21 Oct 2011 19:20:00 +0000 (21:20 +0200)]
Updated Slovenian translation

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 19 Oct 2011 21:18:16 +0000 (23:18 +0200)]
Updated Norwegian bokmål translation

12 years agobuild: Remove the GLES configuration option
Emmanuele Bassi [Wed, 19 Oct 2011 14:32:41 +0000 (15:32 +0100)]
build: Remove the GLES configuration option

The selector for GLES 1.1 or 2.0 is all in Cogl, now.

12 years agobuild: remove the experimental_image var from configure
Robert Bragg [Thu, 4 Aug 2011 15:09:00 +0000 (16:09 +0100)]
build: remove the experimental_image var from configure

Since the image backend is something now dealt with by Cogl there is no
need to check the experimental status of the backend in the Clutter
configure script.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoblur: don't accumulate texture padding twice
Robert Bragg [Tue, 18 Oct 2011 09:06:06 +0000 (10:06 +0100)]
blur: don't accumulate texture padding twice

This removes the create_texture implementation for ClutterBlurEffect
because we already account for padding in the get_paint_volume
implementation so we were creating textures larger than necessary.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agobuild: Don't actually check for glx for glx flavour
Robert Bragg [Thu, 4 Aug 2011 15:04:52 +0000 (16:04 +0100)]
build: Don't actually check for glx for glx flavour

GLX is now totally abstracted by Cogl so the "glx" flavour is actually
only used to determine the soname of clutter now so we don't actually
have to check for the glx header or that libGL provides any GLX symbols.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoAvoid the shadowing of 'clone'
Emmanuele Bassi [Wed, 19 Oct 2011 14:23:55 +0000 (15:23 +0100)]
Avoid the shadowing of 'clone'

The clone() call can creep into the build environment, so it's a good
thing to avoid using 'clone' as a variable name.

12 years agotests: Use the portable cogl wrappers for GLSL builtins
Neil Roberts [Wed, 19 Oct 2011 12:42:18 +0000 (13:42 +0100)]
tests: Use the portable cogl wrappers for GLSL builtins

Instead of directly using the GLSL names for the builtins in the
shaders for test-shader and test-pick, this makes it use the Cogl
wrapper names instead. That way it will be portable to GLES2 as well.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agodocs: Improve documentation of LayoutManager
Emmanuele Bassi [Mon, 17 Oct 2011 10:48:47 +0000 (11:48 +0100)]
docs: Improve documentation of LayoutManager

Especially with regards to layout properties and their usage inside a
ClutterScript UI definition.

12 years agodocs: Clean up the 'running Clutter apps' chapter
Emmanuele Bassi [Mon, 17 Oct 2011 09:25:20 +0000 (10:25 +0100)]
docs: Clean up the 'running Clutter apps' chapter

12 years agoRemove mentions of clutter_redraw()
Emmanuele Bassi [Mon, 17 Oct 2011 09:25:07 +0000 (10:25 +0100)]
Remove mentions of clutter_redraw()

12 years agodebug: Clean up debugging notes
Emmanuele Bassi [Mon, 17 Oct 2011 09:24:25 +0000 (10:24 +0100)]
debug: Clean up debugging notes

12 years agointeractive: Use the newly added CLUTTER_ALIGN_BOTH value
Emmanuele Bassi [Sat, 15 Oct 2011 17:35:45 +0000 (18:35 +0100)]
interactive: Use the newly added CLUTTER_ALIGN_BOTH value

We center a lot of stuff using ClutterAlignConstraints.

12 years agoalign-constraint: Add CLUTTER_ALIGN_BOTH
Emmanuele Bassi [Sat, 15 Oct 2011 17:33:49 +0000 (18:33 +0100)]
align-constraint: Add CLUTTER_ALIGN_BOTH

Just like ClutterBindConstraint has two shorthand enumerations for binding
position and size and avoid using multiple instances, ClutterAlignConstraint
should have a way to align an actor with the same alignment factor on both
axis at the same time; this is especially useful for centering actors.

12 years agoUpdaged Galician translations
Fran Dieguez [Sat, 15 Oct 2011 13:24:41 +0000 (15:24 +0200)]
Updaged Galician translations

12 years agoTag all deprecated symbols using CLUTTER_DEPRECATED
Emmanuele Bassi [Fri, 14 Oct 2011 10:34:38 +0000 (11:34 +0100)]
Tag all deprecated symbols using CLUTTER_DEPRECATED

This requires some minor surgery in the build to disable the deprecation
warnings in the deprecated classes.

12 years agoBump up the dependency on gtk-doc
Emmanuele Bassi [Fri, 14 Oct 2011 10:34:26 +0000 (11:34 +0100)]
Bump up the dependency on gtk-doc

12 years agobuild: Strip out G_DISABLE_DEPRECATED
Emmanuele Bassi [Wed, 12 Oct 2011 17:04:23 +0000 (18:04 +0100)]
build: Strip out G_DISABLE_DEPRECATED

We have compiler warnings, now.

12 years agoDisable deprecation warnings for the test suite
Emmanuele Bassi [Thu, 13 Oct 2011 16:50:25 +0000 (17:50 +0100)]
Disable deprecation warnings for the test suite

We test deprecated functionality as well as current one, so we need to
enable all symbols and disable the deprecation warnings.

12 years agodebug: Move paint-deform-tiles to CLUTTER_PAINT
Emmanuele Bassi [Thu, 13 Oct 2011 10:38:27 +0000 (11:38 +0100)]
debug: Move paint-deform-tiles to CLUTTER_PAINT

The CLUTTER_DEBUG class of debugging flags is meant for debugging notes,
while the CLUTTER_PAINT debugging flags are for changing the output of
the paint cycle. Painting the DeformEffect tiles should go in the latter.

12 years agodocs: Include test-threads.c in the API reference
Emmanuele Bassi [Thu, 13 Oct 2011 09:42:30 +0000 (10:42 +0100)]
docs: Include test-threads.c in the API reference

We can use the test-threads.c interactive test as part of the documentation
on how to use threads with Clutter.

12 years agointeractive/threads: Clean up
Emmanuele Bassi [Thu, 13 Oct 2011 09:38:36 +0000 (10:38 +0100)]
interactive/threads: Clean up

Add some comments explaining why we use idle handlers to update the UI,
and update to the newest API in GLib master.

12 years agoUpdated POTFILES.in
Piotr Drąg [Wed, 12 Oct 2011 18:33:16 +0000 (20:33 +0200)]
Updated POTFILES.in

12 years agoAvoid using deprecated API internally
Emmanuele Bassi [Wed, 12 Oct 2011 15:17:39 +0000 (16:17 +0100)]
Avoid using deprecated API internally

Use the proper API to implement deprecated functions.

12 years agotexture: Disable deprecation warnings
Emmanuele Bassi [Wed, 12 Oct 2011 11:36:41 +0000 (12:36 +0100)]
texture: Disable deprecation warnings

Sadly, ClutterTexture is still using internally deprecated API, like
clutter_actor_get_shader().

12 years agoRemove _clutter_shader_release_all()
Emmanuele Bassi [Wed, 12 Oct 2011 09:36:17 +0000 (10:36 +0100)]
Remove _clutter_shader_release_all()

This function is called when the backend is being disposed - as a way
of releasing all ClutterShader. This doesn't take into account three
things:

  - ClutterShader is deprecated
  - the Backend is *never* disposed
  - once the process terminates, all its resources are automatically
    released by the OS

So the _clutter_shader_release_all() function is a pointless exercise
in futility.

12 years agotests: Fix some compiler warnings
Emmanuele Bassi [Wed, 12 Oct 2011 08:57:53 +0000 (09:57 +0100)]
tests: Fix some compiler warnings

12 years agotests: Disable deprecation warnings
Emmanuele Bassi [Wed, 12 Oct 2011 08:57:33 +0000 (09:57 +0100)]
tests: Disable deprecation warnings

12 years agointeractive/threads: Use G_PRIVATE_INIT
Emmanuele Bassi [Tue, 11 Oct 2011 23:20:43 +0000 (00:20 +0100)]
interactive/threads: Use G_PRIVATE_INIT

Though strictly not necessary, we should be using the proper init macro
for GPrivate.

12 years agoRemove some compiler warnings
Emmanuele Bassi [Tue, 11 Oct 2011 22:42:23 +0000 (23:42 +0100)]
Remove some compiler warnings

Some issues found using clang as the compiler.

12 years agoFix included header
Emmanuele Bassi [Tue, 11 Oct 2011 22:11:56 +0000 (23:11 +0100)]
Fix included header

12 years agobuild: Disable deprecation warnings with --enable-deprecated
Emmanuele Bassi [Tue, 11 Oct 2011 22:06:06 +0000 (23:06 +0100)]
build: Disable deprecation warnings with --enable-deprecated

Just like we turn everything on with --disable-deprecated, we have to
turn everything off with --enable-deprecated. This means disabling the
deprecation warnings from the compiler as well.

12 years agoAdd a Clutter-specific deprecation macro for symbols
Emmanuele Bassi [Tue, 11 Oct 2011 22:03:09 +0000 (23:03 +0100)]
Add a Clutter-specific deprecation macro for symbols

Just like GLIB_DEPRECATED and GLIB_DEPRECATED_FOR, Clutter should have
its own wrappers for G_DEPRECATED and G_DEPRECATED_FOR, to allow opting
out of deprecation warnings.

Deprecation warnings are enabled by default, now, even when building
Clutter.

12 years agoFix duplicate typedef of ClutterAlpha
Emmanuele Bassi [Tue, 11 Oct 2011 22:02:17 +0000 (23:02 +0100)]
Fix duplicate typedef of ClutterAlpha

Caught on OS X but not on my Fedora machine. Weird.

12 years agoDo not leak strings from GKeyFile
Emmanuele Bassi [Tue, 11 Oct 2011 21:43:54 +0000 (22:43 +0100)]
Do not leak strings from GKeyFile

The string getters always copy, so we need to free the returned
values.

12 years agodocs: Fixes to build the API reference
Emmanuele Bassi [Tue, 11 Oct 2011 17:25:14 +0000 (18:25 +0100)]
docs: Fixes to build the API reference

12 years agoMove more typedefs into clutter-types.h
Emmanuele Bassi [Tue, 4 Oct 2011 13:21:32 +0000 (14:21 +0100)]
Move more typedefs into clutter-types.h

12 years agoMove all enumerations to a separate file
Emmanuele Bassi [Tue, 4 Oct 2011 12:28:04 +0000 (13:28 +0100)]
Move all enumerations to a separate file

This should allow sharing types, and we can avoid glib-mkenums thrawling
the whole repository for enumerations.

12 years agoMove clutter-fixed.[ch] to the deprecated section
Emmanuele Bassi [Tue, 4 Oct 2011 11:18:26 +0000 (12:18 +0100)]
Move clutter-fixed.[ch] to the deprecated section

12 years agoMove ClutterBehaviour to the deprecated section
Emmanuele Bassi [Tue, 4 Oct 2011 10:58:44 +0000 (11:58 +0100)]
Move ClutterBehaviour to the deprecated section

12 years agoMinor header surgery to ClutterBehaviour
Emmanuele Bassi [Tue, 4 Oct 2011 10:52:47 +0000 (11:52 +0100)]
Minor header surgery to ClutterBehaviour

This moves a couple of definitions to the common types header, and makes
sure that ClutterBehaviour subclasses include clutter-behaviour.h first,
so that their types can be fully expanded without necessarily have the
ClutterBehaviour header header included by their public headers. This is
the necessary prelude to have clutter-behaviour.[ch] moved to the
deprecated section.

12 years agoMove ClutterBehaviour subclasses to the deprecated section
Emmanuele Bassi [Tue, 4 Oct 2011 10:32:36 +0000 (11:32 +0100)]
Move ClutterBehaviour subclasses to the deprecated section

Moving ClutterBehaviour itself will require some minor header surgery,
so we'll do that next.

12 years agodocs: Move deprecated classes out of the way
Emmanuele Bassi [Tue, 4 Oct 2011 10:16:38 +0000 (11:16 +0100)]
docs: Move deprecated classes out of the way

The deprecated sections should be much more prominently separated from
the current API; we can use a new part inside the main reference index
for this.

12 years agoMove ClutterShader to the deprecated section
Emmanuele Bassi [Tue, 4 Oct 2011 10:12:55 +0000 (11:12 +0100)]
Move ClutterShader to the deprecated section

12 years agoMove ClutterScore to the deprecated section
Emmanuele Bassi [Tue, 4 Oct 2011 10:07:03 +0000 (11:07 +0100)]
Move ClutterScore to the deprecated section

12 years agoMove timeout pool to the deprecated section
Emmanuele Bassi [Tue, 4 Oct 2011 09:57:28 +0000 (10:57 +0100)]
Move timeout pool to the deprecated section

12 years agobuild: Move deprecated code into its own prefix
Emmanuele Bassi [Tue, 4 Oct 2011 09:51:09 +0000 (10:51 +0100)]
build: Move deprecated code into its own prefix

The code that has been deprecated should live into its own directory,
both in the repository and when installed. This should make it clear
which functionality is actually maintained and which is not.

We start with an oldie: the frame source API.

12 years agointeractive/threads: Fix up after deprecations
Emmanuele Bassi [Tue, 11 Oct 2011 16:51:14 +0000 (17:51 +0100)]
interactive/threads: Fix up after deprecations

The GThread API has undergone a massive restructuring, and the fallout
is still being processed.

12 years agodocs: Document the settings.ini file
Emmanuele Bassi [Tue, 11 Oct 2011 16:08:20 +0000 (17:08 +0100)]
docs: Document the settings.ini file

Describe the location, groups, and keys of the settings.ini file used by
Clutter.

12 years agoShow lib and sysconfdir in the configure summary
Emmanuele Bassi [Tue, 11 Oct 2011 15:05:24 +0000 (16:05 +0100)]
Show lib and sysconfdir in the configure summary

12 years agoAdd more sections to the Clutter configuration file
Emmanuele Bassi [Tue, 11 Oct 2011 14:28:47 +0000 (15:28 +0100)]
Add more sections to the Clutter configuration file

On top of the existing "Settings" group in the settings.ini file we
should have two more groups:

  Environment   - contains all the configuration possible through
                  environment variables
  Debug         - contains all the possible debug variables

12 years agoAdd a configuration file for ClutterSettings
Emmanuele Bassi [Tue, 11 Oct 2011 13:42:31 +0000 (14:42 +0100)]
Add a configuration file for ClutterSettings

ClutterSettings should be able to load its initial state by using
configuration files in SYSCONFDIR and XDG_CONFIG_HOME. This allows
Clutter to have a system (and user) configuration on platforms that
do not have XSETTINGS bridges.

12 years agoDeprecate clutter_[sg]et_font_flags()
Emmanuele Bassi [Mon, 3 Oct 2011 13:12:48 +0000 (14:12 +0100)]
Deprecate clutter_[sg]et_font_flags()

We already have two mechanisms for controlling the font rendering
quality on a per-application basis:

  • ClutterSettings properties
  • clutter_backend_set_font_options()

The font flags were always a stop-gap solution, and one that tried to
simplify a fairly complex issue beyond the point of actually being
useful.

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

12 years agoDeprecate clutter_clear_glyph_cache()
Emmanuele Bassi [Mon, 10 Oct 2011 16:00:28 +0000 (17:00 +0100)]
Deprecate clutter_clear_glyph_cache()

This is a wrapper function for API that has long since been public.

12 years agoDeprecate clutter_get_input_device_for_id()
Emmanuele Bassi [Mon, 10 Oct 2011 15:57:18 +0000 (16:57 +0100)]
Deprecate clutter_get_input_device_for_id()

We have the ClutterDeviceManager methods for that.

12 years agoClean up grab implementation
Emmanuele Bassi [Mon, 10 Oct 2011 15:45:20 +0000 (16:45 +0100)]
Clean up grab implementation

The grab API is a relic of Clutter 0.6, and hasn't been through proper
vetting in a *long* time — mostly due to the fact that we don't really
like grabs, and point to the ::captured-event as a way to implement
"soft grabs" in toolkits and applications.

The implementation of full and device grabs uses weak references on
actors instead of using the ::destroy signal, which is meant exactly for
the case of releasing pointers to actors when they are disposed.

The API naming scheme is also fairly broken, especially for
device-related grabs.

Finally, keyboard device grabs are just not implemented.

We can, in one go, clean up this mess and deprecate a bunch of badly
named API by introducing generic device grab/ungrab methods on
ClutterInputDevice, and re-implement the current API on top of them.

12 years agoDeprecate clutter_redraw()
Emmanuele Bassi [Mon, 10 Oct 2011 14:48:43 +0000 (15:48 +0100)]
Deprecate clutter_redraw()

It's just a badly named proxy to clutter_stage_ensure_redraw().

12 years agoCosmetic fixes
Emmanuele Bassi [Mon, 10 Oct 2011 14:42:36 +0000 (15:42 +0100)]
Cosmetic fixes

12 years agoUpdated Lithuanian translation
Algimantas Margevičius [Sat, 8 Oct 2011 21:57:38 +0000 (00:57 +0300)]
Updated Lithuanian translation

12 years agoanimation: Use the timeline's new-frame signal
Emmanuele Bassi [Fri, 7 Oct 2011 15:56:21 +0000 (16:56 +0100)]
animation: Use the timeline's new-frame signal

Instead of using the ClutterAlpha's notify::alpha. This makes the code
less dependent on GObject's property notification.

12 years agoDeprecate clutter_threads_init()
Emmanuele Bassi [Fri, 7 Oct 2011 14:53:50 +0000 (15:53 +0100)]
Deprecate clutter_threads_init()

GLib deprecated g_thread_init(), and threading support is initialized
by GObject, so Clutter already runs with threading support enabled. We
can drop the clutter_threads_init() call requirement, and initialize the
Big Clutter Lock™ on clutter_init(). This reduces the things that have
to be done when dealing with threads with Clutter, and the things that
can possibly go wrong.

12 years agoUse a static mutex for the default Clutter lock
Emmanuele Bassi [Fri, 7 Oct 2011 14:08:27 +0000 (15:08 +0100)]
Use a static mutex for the default Clutter lock

The Big Clutter Lock™ can now be a static GMutex, since GLib supports
them. We can also drop a bunch of checks given the recent changes in
GLib threading API.

12 years agoDrop g_thread_init()
Emmanuele Bassi [Fri, 7 Oct 2011 14:07:26 +0000 (15:07 +0100)]
Drop g_thread_init()

It's not necessary any more, and it has been deprecated.

12 years agotexture: Drop G_MUTEX_INIT
Emmanuele Bassi [Fri, 7 Oct 2011 14:06:37 +0000 (15:06 +0100)]
texture: Drop G_MUTEX_INIT

The static initializer for GMutex has been removed from GLib.

The g_thread_supported() call can also be removed: threading is always
enabled in GLib ≥ 2.31.

12 years agoMark clutter_state_set_key() source_state_name as nullable
Marc-André Lureau [Wed, 5 Oct 2011 20:03:25 +0000 (22:03 +0200)]
Mark clutter_state_set_key() source_state_name as nullable

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

12 years agoAdd clutter_unicode_to_keyval function
Zan Dobersek [Fri, 7 Oct 2011 11:05:39 +0000 (12:05 +0100)]
Add clutter_unicode_to_keyval function

This commit introduces a unicode-to-keyval conversion function that
performs identical action as the gdk version of that function. Also
added is the necessary table holding all the conversion values.

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

12 years agobox-layout: Plug memory leaks
Sunjin Yang [Fri, 7 Oct 2011 06:21:34 +0000 (15:21 +0900)]
box-layout: Plug memory leaks

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

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 7 Oct 2011 08:13:08 +0000 (10:13 +0200)]
Updated Spanish translation

12 years agoDeprecate the GParamSpec for CoglFixed
Emmanuele Bassi [Tue, 4 Oct 2011 09:32:27 +0000 (10:32 +0100)]
Deprecate the GParamSpec for CoglFixed

The fixed-point API is not used anywhere, and it's pretty much useless
to have a fixed-point type for properties.

12 years agospelling fix: timeour -> timeout
Håkon Løvdal [Mon, 3 Oct 2011 14:56:26 +0000 (15:56 +0100)]
spelling fix: timeour -> timeout

12 years agoUpdate French translation
Alexandre Franke [Mon, 3 Oct 2011 13:57:21 +0000 (15:57 +0200)]
Update French translation

12 years agoUpdated Esperanto translation
Kristjan SCHMIDT [Sat, 1 Oct 2011 15:24:51 +0000 (17:24 +0200)]
Updated Esperanto translation

12 years agoclutter-actor-meta: Fix _clutter_meta_group_has_metas_no_internal
Adel Gadllah [Sat, 1 Oct 2011 10:36:36 +0000 (12:36 +0200)]
clutter-actor-meta: Fix _clutter_meta_group_has_metas_no_internal

This function is backwards i.e it is supposed to check for metas that
are *not* internal, hence the name.

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

12 years agopaint-volume: Don't try to complete a completed volume
Emmanuele Bassi [Fri, 30 Sep 2011 16:02:57 +0000 (17:02 +0100)]
paint-volume: Don't try to complete a completed volume

If we do project() → get_bounding_box(), we'll try to complete the
volume twice, which whacks out all the lazily computed vertices.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
12 years agoAdd a conformance test for ClutterShaderEffect
Neil Roberts [Thu, 29 Sep 2011 19:14:26 +0000 (20:14 +0100)]
Add a conformance test for ClutterShaderEffect

This adds a simple conformance test which sets up a few shader effects
using both the old style with clutter_shader_effect_set_source and the
new style by overriding get_static_shader_source. The effects are then
verified to confirm that they drew the right pixel colour.

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

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoclutter-shader-effect: Add a get_static_shader_source virtual
Neil Roberts [Thu, 29 Sep 2011 19:05:39 +0000 (20:05 +0100)]
clutter-shader-effect: Add a get_static_shader_source virtual

This is used as an alternative to calling
clutter_shader_effect_set_shader_source. A ClutterShaderEffect
subclass is now expected to implement this method to return the source
for the effect that will be used for all instances of this
subclass. It is only called once regardless of the number of instances
created. That way Clutter can avoid recompiling the shader source for
every new instance of the effect.

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

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agoClutterActor: Add clutter_actor_has_actions
Adel Gadllah [Thu, 29 Sep 2011 16:34:12 +0000 (18:34 +0200)]
ClutterActor: Add clutter_actor_has_actions

Adds an efficent way to query whether an actor has any
applied actions.

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

12 years agoClutterActor: Add clutter_actor_has_contraints
Adel Gadllah [Thu, 29 Sep 2011 16:29:40 +0000 (18:29 +0200)]
ClutterActor: Add clutter_actor_has_contraints

Adds an efficent way to query whether an actor has any
applied constraints.

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

12 years agoClutterActor: Add clutter_actor_has_effects
Adel Gadllah [Thu, 29 Sep 2011 13:31:30 +0000 (15:31 +0200)]
ClutterActor: Add clutter_actor_has_effects

Adds an efficent way to query whether an actor has any
applied effects.

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

12 years agoPass the remaining args to the executed interactive unit
Emmanuele Bassi [Thu, 29 Sep 2011 13:01:03 +0000 (14:01 +0100)]
Pass the remaining args to the executed interactive unit

We only support running one interactive test at a time; everything after
the unit name is to be considered an argument to the actual unit.

12 years agoUpdated Telugu Translations
krishnababu k [Thu, 29 Sep 2011 06:39:11 +0000 (12:09 +0530)]
Updated Telugu Translations