profile/ivi/clutter.git
15 years ago * clutter/clutter-actor.c (clutter_actor_get_reactive)
Neil Roberts [Thu, 13 Nov 2008 10:33:56 +0000 (10:33 +0000)]
* clutter/clutter-actor.c (clutter_actor_get_reactive)
(clutter_actor_get_paint_visibility): Be sure to return exactly
TRUE or FALSE instead of zero or some non-zero value in these
functions that return a gboolean. Thanks to Kai Wei for spotting.

15 years ago2008-11-12 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Wed, 12 Nov 2008 14:41:01 +0000 (14:41 +0000)]
2008-11-12  Emmanuele Bassi  <ebassi@linux.intel.com>

* tests/conform/Makefile.am:
* tests/conform/test-conform-main.c:
* tests/conform/test-paint-opacity.c: Add test unit for label,
rectangle and paint opacity.

15 years ago2008-11-12 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Wed, 12 Nov 2008 14:16:35 +0000 (14:16 +0000)]
2008-11-12  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-sections.txt: Add new symbols.

15 years ago2008-11-12 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Wed, 12 Nov 2008 13:57:58 +0000 (13:57 +0000)]
2008-11-12  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/cogl/cogl-color.h:
* clutter/cogl/cogl-path.h:
* clutter/cogl/cogl-types.h:
* clutter/cogl/common/cogl-color.c: Deprecated cogl_color()
in favour of cogl_set_source_color() and friends; store the
CoglColor components as unsigned bytes instead of fixed point
normalized values; add functions for allocating, copying and
freeing CoglColor, for use of language bindings.

* clutter/cogl/cogl.h.in:
* clutter/cogl/cogl-deprecated.h: Added cogl-deprecated.h,
an header file containing the deprecation symbols similar
to clutter-deprecated.h.

* clutter/cogl/gl/Makefile.am:
* clutter/cogl/gl/cogl-texture.c:
* clutter/cogl/gl/cogl.c:
* clutter/cogl/gles/Makefile.am:
* clutter/cogl/gles/cogl-texture.c:
* clutter/cogl/gles/cogl.c: Update the GL and GLES implementations
of COGL after the CoglColor changes.

* clutter/clutter-actor.c:
* clutter/clutter-clone-texture.c:
* clutter/clutter-entry.c:
* clutter/clutter-label.c:
* clutter/clutter-rectangle.c:
* clutter/clutter-texture.c: Do not use CoglColor whenever it
is possible, and use cogl_set_source_color4ub() instead.

* clutter/pango/cogl-pango-render.c: Ditto as above.

* doc/reference/clutter/subclassing-ClutterActor.xml:
* doc/reference/cogl/cogl-sections.txt: Update the documentation.

* tests/interactive/test-cogl-offscreen.c:
* tests/interactive/test-cogl-primitives.c:
* tests/interactive/test-cogl-tex-convert.c:
* tests/interactive/test-cogl-tex-foreign.c:
* tests/interactive/test-cogl-tex-getset.c:
* tests/interactive/test-cogl-tex-polygon.c:
* tests/interactive/test-cogl-tex-tile.c:
* tests/interactive/test-paint-wrapper.c: Drop the usage of
CoglColor whenever it is possible.

15 years ago Bug 1057 - cogl_texture_rectangle doesn't support backward
Neil Roberts [Wed, 12 Nov 2008 13:03:09 +0000 (13:03 +0000)]
Bug 1057 - cogl_texture_rectangle doesn't support backward
coordinates

* clutter/cogl/gl/cogl-texture.c: Instead of sorting the vertex
and texture coordinates passed to cogl_texture_rectangle, just
swap both sets whenever the texture coordinates are backward.

15 years ago * clutter/clutter-rectangle.c (clutter_rectangle_paint): Fixed so
Neil Roberts [Wed, 12 Nov 2008 12:39:55 +0000 (12:39 +0000)]
* clutter/clutter-rectangle.c (clutter_rectangle_paint): Fixed so
that it doesn't use the alpha value from the border colour to draw
the rectangle

15 years ago * clutter/cogl/gles/Makefile.am (libclutterinclude_HEADERS):
Neil Roberts [Wed, 12 Nov 2008 12:08:44 +0000 (12:08 +0000)]
* clutter/cogl/gles/Makefile.am (libclutterinclude_HEADERS):
* clutter/cogl/gl/Makefile.am (libclutterinclude_HEADERS):
* clutter/cogl/common/Makefile.am
(libclutter_cogl_common_la_SOURCES): Move cogl-mesh.h into the
headers for libclutter so that it will get installed.

15 years ago Fix warnings in mesh tests
Neil Roberts [Wed, 12 Nov 2008 10:55:06 +0000 (10:55 +0000)]
Fix warnings in mesh tests

* tests/conform/test-mesh-mutability.c (on_paint):
* tests/conform/test-mesh-interleved.c (on_paint):
* tests/conform/test-mesh-contiguous.c (on_paint): Use g_usleep
instead of sleep

* tests/conform/test-mesh-mutability.c (queue_redraw):
* tests/conform/test-mesh-interleved.c (queue_redraw):
* tests/conform/test-mesh-contiguous.c (queue_redraw): Added
missing return statement

* clutter/cogl/cogl-mesh.h: Add a declaration for
cogl_mesh_submit

* clutter/cogl/common/cogl-mesh.c (cogl_mesh_submit): Move the
documentation to cogl-mesh.h to match the rest of the functions

15 years ago Bug 1164 - Implements the proposed Mesh API
Robert Bragg [Mon, 10 Nov 2008 18:53:14 +0000 (18:53 +0000)]
Bug 1164 - Implements the proposed Mesh API

* clutter/cogl/cogl-mesh.h
* clutter/cogl/cogl-types.h
* clutter/cogl/cogl.h.in
* clutter/cogl/common/Makefile.am
* clutter/cogl/common/cogl-mesh-private.h
* clutter/cogl/common/cogl-mesh.c
* clutter/cogl/gl/cogl-context.c
* clutter/cogl/gl/cogl-context.h
* clutter/cogl/gl/cogl-defines.h.in
* clutter/cogl/gl/cogl.c
* clutter/cogl/gles/cogl-context.c
* clutter/cogl/gles/cogl-context.h
* doc/reference/cogl/cogl-docs.sgml
* doc/reference/cogl/cogl-sections.txt:
The Mesh API provides a means for submitting an extensible number of
per vertex attributes to OpenGL in a way that doesn't require format
conversions and so that the data can be mapped into the GPU (in vertex
buffer objects) for - hopefully - fast re-use.

There are a number of things we can potentially use this API for, but
right now this just provides a foundation to build on. Please read
the extensive list of TODO items in cogl-mesh.c for examples.

Please refer to the cogl-mesh section in the reference manual for
documentation of the API.

* tests/conform/Makefile.am
* tests/conform/test-conform-main.c
* tests/conform/test-mesh-contiguous.c
* tests/conform/test-mesh-interleved.c
* tests/conform/test-mesh-mutability.c:
Privides basic coverage testing for the mesh API.

15 years ago * tests/conform/ADDING_NEW_TESTS
Robert Bragg [Mon, 10 Nov 2008 18:52:50 +0000 (18:52 +0000)]
* tests/conform/ADDING_NEW_TESTS
* tests/conform/test-conform-common.c
* tests/conform/test-pick.c:
Instead of using clutter_stage_new /clutter_actor_destroy as a way to
avoid cascading side effects between unit tests, due to left over
actors, we now destroy all children of the default stage between
tests instead.

* tests/conform/wrapper.sh:
Adds a convenience note about how to run valgrind for an individual
unit test

15 years ago * tests/interactive/test-main.c (main): Allow more than two
Neil Roberts [Mon, 10 Nov 2008 16:30:42 +0000 (16:30 +0000)]
* tests/interactive/test-main.c (main): Allow more than two
arguments so that the remaining arguments can be passed to the
test. This is needed for test-behave for example which can take a
--path argument.

15 years ago2008-11-10 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Mon, 10 Nov 2008 12:29:10 +0000 (12:29 +0000)]
2008-11-10  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-texture.c: Remove an unused function.

15 years ago2008-11-10 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Mon, 10 Nov 2008 12:28:42 +0000 (12:28 +0000)]
2008-11-10  Emmanuele Bassi  <ebassi@linux.intel.com>

* tests/conform/test-label-cache.c:
* tests/conform/test-pick.c:
* tests/conform/test-timeline.c: Show all the output messages only
if the test was done with the verbose flag turned on.

* tests/interactive/test-main.c: Do not use the (gpointer*) cast,
but use a temporary gpointer instead.

15 years ago * tests/conform/Makefile.am:
Robert Bragg [Mon, 10 Nov 2008 11:48:00 +0000 (11:48 +0000)]
* tests/conform/Makefile.am:
* tests/conform/wrapper.sh:
* tests/conform/test-conform-main.c:
* tests/conform/test-timeline.c:
Adds Neil's updates to test-timeline.c so it now works with the new unit
testing infrastructure.

Also some fixes to ensure wrappers get setup correctly for the timeline
tests.

* tests/interactive/test-main.c:
cast the symbol return pointer as (gpointer *) to avoid warning

* tests/conform/test-pick.c:
g_assert that the test passes, instead of using exit()

* test/conform/ADDING_NEW_TESTS:
Fixes a silly typo

15 years ago2008-11-08 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Sat, 8 Nov 2008 15:56:22 +0000 (15:56 +0000)]
2008-11-08  Emmanuele Bassi  <ebassi@linux.intel.com>

* tests/conform/Makefile.am:
* tests/conform/test-actor-invariants.c:
* tests/conform/test-conform-main.c: Move the actor invariants
unit to the conform section of the test suite.

* tests/interactive/Makefile.am:
* tests/interactive/test-entry-auto.c:
* tests/interactive/test-invariants.c: Remove the entry-auto
and invariants test, since those two belong to the conform
section.

15 years ago Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing
Robert Bragg [Fri, 7 Nov 2008 19:32:28 +0000 (19:32 +0000)]
Bug 1162 - Re-works the tests/ to use the glib-2.16 unit testing
framework

* configure.ac:
* tests/*:
The tests have been reorganised into different categories: conformance,
interactive and micro benchmarks.
- conformance tests can be run as part of automated tests
- interactive tests are basically all the existing tests
- micro benchmarks focus on a single performance metric

I converted the timeline tests to conformance tests and also added some
tests from Neil Roberts and Ebassi.

Note: currently only the conformance tests use the glib test APIs,
though the micro benchmarks should too.

The other change is to make the unit tests link into monolithic binaries
which makes the build time for unit tests considerably faster. To deal
with the extra complexity this adds to debugging individual tests I
have added some sugar to the makefiles so all the tests can be run
directly via a symlink and when an individual test is run this way,
then a note is printed to the terminal explaining exactly how that test
may be debugged using GDB.

There is a convenience make rule: 'make test-report', that will run all
the conformance tests and hopefully even open the results in your web
browser. It skips some of the slower timeline tests, but you can run
those using 'make full-report'

15 years ago2008-11-07 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 7 Nov 2008 18:00:59 +0000 (18:00 +0000)]
2008-11-07  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-media.c: Improve documentation of the
ClutterMedia interface.

15 years ago2008-11-07 Matthew Allum <mallum@linux.intel.com>
Matthew Allum [Fri, 7 Nov 2008 17:00:54 +0000 (17:00 +0000)]
2008-11-07  Matthew Allum  <mallum@linux.intel.com>

        Bug 1238 - [PATCH] Pack bitfields in ClutterTexturePrivate

* clutter/clutter-texture.c:

        Using 'guint my_field : 1' for booleans to save space only
        makes sense if you group all such fields together. Fix
        grouping for ClutterTexturePrivate. Thanks to Owen Taylor for
patch.

15 years ago2008-11-07 Matthew Allum <mallum@linux.intel.com>
Matthew Allum [Fri, 7 Nov 2008 16:50:23 +0000 (16:50 +0000)]
2008-11-07  Matthew Allum  <mallum@linux.intel.com>

Bug 1237 - clutter_texture_set_filter_quality calls
                  clutter_texture_[un]realize

* clutter/clutter-texture.c: (clutter_texture_set_filter_quality):
        Call clutter_actor_[un]realize and keep visibility state

15 years ago2008-11-07 Matthew Allum <mallum@linux.intel.com>
Matthew Allum [Fri, 7 Nov 2008 16:31:56 +0000 (16:31 +0000)]
2008-11-07  Matthew Allum  <mallum@linux.intel.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        * clutter/clutter-clone-texture.c:
        * clutter/clutter-private.h:
        * clutter/clutter-texture.c:
        * clutter/x11/clutter-x11-texture-pixmap.c:

        Attempt to lower overhead of updating TFP's (particularly mipmaped).
        Compresses mipmap updates only for visible TFPs.
        Avoiding updates for non visible TFP's whilst keeping visible
        clones working ok.

15 years ago Bug 1230 - Pick fails on low precision color buffers
Neil Roberts [Thu, 6 Nov 2008 12:03:05 +0000 (12:03 +0000)]
Bug 1230 - Pick fails on low precision color buffers

* clutter/clutter-main.c (_clutter_id_to_color): When using fuzzy
picking to pick a color for an actor, it would previously set the
fuzzy bit and then all but the most significant of the remaining
unused bits. This meant that for 16-bit displays it would end up
with a strange pattern for the unused bits like 1011 which could
cause it to round up. Now it just sets all but the most
significant of all of the unused bits giving a pattern like
0111. Thanks to Guy Zadickario for the patch.

15 years ago * clutter/cogl/gles/cogl.c (cogl_perspective):
Neil Roberts [Thu, 6 Nov 2008 11:42:11 +0000 (11:42 +0000)]
* clutter/cogl/gles/cogl.c (cogl_perspective):
* clutter/cogl/common/cogl-fixed.c (cogl_fixed_sin)
(cogl_angle_sin, cogl_angle_tan, cogl_fixed_sqrt): Replaced uses
of 1 + ~x with just -x which is equivalent and easier to
understand.

15 years ago2008-11-06 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 6 Nov 2008 10:54:31 +0000 (10:54 +0000)]
2008-11-06  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1233 - CLUTTER_ALPHA_SINE_INC is broken in trunk

* clutter/clutter-alpha.c: Fix a rollover in the sine functions.

15 years ago * clutter/clutter-color.c (clutter_color_new): Remove CLAMP macros
Neil Roberts [Wed, 5 Nov 2008 12:16:15 +0000 (12:16 +0000)]
* clutter/clutter-color.c (clutter_color_new): Remove CLAMP macros
around the component parameters because they are guint8 anyway so
the CLAMP is redundant and it causes a warning.

15 years ago2008-11-04 Thomas Wood <thomas@linux.intel.com>
Thomas Wood [Tue, 4 Nov 2008 17:52:29 +0000 (17:52 +0000)]
2008-11-04  Thomas Wood  <thomas@linux.intel.com>

* clutter/clutter-color.c: Update ClutterColor documentation as
changes have been backported to 0.8.4.

15 years ago2008-11-04 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 4 Nov 2008 16:37:04 +0000 (16:37 +0000)]
2008-11-04  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-script.c: Document the "is-default" member of
a ClutterStage definition.

15 years ago * clutter/cogl/gl/cogl.c (cogl_perspective): Use the accurate
Neil Roberts [Tue, 4 Nov 2008 12:43:06 +0000 (12:43 +0000)]
* clutter/cogl/gl/cogl.c (cogl_perspective): Use the accurate
64-bit multiplication macro instead of COGL_FIXED_FAST_DIV for
calculating xmax as was done previously. This fixes
test-perspective and other tests that had a gone a bit skewiff.

15 years ago Bug 1181 - In Score, timelines, appended at markers, are also
Neil Roberts [Tue, 4 Nov 2008 10:40:53 +0000 (10:40 +0000)]
Bug 1181 - In Score, timelines, appended at markers, are also
called on complete

* clutter/clutter-score.c (start_children_entries): Use the name
of the marker to start as the data parameter and only start child
timelines that have the same marker name. Previously the
ClutterScore would just start all child entries when a marker was
reached or the timeline completed regardless of whether they were
added with a marker or not. Thanks to Mihail Naydenov for
reporting the bug.

15 years ago2008-11-03 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Mon, 3 Nov 2008 23:58:13 +0000 (23:58 +0000)]
2008-11-03  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/cogl/gl/Makefile.am: Whitespace fixes.

* clutter/cogl/gles/Makefile.am: Put back a missing backslash
that broke the GLES build.

15 years ago2008-11-03 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Mon, 3 Nov 2008 23:54:38 +0000 (23:54 +0000)]
2008-11-03  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1231 - Build fails in gles flavour in revision 3442

* clutter/cogl/gles/cogl-context.h: Fix remaining use of
ClutterFixed over CoglFixed. (Michael Boccara)

15 years ago Bug 1207 - Timelines sometime miss markers
Neil Roberts [Mon, 3 Nov 2008 12:42:17 +0000 (12:42 +0000)]
Bug 1207 - Timelines sometime miss markers

* clutter/clutter-timeline.c (timeline_timeout_func): Move the
code for firing the new-frame and marker-reached signals into a
separate static function so that it can also be called when the
last frame is reached. Also fix an issue where the frame numbers
were changed in the wrong direction when detecting missed markers
in a reversed timeline. Based on a patch by Michael Boccara.

* tests/test-timeline.c: Now tries to automatically verify whether
the test worked by keeping track of all the signal emissions. The
timelines are run a second time with an extra timeout that causes
delays to simulate skipped frames.

15 years agoUpdate TODO
Emmanuele Bassi [Sat, 1 Nov 2008 14:45:39 +0000 (14:45 +0000)]
Update TODO

15 years agoFix typo
Emmanuele Bassi [Sat, 1 Nov 2008 14:40:43 +0000 (14:40 +0000)]
Fix typo

15 years ago2008-10-31 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 31 Oct 2008 17:48:24 +0000 (17:48 +0000)]
2008-10-31  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/pango/cogl-pango-fontmap.c:
* clutter/pango/cogl-pango-render.c: Whitespace fixes and code
duplication removal. Plus, start documenting the CoglPango API.

15 years ago2008-10-31 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Fri, 31 Oct 2008 16:59:51 +0000 (16:59 +0000)]
2008-10-31  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-texture.c: (clutter_texture_set_filter_quality),
        (clutter_texture_get_filter_quality):
        Fix up some logic, typos.

        * clutter/glx/clutter-glx-texture-pixmap.c:
        Improve support for mipmaped TFP textures.

15 years ago2008-10-31 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 31 Oct 2008 12:48:26 +0000 (12:48 +0000)]
2008-10-31  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1200 - Crash with invalid DISPLAY

* clutter/clutter-main.c: Use the ClutterBackend wrapper API
instead of directly checking the class structure.

* clutter/glx/clutter-backend-glx.c: Return the correct value
in case of failure.

* clutter/x11/clutter-backend-x11.c: Bail out if XOpenDisplay()
failed.

15 years agoFix a typo
Emmanuele Bassi [Fri, 31 Oct 2008 12:07:01 +0000 (12:07 +0000)]
Fix a typo

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 17:57:41 +0000 (17:57 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/cogl/cogl-color.h:
* clutter/cogl/cogl-fixed.h:
* clutter/cogl/cogl-offscreen.h:
* clutter/cogl/cogl-path.h:
* clutter/cogl/cogl-shader.h:
* clutter/cogl/cogl-texture.h:
* clutter/cogl/cogl-types.h: Add copyright and licensing
notice to the newly added files.

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 17:25:00 +0000 (17:25 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1219 - Clean up cogl.h

* clutter/cogl/cogl.h.in:
* clutter/cogl/cogl-offscreen.h:
* clutter/cogl/cogl-path.h:
* clutter/cogl/cogl-shader.h:
* clutter/cogl/cogl-texture.h:
* clutter/cogl/cogl-types.h: Split up the massive cogl.h file
into sub-header for each section of the API.

* clutter/cogl/gl/*:
* clutter/cogl/gles/*: Update the GL and GLES implementations
of COGL to cope with the new header structure.

* doc/reference/cogl/Makefile.am: Fix symbol retrieval.

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 17:11:29 +0000 (17:11 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1215 - Move the Pango renderer to the public API

* clutter/pango/*: Rename PangoClutter -> CoglPango.

* clutter/Makefile.am:
* clutter/clutter-backend.c:
* clutter/clutter-entry.c:
* clutter/clutter-label.c:
* clutter/clutter-main.[ch]:
* clutter/clutter-private.h: Update the users of the Pango
renderer API.

* README: Update release notes.

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 17:04:34 +0000 (17:04 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1212 - Allow only a single include file for Clutter

* clutter/*.h: Only allow including clutter.h in third
party code.

* clutter/cogl/cogl-color.h:
* clutter/cogl/cogl-fixed.h:
* clutter/cogl/cogl.h.in: Only allow including cogl.h in
third party code.

* clutter/cogl/common/Makefile.am:
* clutter/cogl/gl/Makefile.am:
* clutter/cogl/gles/Makefile.am:
* clutter/eglnative/Makefile.am:
* clutter/eglx/Makefile.am:
* clutter/fruity/Makefile.am:
* clutter/glx/Makefile.am:
* clutter/glx/clutter-glx.h:
* clutter/osx/Makefile.am:
* clutter/pango/Makefile.am:
* clutter/sdl/Makefile.am:
* clutter/win32/Makefile.am:
* clutter/x11/Makefile.am: Fix build environment.

* clutter/x11/clutter-x11-texture-pixmap.h:
* clutter/x11/clutter-x11.h: Fix inclusion rules.

* tests/test-pixmap.c: Fix inclusion of GdkPixbuf header.

* README: Update release notes.

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 16:52:56 +0000 (16:52 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1211 - Drop ClutterFeatureFlags usage from COGL

* clutter/cogl/cogl.h.in:
* clutter/cogl/gl/cogl.c:
* clutter/cogl/gles/cogl.c: Do not use ClutterFeatureFlags
when CoglFeatureFlags will do. This removes the last usage
of Clutter API inside COGL.

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 16:50:07 +0000 (16:50 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1210 - Add CoglColor API

* clutter/cogl/cogl-color.h:
* clutter/cogl/cogl.h.in:
* clutter/cogl/common/Makefile.am:
* clutter/cogl/common/cogl-color.c:
* clutter/cogl/gl/Makefile.am:
* clutter/cogl/gl/cogl.c:
* clutter/cogl/gles/Makefile.am:
* clutter/cogl/gles/cogl-texture.c:
* clutter/cogl/gles/cogl.c: Add a new color-type, to be used by
COGL. CoglColor is optimized to allow the minimum amount of
conversions possible for both GL and GLES implementations.

* clutter/clutter-actor.c:
* clutter/clutter-clone-texture.c:
* clutter/clutter-entry.c:
* clutter/clutter-main.c:
* clutter/clutter-rectangle.c:
* clutter/clutter-stage.c:
* clutter/clutter-texture.c: Use CoglColor when needed.

* clutter/pango/pangoclutter-render.c: Use CoglColor when needed.

* doc/reference/cogl/cogl-docs.sgml:
* doc/reference/cogl/cogl-sections.txt: Update the documentation.

* tests/test-cogl-offscreen.c:
* tests/test-cogl-primitives.c:
* tests/test-cogl-tex-convert.c:
* tests/test-cogl-tex-foreign.c:
* tests/test-cogl-tex-getset.c:
* tests/test-cogl-tex-polygon.c:
* tests/test-cogl-tex-tile.c:
* tests/test-paint-wrapper.c: Update the tests.

* README: Update release notes.

15 years ago2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 30 Oct 2008 16:37:55 +0000 (16:37 +0000)]
2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1209 - Move fixed point API in COGL

* clutter/cogl/cogl-fixed.h:
* clutter/cogl/cogl.h.in:
* clutter/cogl/common/Makefile.am:
* clutter/cogl/common/cogl-fixed.c: Add fixed point API, modelled
after the ClutterFixed. The CoglFixed API supercedes the ClutterFixed
one and avoids the dependency of COGL on Clutter's own API.

* clutter/cogl/common/cogl-clip-stack.c:
* clutter/cogl/common/cogl-primitives.c:
* clutter/cogl/common/cogl-primitives.h: Update internal usage of
ClutterFixed to CoglFixed.

* clutter/cogl/gl/Makefile.am:
* clutter/cogl/gl/cogl-primitives.c:
* clutter/cogl/gl/cogl-texture.c:
* clutter/cogl/gl/cogl.c: Ditto, in the GL implementation of the
COGL API.

* clutter/cogl/gles/Makefile.am:
* clutter/cogl/gles/cogl-fbo.c:
* clutter/cogl/gles/cogl-gles2-wrapper.c:
* clutter/cogl/gles/cogl-primitives.c:
* clutter/cogl/gles/cogl-texture.c:
* clutter/cogl/gles/cogl.c: Ditto, in the GLES implementation of
the COGL API.

* clutter/pango/pangoclutter-glyph-cache.c:
* clutter/pango/pangoclutter-glyph-cache.h: Ditto, in the Pango
renderer glyphs cache.

* clutter/clutter-fixed.c:
* clutter/clutter-fixed.h: ClutterFixed and related API becomes
a simple transition API for bindings and public Clutter API.

* clutter/clutter-actor.c:
* clutter/clutter-alpha.c:
* clutter/clutter-backend.c:
* clutter/clutter-behaviour-depth.c:
* clutter/clutter-behaviour-ellipse.c:
* clutter/clutter-behaviour-path.c:
* clutter/clutter-behaviour-rotate.c:
* clutter/clutter-behaviour-scale.c:
* clutter/clutter-clone-texture.c:
* clutter/clutter-color.c:
* clutter/clutter-entry.c:
* clutter/clutter-stage.c:
* clutter/clutter-texture.c:
* clutter/clutter-timeline.c:
* clutter/clutter-units.h: Move from the internal usage of
ClutterFixed to CoglFixed.

* doc/reference/clutter/clutter-sections.txt:
* doc/reference/cogl/cogl-docs.sgml:
* doc/reference/cogl/cogl-sections.txt: Update the documentation.

* tests/test-cogl-tex-tile.c:
* tests/test-project.c: Fix tests after the API change

* README: Add release notes.

15 years ago Bug 1074 - FBOs on GLES
Neil Roberts [Wed, 29 Oct 2008 14:52:48 +0000 (14:52 +0000)]
Bug 1074 - FBOs on GLES

* clutter/cogl/gles/cogl-fbo.c: Copy the code from gl/cogl-fbo but
use the API calls directly instead of loading an extension because
it is part of the core in GLES 2.

* clutter/cogl/gles/cogl.c (_cogl_features_init): Report
COGL_FEATURE_OFFSCREEN.

* clutter/cogl/gles/cogl-fbo.h (CoglFbo): Add gl_stencil_handle.

* clutter/cogl/gles/cogl-context.h (CoglContext): Add
viewport_store

* tests/test-fbo.c (make_shader): Conditionally use the GLES 2
names of the shader variables

15 years ago Bug 1206 - Picking disabled dithering
Neil Roberts [Wed, 29 Oct 2008 12:19:27 +0000 (12:19 +0000)]
Bug 1206 - Picking disabled dithering

* clutter/clutter-main.c (_clutter_do_pick): After picking is
finished, restore the state of glEnable (GL_DITHER). Otherwise it
will cause the scene to look different after the first pick on low
depth displays. (Thanks to Michael Boccara for the patch)

15 years ago2008-10-28 Robert Bragg <robert@linux.intel.com>
Robert Bragg [Tue, 28 Oct 2008 22:56:02 +0000 (22:56 +0000)]
2008-10-28  Robert Bragg  <robert@linux.intel.com>

* pangoclutter-render.c: Replace #include <cairo/cairo.h> with
#include <cairo.h> (Thanks to Carl Worth for spotting that)

15 years agoUpdate git ignore file
Emmanuele Bassi [Tue, 28 Oct 2008 15:52:06 +0000 (15:52 +0000)]
Update git ignore file

15 years ago * clutter/clutter-color.c (param_color_set_default): Set the no copy
Thomas Wood [Tue, 28 Oct 2008 11:45:04 +0000 (11:45 +0000)]
* clutter/clutter-color.c (param_color_set_default): Set the no copy
flag when setting the default param spec value to prevent invalid
frees.

15 years ago Bug 1189 - Backface culling
Neil Roberts [Mon, 27 Oct 2008 14:36:52 +0000 (14:36 +0000)]
Bug 1189 - Backface culling

* clutter/cogl/gl/cogl-texture.c (cogl_texture_polygon)
(_cogl_texture_quad_sw, _cogl_texture_quad_hw):
* clutter/cogl/gles/cogl-texture.c (cogl_texture_polygon)
(_cogl_texture_quad_sw, _cogl_texture_quad_hw): Enable backface
culling in GL if it is requested.

* clutter/cogl/gles/cogl-texture.c (_cogl_texture_quad_sw)
(_cogl_texture_quad_hw):
* clutter/cogl/gl/cogl-texture.c (_cogl_texture_quad_sw)
(_cogl_texture_quad_hw): Reorder the
vertices so that they are counter-clockwise.

* clutter/cogl/gles/cogl-context.h (CoglContext):
* clutter/cogl/gl/cogl-context.h (CoglContext): Added a flag to
store whether backface culling is currently enabled.

* clutter/cogl/gles/cogl.c (cogl_enable_backface_culling):
* clutter/cogl/gl/cogl.c (cogl_enable_backface_culling): New
function

* doc/reference/cogl/cogl-sections.txt: Add
cogl_enable_backface_culling

15 years ago Bug 1196 - Texture border drawing problems
Neil Roberts [Mon, 27 Oct 2008 12:39:22 +0000 (12:39 +0000)]
Bug 1196 - Texture border drawing problems

* clutter/cogl/gl/cogl-texture.c (_cogl_texture_upload_subregion_to_gl)
(_cogl_texture_upload_to_gl):

* clutter/cogl/gles/cogl-texture.c (_cogl_texture_upload_to_gl)
(_cogl_texture_upload_subregion_to_gl):

When uploading data to a sliced texture, fill the waste pixels
with copies of the edge of the real texture data. Otherwise the
value of the waste pixels are undefined so it will show artifacts
when the texture is scaled with GL_LINEAR and the pixels are
blended in.

15 years ago2008-10-22 Thomas Wood <thomas@linux.intel.com>
Thomas Wood [Wed, 22 Oct 2008 14:23:02 +0000 (14:23 +0000)]
2008-10-22  Thomas Wood  <thomas@linux.intel.com>

* tests/test-actors.c: Don't adjust the radius based on the number of
actors

15 years ago2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 21 Oct 2008 18:50:44 +0000 (18:50 +0000)]
2008-10-21  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-color.[ch] (clutter_value_set_color): Constify
colors and values where needed.

15 years ago2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 21 Oct 2008 18:48:13 +0000 (18:48 +0000)]
2008-10-21  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1197 - Missing const for clutter_init_with_args *

* clutter/clutter-main.[ch] (clutter_init_with_args): Constify
the string parameters. (Owen Taylor)

15 years ago2008-10-20 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Mon, 20 Oct 2008 21:52:35 +0000 (21:52 +0000)]
2008-10-20  Emmanuele Bassi  <ebassi@linux.intel.com>

* configure.ac: Use gmodule-no-export-2.0, not gmodule-2.0,
to avoid breaking the symbol hiding. (thanks to Ross Burton
and Laurent Bigonville)

15 years ago Bug 1043 - COGL calls glTexSubImage2D() with out-of-bounds
Neil Roberts [Mon, 20 Oct 2008 15:54:17 +0000 (15:54 +0000)]
Bug 1043 - COGL calls glTexSubImage2D() with out-of-bounds
values (SIGSEGV)

* clutter/cogl/gl/cogl-texture.c
(_cogl_texture_upload_subregion_to_gl): When iterating over the
slices, discard ones that don't intersect immediatly otherwise it
will call glTexSubImage2D with a negative width/height and then
move the source position incorrectly. Thanks to Gwenole
Beauchesne.

15 years agoDeclare clutter_color_new()
Emmanuele Bassi [Mon, 20 Oct 2008 10:36:41 +0000 (10:36 +0000)]
Declare clutter_color_new()

15 years ago Bug 1195 - ClutterBehaviourBspline only works for very short paths
Neil Roberts [Mon, 20 Oct 2008 09:43:12 +0000 (09:43 +0000)]
Bug 1195 - ClutterBehaviourBspline only works for very short paths

        * clutter/clutter-behaviour-bspline.c: Changed the CBZ_T_POW3 and
        CBZ_T_MUL functions so that they preserve more of the least
        significant bits. This fixes some of the jaggy behaviour with
        longer paths.

15 years ago2008-10-17 Thomas Wood <thomas@linux.intel.com>
Emmanuele Bassi [Fri, 17 Oct 2008 16:23:46 +0000 (16:23 +0000)]
2008-10-17  Thomas Wood  <thomas@linux.intel.com>

reviewed by: Emmanuele Bassi <ebassi@linux.intel.com>

* clutter/clutter-color.[ch]: Add GParamSpec and GValue integration
for ClutterColor. With ClutterParamSpecColor it is possible to define
color properties; with the GValue integration it's possible to
automatically transform strings into colors and vice versa.

(clutter_color_free): Allow NULL parameter to match other boxed
types destructors.

(clutter_color_new): Add a constructor for the ClutterColor boxed
type, mostly for bindings.

15 years ago2008-10-17 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 17 Oct 2008 08:04:03 +0000 (08:04 +0000)]
2008-10-17  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-color.c (clutter_color_parse): Add checks
for the arguments, to avoid trying to parse NULL strings.

15 years ago2008-10-16 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 16 Oct 2008 10:28:17 +0000 (10:28 +0000)]
2008-10-16  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-container.[ch]: Add checks to the Container
interface invocation methods, to avoid crashing or corrupting
the stack when an actor does not implement every virtual
function of the Container interface vtable. GObject allows this
to happen so we must handle the case gracefully. This also means
that we can classify some virtual function as mandatory (as is
the case for ::add, ::remove and ::foreach) and some other
optional.

15 years ago2008-10-08 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Wed, 8 Oct 2008 19:50:22 +0000 (19:50 +0000)]
2008-10-08  Emmanuele Bassi  <ebassi@linux.intel.com>

* tests/test-depth.c (raise_top), (main): Fix a shadowing
with raise() from signal.h.

15 years agoBug 1108 - Enter/Leave events logics wrt. skipped motion events
Øyvind Kolås [Wed, 1 Oct 2008 13:46:33 +0000 (13:46 +0000)]
Bug 1108 - Enter/Leave events logics wrt. skipped motion events
Handle dropped motion events when computing crossing events,
based on a patch from Gwenole Beauchesne.
* clutter/clutter-main.c: (clutter_event_get_device): internal static
utility function.
(clutter_do_event): generate enter/leave events for all pointer
events.
(generate_enter_leave_events): modified enter/leave events generator
to work for all pointer event types. Enter/leave events are now
delivered before the motion/button event that caused the crossing to
happen.
* clutter/clutter-event.c: (clutter_event_copy), (clutter_event_free):
removed reference counting logic that is not needed when the crossing
events are directly delivered.

15 years ago2008-09-29 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Mon, 29 Sep 2008 10:41:48 +0000 (10:41 +0000)]
2008-09-29  Emmanuele Bassi  <ebassi@linux.intel.com>

* configure.ac: Post branch bump to 0.9.0

15 years agoRelease 0.8.2
Emmanuele Bassi [Thu, 25 Sep 2008 14:25:11 +0000 (14:25 +0000)]
Release 0.8.2

15 years ago2008-09-25 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 25 Sep 2008 11:09:22 +0000 (11:09 +0000)]
2008-09-25  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-sections.txt: Add
clutter_get_option_group_without_init()

15 years ago2008-09-25 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Thu, 25 Sep 2008 11:08:06 +0000 (11:08 +0000)]
2008-09-25  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-event.h: Fix missing documentation.

15 years ago2008-09-24 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Wed, 24 Sep 2008 10:12:23 +0000 (10:12 +0000)]
2008-09-24  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1130 - CLUTTER_MOTION is not emitted when time goes backwards.

* clutter/clutter-main.c (clutter_do_event): Check for time
rollbacks inside the motion event throttling. (Pierce Liu)

15 years ago2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 23 Sep 2008 13:25:31 +0000 (13:25 +0000)]
2008-09-23  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-timeout-pool.c: Reword previous commit.

15 years ago2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 23 Sep 2008 12:58:31 +0000 (12:58 +0000)]
2008-09-23  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-timeout-pool.c:
(clutter_timeout_pool_new): Fix previous commit: g_source_unref()
is not needed. (Thanks to Neil Roberts)

15 years ago2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 23 Sep 2008 12:23:05 +0000 (12:23 +0000)]
2008-09-23  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1154 - clutter_timeout_pool_new() documentation doesn't say
how to free

* clutter/clutter-timeout-pool.c: Update the documentation to
note that you must use g_source_unref() to free the timeout
pool. (Murray Cumming)

15 years ago2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 23 Sep 2008 11:15:38 +0000 (11:15 +0000)]
2008-09-23  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1124 - Clutter causes an additional size request in each
allocation

* clutter/clutter-actor.c:
(clutter_actor_store_old_geometry): Store the allocation instead
of causing a new size-request cycle. (Johan Bilien)

15 years ago2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 23 Sep 2008 11:11:14 +0000 (11:11 +0000)]
2008-09-23  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1125 - Save an extra pango_layout_get_size in many cases

* clutter/clutter-label.c:
(clutter_label_create_layout_no_cache): Add a simple check
before calling pango_layout_get_size(). (Johan Bilien)

15 years ago2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Tue, 23 Sep 2008 09:41:08 +0000 (09:41 +0000)]
2008-09-23  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-alpha.c:
(clutter_alpha_get_alpha): Do not return the cached value but
just compute the current alpha value. The use case is pretty
much straightforward: stop a timeline, advance it, and retrieve
the alpha value before starting the timeline to adjust an
animation dependent on the alpha. Caching the alpha value is
not needed because the behaviours will always pass the alpha
value inside the ::alpha-notify virtual function anyway, so
there is no need for them to call clutter_alpha_get_alpha().

This change makes it also possible to reliably unit-test
ClutterAlpha.

(timeline_new_frame_cb): Call clutter_alpha_get_alpha().

15 years ago2008-09-23 Tomas Frydrych <tf@linux.intel.com>
Tomas Frydrych [Tue, 23 Sep 2008 07:03:35 +0000 (07:03 +0000)]
2008-09-23  Tomas Frydrych  <tf@linux.intel.com>

    * clutter/clutter-main.c:
    * clutter/clutter-main.h:
    * clutter/clutter-private.h:
    * clutter/x11/clutter-backend-x11.c:
    (clutter_get_option_group_without_init):
    Function to obtain clutter option group without opening display
    (for use with foreign display and gtk_clutter_init). Bug 1033.

    Stripped trailing whitespace.

15 years ago Bug 856 - Teardown sequence is borked
Neil Roberts [Mon, 22 Sep 2008 16:36:27 +0000 (16:36 +0000)]
Bug 856 - Teardown sequence is borked

* clutter/clutter-main.c: Don't free the ClutterMainContext so
that the main loop can be restarted.

* clutter/eglx/clutter-backend-egl.c:
* clutter/eglnative/clutter-backend-egl.c: Register an atexit
handler which disposes the backend object so that we are still
guaranteed to call eglTerminate on GLES.

15 years ago * tests/test-unproject.c (on_event):
Neil Roberts [Mon, 22 Sep 2008 13:33:19 +0000 (13:33 +0000)]
* tests/test-unproject.c (on_event):
* tests/test-project.c (on_event): Use a return value for the
'event' signal handler, otherwise it might accidentally return
TRUE for unhandled events and you won't be able to close the
window.

15 years ago2008-09-19 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 19 Sep 2008 13:22:12 +0000 (13:22 +0000)]
2008-09-19  Emmanuele Bassi  <ebassi@linux.intel.com>

Bug 1033 - Manually parsing command line options prevents
initializing clutter

* clutter/clutter-main.c:
(post_parse_hook), (clutter_init_with_args),
(clutter_parse_args), (clutter_init): Move the initialization
of Clutter at the end of the post-parse hook of Clutter's
GOptionGroup. Clutter must be initialized at the end of the
argument parsing.

15 years ago2008-09-19 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 19 Sep 2008 11:38:48 +0000 (11:38 +0000)]
2008-09-19  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/clutter-main.c: Properly document the
clutter_get_option_group() function and the invariant that
after parsing Clutter's option group the library will be
initialized. (Thanks to Tomas Frydrych for pointing this
out)

15 years ago2008-09-19 Emmanuele Bassi <ebassi@linux.intel.com>
Emmanuele Bassi [Fri, 19 Sep 2008 10:28:51 +0000 (10:28 +0000)]
2008-09-19  Emmanuele Bassi  <ebassi@linux.intel.com>

* clutter/x11/clutter-backend-x11.c: Properly document the
usage of clutter_x11_set_display().

* clutter/x11/clutter-x11.h: clutter_x11_set_display() is
public API and should be declared in the header we install.

15 years ago Bug 1048 - SIGFPE in cogl_texture_set_region() with nvidia
Neil Roberts [Thu, 18 Sep 2008 13:16:15 +0000 (13:16 +0000)]
Bug 1048 - SIGFPE in cogl_texture_set_region() with nvidia

* clutter/cogl/gl/cogl-texture.c (cogl_texture_set_region):
* clutter/cogl/gles/cogl-texture.c (cogl_texture_set_region):
Don't attempt to upload any data if the width or height of the
subregion is zero. Thanks to Gwenole Beauchesne.

15 years ago Bug 1044 - cogl_get_viewport error
Neil Roberts [Thu, 18 Sep 2008 11:24:27 +0000 (11:24 +0000)]
Bug 1044 - cogl_get_viewport error

* clutter/cogl/gles/cogl.c (cogl_get_viewport): Use glGetIntegerv
instead of glGetFixedv to read the viewport because the latter
converts incorrectly on some hardware.

15 years agoForgot to add ChangeLog entry in the last commit.
Neil Roberts [Thu, 18 Sep 2008 10:25:56 +0000 (10:25 +0000)]
Forgot to add ChangeLog entry in the last commit.

15 years ago Bug 1080 - clutter_stage_read_pixels has upside-down y coordinate
Neil Roberts [Thu, 18 Sep 2008 10:24:37 +0000 (10:24 +0000)]
Bug 1080 - clutter_stage_read_pixels has upside-down y coordinate

* clutter/clutter-stage.c (clutter_stage_read_pixels): Use
OpenGL's coordinate system for the arguments to glReadPixels (so
that y zero is the bottom of the window). Use clutter_redraw
instead of clutter_stage_paint to ensure the right GL context is
selected. Set some of the glPixelStore parameters that might have
been changed by Cogl.

* tests/test-stage-read-pixels.c: Replace with a different test
that gets a sub-region of the stage around the cursor.

15 years ago Bug 1145 - Flicker on resize the window
Neil Roberts [Wed, 17 Sep 2008 13:25:50 +0000 (13:25 +0000)]
Bug 1145 - Flicker on resize the window

* clutter/glx/clutter-stage-glx.c (clutter_stage_glx_realize):
Don't set a backing pixel on the X window. Otherwise when the
window resizes it will flicker when X paints the background
immediatly before Clutter repaints the whole stage.

15 years ago * clutter/clutter-types.h: Swap left and right in the
Neil Roberts [Wed, 17 Sep 2008 10:40:40 +0000 (10:40 +0000)]
* clutter/clutter-types.h: Swap left and right in the
documentation for ClutterGravity.

15 years ago Bug 1121 - Setting anchor point doesn't work if set too early
Neil Roberts [Wed, 17 Sep 2008 10:40:32 +0000 (10:40 +0000)]
Bug 1121 - Setting anchor point doesn't work if set too early

* clutter/clutter-actor.c
(clutter_actor_set_anchor_point_from_gravity)
(clutter_actor_move_anchor_point_from_gravity): Add documentation
to make it clear that the anchor point won't move when the actor
is resized.

15 years ago Bug 1100 - WM_SIZE not handled correctly, user_resize and
Neil Roberts [Tue, 16 Sep 2008 16:00:31 +0000 (16:00 +0000)]
Bug 1100 - WM_SIZE not handled correctly, user_resize and
window_style correction.

* clutter/win32/clutter-stage-win32.c (get_window_style): Remove
the WS_MAXIMIZEBOX style if the stage isn't resizable.
(clutter_stage_win32_set_user_resize): Queue a redraw of the
window frame when the user_resize property is changed.

* clutter/win32/clutter-event-win32.c (message_translate): Don't
update the size of the stage when handling WM_SIZE messages that
result from the stage being minimized. Thanks to Roman Yazmin.

15 years ago2008-09-16 Tomas Frydrych <tf@linux.intel.com>
Tomas Frydrych [Tue, 16 Sep 2008 11:50:38 +0000 (11:50 +0000)]
2008-09-16  Tomas Frydrych  <tf@linux.intel.com>

    * clutter/glx/clutter-glx-texture-pixmap.c:
    * clutter/x11/clutter-x11-texture-pixmap.c:
    TFP resyncing on MapNotify/ConfigureNotify (bug  1020; patch by
    Andy Wingo <wingo@pobox.com>).

15 years ago* clutter/clutter-main.c: amended typo in gtk-doc.
Øyvind Kolås [Mon, 15 Sep 2008 14:47:25 +0000 (14:47 +0000)]
* clutter/clutter-main.c: amended typo in gtk-doc.

15 years ago Bug 1034 - Picking doesn't work on Eee PC
Neil Roberts [Fri, 12 Sep 2008 12:43:25 +0000 (12:43 +0000)]
Bug 1034 - Picking doesn't work on Eee PC

* clutter/clutter-main.c (_clutter_id_to_color): When choosing a
pick color, set all but the most significant of the unused
bits. This should make make it more likely that the GL
implementation will round down to the right value.

* tests/test-pick.c: Test case for picking. It creates 192 actors
at known positions and stores their gids. It then calls
clutter_stage_get_actor_at_pos with each position to check that
the right gid is returned.

* tests/Makefile.am (noinst_PROGRAMS): Add test-pick

15 years ago Bug 1010 - ClutterLabel does not update the layout (again)
Neil Roberts [Fri, 12 Sep 2008 10:31:44 +0000 (10:31 +0000)]
Bug 1010 - ClutterLabel does not update the layout (again)

* clutter/clutter-label.c: Bring back layout caching. This time it
will cache up to three different layouts. The width for which each
layout was generated is stored so that if the same width is
requested again it can use the cached version. If no cached
version is available it will try to replace the oldest
layout. 'Age' is determined by a counter which is incremented
every time a layout is created. The cache is cleared after any
property changes that might affect the layout.
(struct _ClutterLabelPrivate): Removed extents_width,
extents_height and context because they weren't used anywhere.

* tests/test-label-cache.c: Add a test which checks whether the
label is using a different layout when properties are
changed. Also compares the extents of the label's layout with an
independent layout and fails if they aren't the same.

* tests/Makefile.am (noinst_PROGRAMS): Add test-label-cache

15 years ago Bug 1137 - Setting the anchor point does not trigger a re-paint
Neil Roberts [Wed, 10 Sep 2008 11:20:22 +0000 (11:20 +0000)]
Bug 1137 - Setting the anchor point does not trigger a re-paint

* clutter/clutter-actor.c (clutter_actor_set_property): When
changing the anchor point properties, use set_anchor_pointu
instead of changing the value directly so that a redraw will be
queued.
(clutter_actor_set_anchor_pointu): Queue a redraw when the anchor
point is changed. Thanks to Johan Bilien.

15 years ago2008-08-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 27 Aug 2008 12:56:54 +0000 (12:56 +0000)]
2008-08-27  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 1082 - Texture bitmap is destroyed in wrong way

* clutter/cogl/common/cogl-bitmap-pixbuf.c:
(_cogl_bitmap_from_file): Make a copy of the pixbuf data in
the internal image loader so that we can keep working under
the assumption that we are using the GLib memory allocation
and deallocation functions.

15 years ago2008-08-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 27 Aug 2008 12:16:56 +0000 (12:16 +0000)]
2008-08-27  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 1099 - No ClutterScript API to get a list of IDs in a given file

* clutter/clutter-script.[ch]: Add clutter_script_list_objects(),
a function for retrieving all the objects built by a ClutterScript
instance. (Based on a patch by Noah Gibbs)

15 years ago2008-08-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 26 Aug 2008 12:57:04 +0000 (12:57 +0000)]
2008-08-26  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 1090 - Label somtimes returns natural_width < min_width

* clutter/clutter-label.c:
(clutter_label_get_preferred_width): Check that the width of the
layout is always greater than 0. (Johan Bilien)

15 years ago Bug 1103 - Two typos in clutter documentation
Neil Roberts [Tue, 19 Aug 2008 10:55:49 +0000 (10:55 +0000)]
Bug 1103 - Two typos in clutter documentation

* doc/reference/clutter/subclassing-ClutterActor.xml: Update the
custom actor example since the Cogl API was changed to namespace
all of the path related functions in cogl_path_*. Thanks to Nati
Berkover.

* clutter/clutter-score.c: Add missing parameter in example of
calling clutter_score_start().

15 years ago Bug 1085 - Cursor is in wrong position on ClutterEntry if set
Neil Roberts [Mon, 18 Aug 2008 15:33:38 +0000 (15:33 +0000)]
Bug 1085 - Cursor is in wrong position on ClutterEntry if set
x-align property

* clutter/clutter-entry.c (clutter_entry_paint): When calculating
the position to draw the cursor at, take into account the
alignment of the text. Queue a redraw when the x-align property is
changed.

15 years ago Bug 1091 - WM_MOUSEWHEEL (scroll-event) not handled correctlly
Neil Roberts [Thu, 7 Aug 2008 20:34:37 +0000 (20:34 +0000)]
Bug 1091 - WM_MOUSEWHEEL (scroll-event) not handled correctlly

* clutter/win32/clutter-event-win32.c (message_translate): The
coordinates in a WM_MOUSEWEEL message are given relative to the
screen so they need to be converted to client coordinates before
use. Thanks to Roman Yazmin.

15 years ago2008-08-06 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 6 Aug 2008 10:20:57 +0000 (10:20 +0000)]
2008-08-06  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-child-meta.c:
(clutter_child_meta_set_property),
(clutter_child_meta_class_init): Make the :container and
:actor properties of ChildMeta construct-only, to allow
bindings to actually use ChildMeta without abusing the API.

* clutter/clutter-container.c (create_child_meta): Instead of
setting the members of the ChildMeta structure, use the
constructor properties.