profile/ivi/clutter.git
12 years agocogl/backend: Remove ensure_context()
Emmanuele Bassi [Thu, 3 Nov 2011 16:46:48 +0000 (16:46 +0000)]
cogl/backend: Remove ensure_context()

We have a default implementation for it, now.

12 years agobackend: Provide an implementation of ensure_backend()
Emmanuele Bassi [Thu, 3 Nov 2011 16:45:56 +0000 (16:45 +0000)]
backend: Provide an implementation of ensure_backend()

We can do it for all Cogl-based backends.

12 years agoconform/color: Check invalid strings
Emmanuele Bassi [Thu, 10 Nov 2011 14:15:32 +0000 (14:15 +0000)]
conform/color: Check invalid strings

We need to make sure to fail consistently for invalid strings.

12 years agocolor: Validate hex formats
Emmanuele Bassi [Thu, 10 Nov 2011 14:13:45 +0000 (14:13 +0000)]
color: Validate hex formats

Right now, we pass through to Pango unrecognized hexadecimal formats
when parsing colors from strings. Since we parse all possible formats
ourselves, we can do validation ourselves as well, and avoid the Pango
path.

12 years agoconform/color: Test hsla() format
Emmanuele Bassi [Thu, 10 Nov 2011 12:56:47 +0000 (12:56 +0000)]
conform/color: Test hsla() format

12 years agoclutter-stage-x11: Make sure to set geometry x and y
Jasper St. Pierre [Wed, 9 Nov 2011 21:37:32 +0000 (16:37 -0500)]
clutter-stage-x11: Make sure to set geometry x and y

Otherwise, we could be dealing with uninitialized values, causing
havoc all over the place.

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

12 years agoMinor whitespace fix for clutter color parsing of hsla(h,s,l,a)
Craig R. Hughes [Tue, 8 Nov 2011 01:00:45 +0000 (17:00 -0800)]
Minor whitespace fix for clutter color parsing of hsla(h,s,l,a)

Previously, if there was whitespace between "l" and the comma before the
alpha value, parsing would fail.  This patch allows that whitespace
making it consistent with whitespace being allowed everywhere else.

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

12 years agocally: Use the proper role for password entries
Matthias Clasen [Fri, 4 Nov 2011 11:14:47 +0000 (07:14 -0400)]
cally: Use the proper role for password entries

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

12 years agomain: Add a debug note when reading the settings file
Emmanuele Bassi [Wed, 9 Nov 2011 09:09:37 +0000 (09:09 +0000)]
main: Add a debug note when reading the settings file

So that's easier to track in the debug log.

12 years agoactor: Deprecate [sg]et_geometry()
Emmanuele Bassi [Tue, 8 Nov 2011 14:46:55 +0000 (14:46 +0000)]
actor: Deprecate [sg]et_geometry()

These methods are short-hands for accessing the position and size,
which are already shorthands for accessing the various dimensional
and positional attributes. Plus, they use ClutterGeometry, which is a
fairly bad data type for a rectangle.

12 years agoReplace usage of [sg]et_geometry()
Emmanuele Bassi [Tue, 8 Nov 2011 14:46:16 +0000 (14:46 +0000)]
Replace usage of [sg]et_geometry()

The set_geometry() and get_geometry() methods are going to be
deprecated.

12 years agoReplace ClutterGeometry with cairo_rectangle_int_t
Emmanuele Bassi [Tue, 8 Nov 2011 14:20:32 +0000 (14:20 +0000)]
Replace ClutterGeometry with cairo_rectangle_int_t

We still use ClutterGeometry internally in a couple of places, but we
should really move away from that flawed rectangle data type, and use
the Cairo one.

Sadly, we still have some public API that we cannot remove yet.

12 years agobuild: Remove mention of missing file
Emmanuele Bassi [Tue, 8 Nov 2011 11:19:22 +0000 (11:19 +0000)]
build: Remove mention of missing file

There is no clutter-event-gdk.h in the build.

12 years agomain: Deprecate clutter_set_default_frame_rate()
Emmanuele Bassi [Mon, 7 Nov 2011 20:24:13 +0000 (20:24 +0000)]
main: Deprecate clutter_set_default_frame_rate()

Setting the default frame rate does not do anything even remotely
useful, unless synchronization to the vertical refresh rate is also
disabled - which can only be done through environment variable or
through configuration file. Having a programmatic way to change the
default frame rate is, thus, completely pointless.

Changing the default frame rate through environment variable and
configuration file is still allowed.

12 years agoosx/stage: Fix compilation
Emmanuele Bassi [Fri, 4 Nov 2011 12:03:13 +0000 (12:03 +0000)]
osx/stage: Fix compilation

We need to include clutter-stage-window.h.

12 years agobuild: Ensure libdir exists before installing to it
Colin Walters [Thu, 3 Nov 2011 18:42:07 +0000 (14:42 -0400)]
build: Ensure libdir exists before installing to it

12 years agodocs: Fixes for the API reference build
Emmanuele Bassi [Thu, 3 Nov 2011 16:05:36 +0000 (16:05 +0000)]
docs: Fixes for the API reference build

12 years agotests: Remove #undef CLUTTER_DISABLE_DEPRECATED
Emmanuele Bassi [Thu, 3 Nov 2011 15:35:03 +0000 (15:35 +0000)]
tests: Remove #undef CLUTTER_DISABLE_DEPRECATED

We need to test deprecated API as well, and we don't use a guard any
more in the build.

12 years agoRemove CLUTTER_DISABLE_DEPRECATED from the build flags
Emmanuele Bassi [Thu, 3 Nov 2011 15:32:53 +0000 (15:32 +0000)]
Remove CLUTTER_DISABLE_DEPRECATED from the build flags

We don't use it any more.

12 years agoRemove CLUTTER_DISABLE_DEPRECATED guard
Emmanuele Bassi [Thu, 3 Nov 2011 15:32:04 +0000 (15:32 +0000)]
Remove CLUTTER_DISABLE_DEPRECATED guard

Except for macros, we now entirely depend on the deprecation warnings
instead of a guard.

12 years agodocs: Fix a wrongly named argument
Emmanuele Bassi [Thu, 3 Nov 2011 15:16:02 +0000 (15:16 +0000)]
docs: Fix a wrongly named argument

12 years agostage: Move the deprecated macros to a separate header
Emmanuele Bassi [Thu, 3 Nov 2011 15:13:54 +0000 (15:13 +0000)]
stage: Move the deprecated macros to a separate header

The clutter-stage.h header still has a bunch of macros that have, for
reasons unknown[*], survived the 1.0 API cut and have long since been
deprecated. Let's hide them under the deprecated/ carpet and let us
never speak of them ever again.

[*] pretty sure alcohol or other psychotropic substances were involved
but I take the 5th on that.

12 years agobuild: Fix compilation
Emmanuele Bassi [Thu, 3 Nov 2011 15:03:16 +0000 (15:03 +0000)]
build: Fix compilation

12 years agogroup: Move deprecated macro into its own header
Emmanuele Bassi [Thu, 3 Nov 2011 15:02:35 +0000 (15:02 +0000)]
group: Move deprecated macro into its own header

12 years agoDon't use a -deprecated suffix for headers
Emmanuele Bassi [Thu, 3 Nov 2011 14:49:56 +0000 (14:49 +0000)]
Don't use a -deprecated suffix for headers

They are already in the deprecated/ directory, the suffix is redundant,
and there is no chance of collision.

12 years agoMove clutter-keysyms-compat.h to the deprecated section
Emmanuele Bassi [Thu, 3 Nov 2011 14:42:39 +0000 (14:42 +0000)]
Move clutter-keysyms-compat.h to the deprecated section

No reason to have it lingering in the main section.

12 years agox11/backend: Use an internal GError
Emmanuele Bassi [Thu, 3 Nov 2011 14:02:43 +0000 (14:02 +0000)]
x11/backend: Use an internal GError

Don't just return the error from Cogl, but proxy it so that it has the
correct error domain and code.

12 years agobuild: Clean up the per-backend summary
Emmanuele Bassi [Wed, 2 Nov 2011 17:31:29 +0000 (17:31 +0000)]
build: Clean up the per-backend summary

12 years agobuild: Use AC_CACHE_SAVE
Emmanuele Bassi [Wed, 2 Nov 2011 17:30:30 +0000 (17:30 +0000)]
build: Use AC_CACHE_SAVE

Delimit the points in the configure script that should save the state,
so that running the script multiple times doesn't require starting from
scratch even if it didn't terminate successfully.

12 years agobuild: Disable tslib by default
Emmanuele Bassi [Wed, 2 Nov 2011 13:17:27 +0000 (13:17 +0000)]
build: Disable tslib by default

The event handling through tslib hasn't been tested in a while, and it
hasn't been ported to the device manager machinery either. We are still
considering whether or not it should be entirely removed, since evdev is
supposed to be a better way to handle events not coming from an existing
windowing system.

12 years agointeractive/pixmap: Make sure to work only on the X11 backend
Emmanuele Bassi [Mon, 17 Oct 2011 15:07:05 +0000 (16:07 +0100)]
interactive/pixmap: Make sure to work only on the X11 backend

Even if the test has been successfully compiled against the X11 backend,
we need to ensure that it is actually running against it, otherwise bad
things will happen.

12 years agointeractive/devices: Build unconditionally
Emmanuele Bassi [Mon, 17 Oct 2011 15:06:15 +0000 (16:06 +0100)]
interactive/devices: Build unconditionally

The test-devices interactive test does not rely on the X11 API being
present any more, after the introduction of the device manager API.

12 years agoClean up the windowing system defines
Emmanuele Bassi [Mon, 17 Oct 2011 15:03:19 +0000 (16:03 +0100)]
Clean up the windowing system defines

Instead of defining new symbols for the windowing systems enabled at
configure time, we can reuse the same symbols for both the compile time
and run time checks, e.g.:

  #ifdef CLUTTER_WINDOWING_X11
    if (clutter_check_windowing_backend (CLUTTER_WINDOWING_X11))
      /* use the clutter_x11_* API */
    else
  #endif
  #ifdef CLUTTER_WINDOWING_WIN32
    if (clutter_check_windowing_backend (CLUTTER_WINDOWING_WIN32))
      /* use the clutter_win32_* API */
  #endif

This scheme allows us to ensure that the input system namespace is free
for us to use and select at run time in later versions of Clutter.

12 years agoClean up the backend creation
Emmanuele Bassi [Mon, 17 Oct 2011 12:25:15 +0000 (13:25 +0100)]
Clean up the backend creation

Move it to its own function.

12 years agobuild: Make sure to remove colliding shared libraries
Emmanuele Bassi [Fri, 14 Oct 2011 11:00:44 +0000 (12:00 +0100)]
build: Make sure to remove colliding shared libraries

The compatibility links should take over any existing installed
shared library with the same soname, to avoid ldd creating stale
links.

12 years agodocs: Update the README section on configure switches
Emmanuele Bassi [Wed, 12 Oct 2011 16:56:07 +0000 (17:56 +0100)]
docs: Update the README section on configure switches

12 years agobuild: Implement proper platform checking
Emmanuele Bassi [Wed, 12 Oct 2011 07:48:56 +0000 (08:48 +0100)]
build: Implement proper platform checking

Perform the check for enabling platform-specific backends conditionally
on the 'check' value, instead of unconditionally.

Also, rename the configure switches for the backends to have a '-backend'
suffix, to avoid collisions and provide a more descriptive name.

12 years agobuild: Improve the compat libs rule
Emmanuele Bassi [Mon, 3 Oct 2011 16:11:49 +0000 (17:11 +0100)]
build: Improve the compat libs rule

Use the same commands libtool uses when installing symbolic links for
the shared libraries.

12 years agogdk/events: Clean up the event handling code
Emmanuele Bassi [Mon, 3 Oct 2011 14:25:40 +0000 (15:25 +0100)]
gdk/events: Clean up the event handling code

We need debugging notes, to see what's happening when handling events.

We need to queue a (clipped) redraw when receiving a GDK_EXPOSE event.

We need to check the device (both master and source) of the event using
the GdkEvent API, and pass them to the ClutterEvent using the
corresponding Clutter API.

12 years agoegl: First attempt at cleaning up the EGL native backend
Emmanuele Bassi [Mon, 3 Oct 2011 11:25:53 +0000 (12:25 +0100)]
egl: First attempt at cleaning up the EGL native backend

At least, let's make it compile when built along with the other
backends. In reality, it still needs to be verified as working.

12 years agobuild: Move EGL-related files under egl/
Emmanuele Bassi [Mon, 3 Oct 2011 09:23:46 +0000 (10:23 +0100)]
build: Move EGL-related files under egl/

Including the clutter-cex100.h.in header.

12 years agobuild: Move clutter-event-tslib.c out of egl/
Emmanuele Bassi [Mon, 3 Oct 2011 09:17:56 +0000 (10:17 +0100)]
build: Move clutter-event-tslib.c out of egl/

Prepare for a full tslib device manager.

12 years agoCoding style and cosmetic fixes
Emmanuele Bassi [Fri, 30 Sep 2011 16:29:40 +0000 (17:29 +0100)]
Coding style and cosmetic fixes

12 years agoMinimal cosmetic fix to the configure output
Emmanuele Bassi [Fri, 30 Sep 2011 13:50:31 +0000 (14:50 +0100)]
Minimal cosmetic fix to the configure output

12 years agoRemove the X11-specific bit in ClutterStageCogl
Emmanuele Bassi [Fri, 30 Sep 2011 12:58:40 +0000 (13:58 +0100)]
Remove the X11-specific bit in ClutterStageCogl

Let's use a new virtual function in ClutterStageWindow to check whether
a platform-specific implementation does support clipped redraws.

12 years agogdk: Fix Stage foreign window support
Emmanuele Bassi [Thu, 29 Sep 2011 17:16:48 +0000 (18:16 +0100)]
gdk: Fix Stage foreign window support

The code is generally wrong, and does not work. We need to skip the
GdkWindow creation when we have a foreing window, but we still need to
create the Cogl onscreen buffer and connect it to the GdkWindow's native
resource.

12 years agogdk: Allow disabling event retrieval
Emmanuele Bassi [Thu, 29 Sep 2011 17:10:48 +0000 (18:10 +0100)]
gdk: Allow disabling event retrieval

Just like the other backends can disable the internal event handling,
and use clutter_<backend>_handle_event() to do the native → Clutter
event translation.

12 years agoCosmetic fixes
Emmanuele Bassi [Tue, 27 Sep 2011 12:24:52 +0000 (13:24 +0100)]
Cosmetic fixes

12 years agoAllow checking the backend type at run-time
Emmanuele Bassi [Mon, 26 Sep 2011 12:14:26 +0000 (13:14 +0100)]
Allow checking the backend type at run-time

Portable code should be allowed to check type backend currently being
used, so that it can use platform-specific API (not just Clutter's).

We don't want to go down the GDK route, with public types for
ClutterBackend and ClutterStageWindow implementations, and use the type
system, e.g.:

  #ifdef GDK_WINDOWING_X11
    if (GDK_IS_WINDOW_X11 (window))
      use_x11_api (window);
    else
  #endif
  #ifdef GDK_WINDOWING_WIN32
    if (GDK_IS_WINDOW_WIN32 (window))
      use_win32_api (window);
    else
  #endif
    g_critical ("Unsupported backend");

This system would make us expose the backend system, and we want to
still reserve us the option to change the backend system to increase its
granularity — e.g. choosing different input event systems regardless of
the windowing system.

This commit adds a simple function that checks the backend type against
a symbolic constant — the same constant string that can be used to
select the backend at run-time through the CLUTTER_BACKEND environment
variable.

12 years agoImplement multi-backend support
Emmanuele Bassi [Wed, 21 Sep 2011 17:05:03 +0000 (18:05 +0100)]
Implement multi-backend support

The Clutter backend split is opaque enough that should allow us to just
build all possible backends inside the same shared object, and select
the wanted backend at initialization time.

This requires some work in the build system, as well as the
initialization code, to remove duplicate functions that might cause
conflicts at build and link time. We also need to defer all the checks
of the internal state of the platform-specific API to run-time type
checks.

12 years agoRework the interaction between the Cogl and GDK / X11 backends.
Giovanni Campagna [Fri, 26 Aug 2011 22:16:12 +0000 (00:16 +0200)]
Rework the interaction between the Cogl and GDK / X11 backends.

Previously, the Cogl backend was at times a subclass of the X11
backend, and at times a standalone one. Now it is the other way
round, with GDK and X11 backends providing the concrete classes,
layered on top of the generic Cogl backend. A new EglNative backend
was introduced for direct to framebuffer rendering. This greatly
simplifies the API design (at the expense of some casts needed)
and reduces the amount of #ifdefs, without duplicating code.

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

12 years agoAdd a new GDK backend
Giovanni Campagna [Fri, 26 Aug 2011 01:09:18 +0000 (03:09 +0200)]
Add a new GDK backend

This commit introduces a new flavour for Clutter, that uses GDK
for handling all window system specific interactions (except for
creating the cogl context, as cogl does not know about GDK), including
in particular events. This is not compatible with the X11 (glx)
flavour, and this is reflected by the different soname (libclutter-gdk-1.0.so),
as all X11 specific functions and classes are not available. If you
wish to be compatible, you should check for CLUTTER_WINDOWING_X11.
Other than that, this backend should be on feature parity with X11,
including XInput 2, XSettings and EMWH (with much, much less code)

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

12 years agocogl: fallback to non-transparent stages if unsupported
Robert Bragg [Tue, 1 Nov 2011 13:42:40 +0000 (13:42 +0000)]
cogl: fallback to non-transparent stages if unsupported

If our check of the CoglOnscreenTemplate during initialization fails
then we disable the request for an alpha component in the swap chain and
try the check again.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
12 years agobuild: Bump up Cogl dependency
Emmanuele Bassi [Wed, 2 Nov 2011 13:03:26 +0000 (13:03 +0000)]
build: Bump up Cogl dependency

The newly added cogl-xlib.h header is available since Cogl 1.9, so we
need to bump up the dependency.

12 years agotslib: Remove mention of clutter-stage-egl.h
Emmanuele Bassi [Wed, 2 Nov 2011 12:53:55 +0000 (12:53 +0000)]
tslib: Remove mention of clutter-stage-egl.h

That header has long since disappeared from the build.

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.