profile/ivi/clutter.git
15 years ago[script] Fix the default deserialization
Emmanuele Bassi [Wed, 12 Aug 2009 15:01:25 +0000 (16:01 +0100)]
[script] Fix the default deserialization

Properties parsed from ClutterScript should now use G_TYPE_INT64
and automatically convert between G_TYPE_INT and G_TYPE_INT64.

15 years ago[json] Update the internal copy of JSON-GLib
Emmanuele Bassi [Wed, 12 Aug 2009 15:00:13 +0000 (16:00 +0100)]
[json] Update the internal copy of JSON-GLib

JSON-GLib switch to 64 bit integers upstream, to avoid the undefined
integer size of the JSON RFC. All integers are automatically promoted
to gint64.

15 years agoInclude clutter-json.h, not json-types.h
Emmanuele Bassi [Wed, 12 Aug 2009 14:57:25 +0000 (15:57 +0100)]
Include clutter-json.h, not json-types.h

The json-types.h header is found by the mere fact of it being
in the project; if we are compiling against the system JSON-GLib
this could be horribly out of date.

We need to use clutter-json.h, which will include the right
header for us.

15 years agoClutter GIR depends on ClutterJson GIR conditionally
Emmanuele Bassi [Wed, 12 Aug 2009 14:32:18 +0000 (15:32 +0100)]
Clutter GIR depends on ClutterJson GIR conditionally

If we're building Clutter with a system JSON-GLib we need to skip
the typelib compilation of ClutterJson since we depend on Json-1.0.gir
directly.

15 years ago[json] Include only json-glib.h
Emmanuele Bassi [Wed, 12 Aug 2009 14:31:16 +0000 (15:31 +0100)]
[json] Include only json-glib.h

JSON-GLib moved to a single include scheme, so we should only include
json-glib.h. If we use the internal copy it doesn't matter, since the
header does the right thing.

15 years agoAdd copyright and license notice
Emmanuele Bassi [Wed, 12 Aug 2009 09:30:11 +0000 (10:30 +0100)]
Add copyright and license notice

The clutter-script-parser.c does not have a copyright and license
notices; even though the LGPL is a per-project license and not a
per-file license, having those notices in every source file is a
good idea.

15 years ago[eglx] Update the EGLX backend
zhou jiangwei [Tue, 11 Aug 2009 13:18:37 +0000 (14:18 +0100)]
[eglx] Update the EGLX backend

The EGLX backend needs to be updated to the new ClutterBackendX11
code.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[cogl] Fix the GLES 2.0 backend
zhou jiangwei [Tue, 11 Aug 2009 13:17:28 +0000 (14:17 +0100)]
[cogl] Fix the GLES 2.0 backend

Update the GLES 2.0 backend to the new COGL API after the breakage
introduced by the journal.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[cogl_clear] Also pass the alpha component of the CoglColor to glClearColor
Robert Bragg [Tue, 11 Aug 2009 12:49:12 +0000 (13:49 +0100)]
[cogl_clear] Also pass the alpha component of the CoglColor to glClearColor

Previously we were passing a constant of 0.0 for the alpha component which
wasn't as flexible.

15 years ago[build] Fix LDADD -> LIBADD usage
Emmanuele Bassi [Tue, 11 Aug 2009 12:27:25 +0000 (13:27 +0100)]
[build] Fix LDADD -> LIBADD usage

15 years ago[osx] Clean up Makefile.am
Emmanuele Bassi [Tue, 11 Aug 2009 12:11:34 +0000 (13:11 +0100)]
[osx] Clean up Makefile.am

The OS X backend Makefile.am was missing a line concatenation, and
so the -xobjective-c directive was always ignored.

Instead of dumping everything into INCLUDES and LDADD we should follow
what the rest of the backends do, and use per-target CFLAGS and LDADD,
and reserve the INCLUDES to -D and -I directives.

Thanks to: Christian Hergert <chris@dronelabs.com>

15 years agoMerge branch 'system-json-glib'
Emmanuele Bassi [Mon, 10 Aug 2009 16:21:20 +0000 (17:21 +0100)]
Merge branch 'system-json-glib'

* system-json-glib:
  [script] Simplify the parser code
  Update JSON-GLib dependency

15 years ago[build] Install JSON headers inside the right directory
Emmanuele Bassi [Mon, 10 Aug 2009 16:19:04 +0000 (17:19 +0100)]
[build] Install JSON headers inside the right directory

Don't install inside the clutter-MAJOR_MINOR/ directory, but use
the API_VERSION (1.0).

Otherwise we'd have the Clutter headers for 1.x inside:

        $includedir/clutter-1.0/clutter

And the JSON-related headers inside:

        $includedir/clutter-1.<minor>/clutter

15 years agoBump to 1.1.1 after branching 1.0
Emmanuele Bassi [Fri, 7 Aug 2009 14:27:25 +0000 (15:27 +0100)]
Bump to 1.1.1 after branching 1.0

15 years ago[x11] Do not ask to destroy an empty Window
Emmanuele Bassi [Fri, 7 Aug 2009 07:18:17 +0000 (08:18 +0100)]
[x11] Do not ask to destroy an empty Window

The fix for bug 1750 inside commit b190448e made Clutter-GTK spew
BadWindow errors. The reason for that is that we call XDestroyWindow()
without checking if the old Window is None; this happens if we call
clutter_x11_set_stage_foreign() on a new ClutterStage before it has
been realized.

Since Clutter-GTK does not need to realize the Stage it is going to
embed anymore (the only reason for that was to obtain a proper Visual
but now there's ClutterBackendX11 API for that), the set_stage_foreign()
call is effectively setting the StageX11 Window for the first time.

15 years ago[actor] Add missing return_if_fail()
Emmanuele Bassi [Wed, 5 Aug 2009 16:46:18 +0000 (17:46 +0100)]
[actor] Add missing return_if_fail()

The queue_relayout() method was missing the argument check.

Thanks to: Neil Patel <njpatel@gmail.com>

15 years agoSmall doc fix to clutter_text_get_color
Neil Roberts [Wed, 5 Aug 2009 14:51:49 +0000 (15:51 +0100)]
Small doc fix to clutter_text_get_color

Bug reported by Rob Bradford.

15 years ago[x11] Destroy the Window we own when setting a foreign one
Emmanuele Bassi [Tue, 4 Aug 2009 15:59:15 +0000 (16:59 +0100)]
[x11] Destroy the Window we own when setting a foreign one

When we replace the stage Window using a foreign one we also need to
destroy the Window we created, if needed, to avoid leaking resources
all around.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1750

15 years ago[docs] Close a tag
Emmanuele Bassi [Tue, 4 Aug 2009 10:39:09 +0000 (11:39 +0100)]
[docs] Close a tag

15 years ago[docs] Fix a missing parameter
Emmanuele Bassi [Tue, 4 Aug 2009 10:38:48 +0000 (11:38 +0100)]
[docs] Fix a missing parameter

15 years ago[actor] Be more explicit when warning about invariants
Emmanuele Bassi [Tue, 4 Aug 2009 10:11:59 +0000 (11:11 +0100)]
[actor] Be more explicit when warning about invariants

The "catch all" warning for a the mapped invariant violation is too
generic: it doesn't tell you why the invariant was broken in case
we are trying to map an unparented actor - e.g. through a Clone.

15 years ago[cogl] Expose cogl_is_vertex_buffer()
Emmanuele Bassi [Tue, 4 Aug 2009 10:10:55 +0000 (11:10 +0100)]
[cogl] Expose cogl_is_vertex_buffer()

The function is public and available in the shared object, but
it's not present in the header, so this is not an API/ABI change.

15 years ago[build] remove reference to light1.png in tests/interactive/Makefile.am
Robert Bragg [Mon, 3 Aug 2009 14:03:19 +0000 (15:03 +0100)]
[build] remove reference to light1.png in tests/interactive/Makefile.am

This file doesn't exist in the repo and isn't referenced by any unit tests.

15 years ago[build] dist tests/interactive/wrapper.sh
Robert Bragg [Mon, 3 Aug 2009 13:53:46 +0000 (14:53 +0100)]
[build] dist tests/interactive/wrapper.sh

in tests/interactive/Makefile.am add wrapper.sh to EXTRA_DIST otherwise
interactive unit tests wont be runnable when building from distributed
tarballs.

15 years ago[debug] CLUTTER_{NOTE,MARK,DBG,GLERR,TIMESTAMP} should always be statements
Damien Lespiau [Mon, 3 Aug 2009 13:11:33 +0000 (14:11 +0100)]
[debug] CLUTTER_{NOTE,MARK,DBG,GLERR,TIMESTAMP} should always be statements

In case someone tries to do:
if (foo)
CLUTTER_NOTE(DOMAIN, "%s", blah);

CLUTTER_NOTE () should always be a statement

15 years ago[debug] Fix __GNUC__ typo
Damien Lespiau [Mon, 3 Aug 2009 12:58:52 +0000 (13:58 +0100)]
[debug] Fix __GNUC__ typo

The right gcc define is __GNUC__ not __GNUC_. This typo had the side
effect that we were using the non gcc specific debug macros leading to
a less optmised CLUTTER_NOTE () than one could have dreamed of.

15 years ago[build] GCC_FLAGS is no more, MAINTAINER_CFLAGS is the One.
Damien Lespiau [Mon, 3 Aug 2009 12:56:32 +0000 (13:56 +0100)]
[build] GCC_FLAGS is no more, MAINTAINER_CFLAGS is the One.

CC_FLAGS was a left over from the 0.8.x age. Killed it and use the
newer MAINTAINER_CFLAGS variable instead.

15 years ago[gitignore] Ignore new test-color-hls-roundtrip test
Damien Lespiau [Mon, 3 Aug 2009 12:58:21 +0000 (13:58 +0100)]
[gitignore] Ignore new test-color-hls-roundtrip test

15 years ago[actor] Use the right vertex
Emmanuele Bassi [Sun, 2 Aug 2009 17:34:17 +0000 (18:34 +0100)]
[actor] Use the right vertex

The vertex that should be used by the apply_relative_transform
is the one passed in as const, and the result should be placed
inside the non-const ClutterVertext. Currently, we are using
the latter, and thus the function is completely useless.

15 years ago[x11] Force a redraw before mapping the stage
Emmanuele Bassi [Fri, 31 Jul 2009 09:29:33 +0000 (10:29 +0100)]
[x11] Force a redraw before mapping the stage

Does as it says on the tin: run a paint cycle before calling
XMapWindow().

15 years ago[docs] Update building instructions for OS X
Joshua Lock [Fri, 31 Jul 2009 09:16:56 +0000 (10:16 +0100)]
[docs] Update building instructions for OS X

Recommend OS X users install the dependencies using MacPorts and build
Clutter themselves.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[mingw] Update the README
Neil Roberts [Wed, 29 Jul 2009 18:06:36 +0000 (19:06 +0100)]
[mingw] Update the README

The README has been updated to say that you can use the script under
MSYS and also to contain a pointer to OAH. It also contains the
updated contents of a blog post¹ about building with MSYS.

1. http://www.busydoingnothing.co.uk/blog/2008/07/13#ClutterWin32

15 years ago[mingw-cross-compile.sh] Fix to use git rather than svn
Neil Roberts [Wed, 29 Jul 2009 17:13:19 +0000 (18:13 +0100)]
[mingw-cross-compile.sh] Fix to use git rather than svn

The script includes a part to automatically checkout the Clutter
source and build it but it was using the old svn repo instead of git.

15 years ago[mingw-cross-compile.sh] Add a note about MSYS in the comment
Neil Roberts [Wed, 29 Jul 2009 16:59:54 +0000 (17:59 +0100)]
[mingw-cross-compile.sh] Add a note about MSYS in the comment

The comment previously implied that you could only use the script to
cross compile but it works just as well under MSYS.

15 years ago[mingw-cross-compile.sh] Update version numbers of all the dependencies
Neil Roberts [Wed, 29 Jul 2009 16:58:02 +0000 (17:58 +0100)]
[mingw-cross-compile.sh] Update version numbers of all the dependencies

This updates the URLs for the binary dependencies to use the latest
versions.

15 years ago[docs] Remove mentions of Clutter-Cairo
Emmanuele Bassi [Wed, 29 Jul 2009 16:22:18 +0000 (17:22 +0100)]
[docs] Remove mentions of Clutter-Cairo

The mingw README file still mentions Clutter-Cairo as a known issue.

15 years ago[mingw/win32] Remove clutter-cairo
Emmanuele Bassi [Wed, 29 Jul 2009 16:21:13 +0000 (17:21 +0100)]
[mingw/win32] Remove clutter-cairo

The Clutter-Cairo library has been removed, so there's no point
in checking it out -- from Subversion, even.

15 years agoPost-release bump to 1.0.1
Emmanuele Bassi [Tue, 28 Jul 2009 17:39:24 +0000 (18:39 +0100)]
Post-release bump to 1.0.1

15 years ago[release] 1.0.0
Emmanuele Bassi [Tue, 28 Jul 2009 12:23:26 +0000 (13:23 +0100)]
[release] 1.0.0

15 years agoUpdate the NEWS
Emmanuele Bassi [Tue, 28 Jul 2009 11:20:07 +0000 (12:20 +0100)]
Update the NEWS

15 years agoFix compiler warnings when COGL debug level=minimum
Emmanuele Bassi [Tue, 28 Jul 2009 12:57:07 +0000 (13:57 +0100)]
Fix compiler warnings when COGL debug level=minimum

15 years ago[docs] Point the TODO to Bugzilla
Emmanuele Bassi [Tue, 28 Jul 2009 11:19:44 +0000 (12:19 +0100)]
[docs] Point the TODO to Bugzilla

15 years ago[docs] Update requirements and release notes
Emmanuele Bassi [Tue, 28 Jul 2009 11:19:26 +0000 (12:19 +0100)]
[docs] Update requirements and release notes

15 years ago[units] Add binding-friendly initializers
Emmanuele Bassi [Tue, 28 Jul 2009 12:43:52 +0000 (13:43 +0100)]
[units] Add binding-friendly initializers

We should follow the convention for boxed types initializers of:

  <type_name>_from_<another_type> (boxed, value)

For ClutterUnits as well; so:

  clutter_units_pixels -> clutter_units_from_pixels
  clutter_units_em     -> clutter_units_from_em
  ...

We should still keep the short-hand version as a macro, though.

15 years ago[animation] Fix variable use
Emmanuele Bassi [Tue, 28 Jul 2009 12:20:32 +0000 (13:20 +0100)]
[animation] Fix variable use

Instead of using the proper typed variables we were overwriting
the gpointer for the Interval's final value.

15 years ago[win32] Remove the call to clutter_redraw in clutter_stage_win32_show
Neil Roberts [Tue, 28 Jul 2009 11:03:55 +0000 (12:03 +0100)]
[win32] Remove the call to clutter_redraw in clutter_stage_win32_show

Since commit 7b811f8b this is done in clutter_stage_show so there is
no need for it in the backends.

15 years ago[win32] Move the show/hide to be implementations of the interface
Neil Roberts [Tue, 28 Jul 2009 11:00:49 +0000 (12:00 +0100)]
[win32] Move the show/hide to be implementations of the interface

This makes clutter_stage_win32_show/hide be implementations of
ClutterStageWindowIface rather than overriding the methods in
ClutterActor. This reflects the changes in e4ff24bc for the X11
backend.

15 years ago[build/mingw] Update Cairo version to 1.8.6 in mingw-cross-compile.sh
Neil Roberts [Tue, 28 Jul 2009 10:58:34 +0000 (11:58 +0100)]
[build/mingw] Update Cairo version to 1.8.6 in mingw-cross-compile.sh

The Pango 1.22 binaries require Cairo 1.8.0 to get
cairo_show_text_glyphs.

15 years agoAvoid near/far identifier names.
Ole AndrĂ© Vadla RavnĂ¥s [Tue, 7 Jul 2009 18:02:25 +0000 (20:02 +0200)]
Avoid near/far identifier names.

Leads to conflict with system headers on Windows, where macros named
"near" and "far" are defined.

15 years agoRemove unused variable to fix compiler warning.
Ole AndrĂ© Vadla RavnĂ¥s [Wed, 1 Jul 2009 14:29:12 +0000 (16:29 +0200)]
Remove unused variable to fix compiler warning.

15 years agoCall glClientActiveTexture() through COGL context.
Ole AndrĂ© Vadla RavnĂ¥s [Wed, 1 Jul 2009 14:27:11 +0000 (16:27 +0200)]
Call glClientActiveTexture() through COGL context.

Fixes build issues on systems with OpenGL header older than 1.3.

15 years agoAvoid C99 to fix compilation with compilers like MSVC.
Ole AndrĂ© Vadla RavnĂ¥s [Tue, 16 Jun 2009 20:29:21 +0000 (22:29 +0200)]
Avoid C99 to fix compilation with compilers like MSVC.

15 years agoInitialize pixel data before glReadPixels().
Ole AndrĂ© Vadla RavnĂ¥s [Mon, 18 May 2009 15:30:36 +0000 (17:30 +0200)]
Initialize pixel data before glReadPixels().

15 years agoReposition variable declarations to avoid C99.
Haakon Sporsheim [Tue, 31 Mar 2009 12:45:45 +0000 (14:45 +0200)]
Reposition variable declarations to avoid C99.

15 years agoAdd MSVC preprocessor guards in test-clutter-cairo-flowers.c
Haakon Sporsheim [Tue, 31 Mar 2009 12:44:46 +0000 (14:44 +0200)]
Add MSVC preprocessor guards in test-clutter-cairo-flowers.c

15 years agoAdd white_color a variable on the stack.
Haakon Sporsheim [Tue, 31 Mar 2009 12:43:12 +0000 (14:43 +0200)]
Add white_color a variable on the stack.

15 years agoAdd int dummy; to empty struct TestConformSimpleFixture definition.
Haakon Sporsheim [Tue, 31 Mar 2009 12:41:44 +0000 (14:41 +0200)]
Add int dummy; to empty struct TestConformSimpleFixture definition.

15 years agoRemove config.h inclusion.
Haakon Sporsheim [Tue, 31 Mar 2009 12:39:46 +0000 (14:39 +0200)]
Remove config.h inclusion.

15 years agoReposition variable declarations to avoid C99.
Haakon Sporsheim [Tue, 31 Mar 2009 12:37:07 +0000 (14:37 +0200)]
Reposition variable declarations to avoid C99.

15 years agoRemove the MSVC build files
Neil Roberts [Tue, 28 Jul 2009 09:39:18 +0000 (10:39 +0100)]
Remove the MSVC build files

These are hopelessly out of date so they just cause more trouble than
they're worth.

Anyone interested in building with MSVC would be better off starting
from the build files available as part of the OAH project which is
located here:

https://launchpad.net/oah

15 years ago[animation] Force the final state inside ::completed
Emmanuele Bassi [Tue, 28 Jul 2009 10:25:11 +0000 (11:25 +0100)]
[animation] Force the final state inside ::completed

In case we are skipping too many frames, we should force the animation
instance to apply the final state of the animated interval inside the
::completed signal handler.

15 years ago[build] Generate ChangeLog from the Git import
Emmanuele Bassi [Mon, 27 Jul 2009 16:24:35 +0000 (17:24 +0100)]
[build] Generate ChangeLog from the Git import

15 years ago[build] Use API_VERSION, not MAJORMINOR
Emmanuele Bassi [Mon, 27 Jul 2009 15:51:14 +0000 (16:51 +0100)]
[build] Use API_VERSION, not MAJORMINOR

The correct macro for Clutter's API version is CLUTTER_API_VERSION,
not CLUTTER_MAJORMINOR anymore.

15 years agoRemove explicit size of the Vertex arrays
Emmanuele Bassi [Mon, 27 Jul 2009 15:10:07 +0000 (16:10 +0100)]
Remove explicit size of the Vertex arrays

The Vertex arrays passed to some ClutterActor methods should not
have the size. Albeit being technically correct, it's not a good
practice.

15 years ago[stage] Add a warning for :offscreen usage
Emmanuele Bassi [Mon, 27 Jul 2009 14:42:31 +0000 (15:42 +0100)]
[stage] Add a warning for :offscreen usage

The Stage:offscreen property hasn't been tested for ages, and it
should really just use a FBO, not indirect rendering on a X Pixmap
only on X11. There are better ways anyway to get the current
contents of ClutterStage as a buffer anyway.

We might remove it at any later date, or actually make it work
properly.

15 years ago[glx] Explicitly set the depth size for GLX visuals
Emmanuele Bassi [Mon, 27 Jul 2009 14:08:03 +0000 (15:08 +0100)]
[glx] Explicitly set the depth size for GLX visuals

When requesting a GLX visual from the X server we should explicitly
set the GL_DEPTH_SIZE and the GL_ALPHA_SIZE bits, otherwise some
functionality might just not work, or work unreliably.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1723

15 years agoConvert gint to GLints in the Shader types wrapper
Emmanuele Bassi [Mon, 27 Jul 2009 14:01:52 +0000 (15:01 +0100)]
Convert gint to GLints in the Shader types wrapper

The GValue wrappers for ClutterShader types should always store
values using GL types (GLfloat, GLint) internally, but give and
take generic C types (float, int) to the Clutter side.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1359

15 years ago[color] Fix HLS to RGB colorspace conversion
Emmanuele Bassi [Mon, 27 Jul 2009 11:04:40 +0000 (12:04 +0100)]
[color] Fix HLS to RGB colorspace conversion

The HLS to RGB conversion in case the S value is zero is:

  R = G = B = luminance

ClutterColor uses a byte (0 to 255) for the R, G and B channels
encoding, while luminance is expressed using a floating point value
in the closed interval [0, 1]; thus the case above becomes:

  R = G = B = (luminance * 255)

The clutter_color_from_hls() code is missing the final step of
de-normalizing the luminance value, and so it breaks the roundtrip
colorspace conversion between RGB and HLS.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1695

15 years ago[tests] Add RGB<->HLS roundtrip test unit
Emmanuele Bassi [Mon, 27 Jul 2009 10:46:26 +0000 (11:46 +0100)]
[tests] Add RGB<->HLS roundtrip test unit

The ClutterColor conformance test should have a unit for verifying
the RGB<->HLS conversion code, especially the ability to roundtrip
between the two colorspaces.

15 years agoAlways create the Damage object for ClutterX11TexturePixmap auto updates
Owen W. Taylor [Wed, 22 Jul 2009 19:38:44 +0000 (15:38 -0400)]
Always create the Damage object for ClutterX11TexturePixmap auto updates

If clutter_x11_texture_set_window() was called after
clutter_x11_texture_pixmap_set_automatic(), then the Damage object would
not be properly created so updates to the window were ignored.

Refactor creation of the damage object to a separate function, and
call it from clutter_x11_texture_set_window() and clutter_x11_texture_set_pixmap()
as appropriate. Addition and removal of the filter function is made
conditional on priv->damage to make free_damage_resources() cleanly
idempotent.

See: http://bugzilla.gnome.org/show_bug.cgi?id=587189 for the original
bug report.

http://bugzilla.openedhand.com/show_bug.cgi?id=1710

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[osx] Update events to floating point coordinates
Michael Mortensen [Sun, 26 Jul 2009 19:13:36 +0000 (20:13 +0100)]
[osx] Update events to floating point coordinates

The event translation code should be using the float type for
coordinates.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1725

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[osx] Implement StageWindow::show/::hide
Emmanuele Bassi [Sun, 26 Jul 2009 19:10:42 +0000 (20:10 +0100)]
[osx] Implement StageWindow::show/::hide

Instead of using the Actor class ::show and ::hide virtual function,
use the StageWindow interface API.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1724

15 years ago[text] Allow key navigation by word
Emmanuele Bassi [Thu, 23 Jul 2009 18:04:27 +0000 (19:04 +0100)]
[text] Allow key navigation by word

When pressing Ctrl with the left and right arrow keys we should
skip to (or select until) the previous and next word, respectively.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1713

15 years ago[text] Queue a redraw when the selection is cleared
Geoff Gustafson [Thu, 23 Jul 2009 17:21:10 +0000 (18:21 +0100)]
[text] Queue a redraw when the selection is cleared

If you select all the text in a ClutterText, there is an invisible
cursor position either at the beginning or end. If it's at the beginning,
the bug is that left arrow won't clear the selection. If it's at the end,
the bug is that the right arrow won't.

Here are the ways to reproduce it:

a. Ctrl-A selects all and moves the hidden cursor position to the left.
b. For single line: End, Shift-Home does the same.
c. Or manually moving to the end and doing Shift-Left Arrow to the
   beginning.

These all put it in the state where right arrow will properly clear
selection and move to cursor position 1, but left arrow fails to clear
the selection.

For b and c above, the opposite will give you the end case where right
arrow doesn't work.

Anyway, it turns out clear_selection is getting called, it just doesn't
show up because it's not doing a queue_redraw. So the attached patch
seems to fix things.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[docs] Fix wrong XML elements
Emmanuele Bassi [Tue, 21 Jul 2009 15:35:50 +0000 (16:35 +0100)]
[docs] Fix wrong XML elements

15 years ago[docs] Update the Actor subclassing documentation
Emmanuele Bassi [Tue, 21 Jul 2009 13:13:31 +0000 (14:13 +0100)]
[docs] Update the Actor subclassing documentation

Mention map/unmap and fix the examples code.

Update the Container virtual functions.

15 years ago[build] Use per-target flags and libraries
Emmanuele Bassi [Tue, 21 Jul 2009 13:11:28 +0000 (14:11 +0100)]
[build] Use per-target flags and libraries

AM_LDFLAGS is ignored by the LDFLAGS target, and it's also not the right
place to put the libraries used by the linker.

Thanks to Vincent Untz for spotting this.

15 years ago[docs] Update the "creating new behaviours" chapter
Emmanuele Bassi [Tue, 21 Jul 2009 10:51:20 +0000 (11:51 +0100)]
[docs] Update the "creating new behaviours" chapter

The signature of the ::alpha_notify virtual function has been
changed with the switch to float ClutterAlpha.

15 years ago[docs] Update the building instructions
Emmanuele Bassi [Tue, 21 Jul 2009 10:50:08 +0000 (11:50 +0100)]
[docs] Update the building instructions

New configure script command line switches have been added since
the last time we updated the documentation.

15 years ago[docs] Update the animations tutorial
Emmanuele Bassi [Tue, 21 Jul 2009 10:29:52 +0000 (11:29 +0100)]
[docs] Update the animations tutorial

Bring the Animation framework introduction/tutorial up to the 1.0
API for timelines and animations.

15 years agoFix copy-and-paste errors in the deprecation macros
Emmanuele Bassi [Tue, 21 Jul 2009 08:22:34 +0000 (09:22 +0100)]
Fix copy-and-paste errors in the deprecation macros

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1704

15 years ago[docs] Fix typo in the effects migration guide
Emmanuele Bassi [Tue, 21 Jul 2009 08:20:09 +0000 (09:20 +0100)]
[docs] Fix typo in the effects migration guide

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1706

15 years ago[docs] Improve the Units to and from string conversion
Emmanuele Bassi [Mon, 20 Jul 2009 19:59:18 +0000 (20:59 +0100)]
[docs] Improve the Units to and from string conversion

Make sure to document the conversion to and from strings for ClutterUnits,
with negative examples and with the behaviour for fractionary bits.

15 years ago[doc] Miscellaneous documentation fixes
Emmanuele Bassi [Mon, 20 Jul 2009 11:49:35 +0000 (12:49 +0100)]
[doc] Miscellaneous documentation fixes

Remove private symbols, and add missing public ones.

15 years ago[cogl] Make the blend string error domain public
Emmanuele Bassi [Mon, 20 Jul 2009 11:47:53 +0000 (12:47 +0100)]
[cogl] Make the blend string error domain public

The error domain and codes must present in a publicly installed header
otherwise they won't be usable to match a GError.

15 years ago[gitignore] Add test-materials
Emmanuele Bassi [Mon, 20 Jul 2009 10:45:47 +0000 (11:45 +0100)]
[gitignore] Add test-materials

15 years agoAllow disabling motion event throttling
Emmanuele Bassi [Tue, 14 Jul 2009 12:47:35 +0000 (13:47 +0100)]
Allow disabling motion event throttling

It might be desirable for some applications and/or platforms to get
every motion event that was delivered to Clutter from the windowing
backend. By adding a per-stage flag we can bypass the throttling
done when processing the events.

  http://bugzilla.openedhand.com/show_bug.cgi?id=1665

15 years ago[docs] Move the releasing process to a separate file
Emmanuele Bassi [Sat, 18 Jul 2009 18:40:29 +0000 (19:40 +0100)]
[docs] Move the releasing process to a separate file

The documentation on how to release Clutter should be in a separate
file from the documentation on how to hack on Clutter.

15 years ago[doc] Remove references to cogl_vertex_buffer_delete_indices
Robert Bragg [Sun, 19 Jul 2009 09:08:32 +0000 (10:08 +0100)]
[doc] Remove references to cogl_vertex_buffer_delete_indices

These referencese were left over from before indices got CoglHandles to
uniquely identify them.  cogl_handle_unref can be used to delete indices
now.

15 years ago[cogl/gles] Fix missing symbols in CoglContext
Emmanuele Bassi [Sat, 18 Jul 2009 15:59:54 +0000 (16:59 +0100)]
[cogl/gles] Fix missing symbols in CoglContext

Keep the CoglContext in sync between GL and GLES backends. We ought
to find a way to have a generic context, though, and have backend
specific sections.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1698

15 years agoFix parallel build of introspection
Owen W. Taylor [Fri, 17 Jul 2009 19:15:03 +0000 (15:15 -0400)]
Fix parallel build of introspection

We need to explicitly force order so that ClutterJson.gir and Cogl.gir
are present in the parent directory before we try to build Clutter.typelib.

http://bugzilla.openedhand.com/show_bug.cgi?id=1700

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years agoFix building introspection when dolt is not in use
Owen W. Taylor [Fri, 17 Jul 2009 19:10:06 +0000 (15:10 -0400)]
Fix building introspection when dolt is not in use

On some platforms (anything but Linux, and on obscure Linux
architectures) dolt isn't used, so $(top_builddir)/doltlibtool
won't exist. $(top_builddir)/libtool will always be generated
even if dolt is used, so just use that unconditionally. We don't
need the extra speed when linking the single program for
introspection.

http://bugzilla.openedhand.com/show_bug.cgi?id=1699

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years agoPost-release bump to 0.9.9
Emmanuele Bassi [Fri, 17 Jul 2009 16:51:26 +0000 (17:51 +0100)]
Post-release bump to 0.9.9

15 years ago[release] 0.9.8
Emmanuele Bassi [Fri, 17 Jul 2009 16:32:45 +0000 (17:32 +0100)]
[release] 0.9.8

15 years agoUpdate NEWS file
Emmanuele Bassi [Fri, 17 Jul 2009 16:32:20 +0000 (17:32 +0100)]
Update NEWS file

15 years agoFix comments inside configure.ac
Emmanuele Bassi [Mon, 13 Jul 2009 16:27:01 +0000 (17:27 +0100)]
Fix comments inside configure.ac

15 years ago[stage] Force an allocation before showing the stage
Neil Roberts [Fri, 17 Jul 2009 11:43:52 +0000 (12:43 +0100)]
[stage] Force an allocation before showing the stage

A lot of applications change the size of the stage from the default
before the stage is initially shown. The size change won't take affect
until the first allocation run. However we want the window to be at
the correct size when we first map it so we should force an allocation
run before showing the stage.

There was an explicit call to XResizeWindow in
clutter_stage_x11_show. This is not needed anymore because
XResizeWindow will already have been called by the allocate method.

15 years ago[win32] Compilation fixes
Marcos [Mon, 13 Jul 2009 16:04:05 +0000 (17:04 +0100)]
[win32] Compilation fixes

Remove the usage of the old CLUTTER_UNITS_* macros and put back a
missing ';'.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
15 years ago[osx] Enable motion event dispatch
Emmanuele Bassi [Mon, 13 Jul 2009 15:56:47 +0000 (16:56 +0100)]
[osx] Enable motion event dispatch

By default NSWindow does not listen to mousemoved events and hence the
default behaviour for Actors using the "motion-event" signal  differs
from backend to backend.

Using setAcceptsMouseMovedEvents seems to fix it; unfortunately, I
cannot verify it, but since nobody is currently working on the Quartz
backend I guess it cannot get more broken than how currently is.

Thanks to: Michael <michael@f3k.org>

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1687

15 years ago[osx] Remove old units macros
Emmanuele Bassi [Mon, 13 Jul 2009 15:53:06 +0000 (16:53 +0100)]
[osx] Remove old units macros

Remove the usage of CLUTTER_UNITS_* macros and at least get the
chance to make the OSX backend compile.

Hopefully, since I can't currently test it.