commit 0a008b98e7f72b9741ddbc3e2773153dafe302a1 Author: Emmanuele Bassi Date: Tue Jul 26 13:18:43 2011 +0100 Release Clutter 1.7.6 (snapshot) NEWS | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.in | 13 ++++++++++ configure.ac | 2 +- 3 files changed, 85 insertions(+), 1 deletions(-) commit 0f8e3ab4aa5980634d8c0b3c97830b31a3b34a67 Author: Emmanuele Bassi Date: Tue Jul 26 13:55:01 2011 +0100 bin-layout: Fix a leak https://bugzilla.gnome.org/show_bug.cgi?id=655342 clutter/clutter-bin-layout.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 78049c38bf1839b9982059540501a9e3ef5e0c81 Author: Emmanuele Bassi Date: Tue Jul 26 13:43:37 2011 +0100 docs: Fixes for building the API reference clutter/clutter-actor.c | 6 +++--- clutter/clutter-animation.c | 6 +++--- clutter/clutter-animator.c | 2 +- clutter/clutter-box.c | 8 ++++---- clutter/clutter-cairo-texture.c | 2 +- clutter/clutter-cairo-texture.h | 1 + clutter/clutter-container.c | 4 ++-- clutter/clutter-interval.c | 6 +++--- clutter/clutter-layout-manager.c | 4 ++-- clutter/clutter-list-model.c | 2 +- clutter/clutter-model.c | 10 +++++----- clutter/clutter-paint-volume.c | 27 ++++++++++++--------------- clutter/clutter-script.c | 2 +- clutter/clutter-shader-effect.c | 2 +- clutter/clutter-state.c | 2 +- 15 files changed, 41 insertions(+), 43 deletions(-) commit 278daca61cbeaffbf5515f7d105ff168b33a3be1 Author: Emmanuele Bassi Date: Tue Jul 26 12:53:22 2011 +0100 cairo-texture: Deprecate create()/create_region() The recommended way of drawing on a ClutterCairoTexture is the ::draw signal. clutter/clutter-cairo-texture.c | 8 ++++ clutter/clutter-cairo-texture.h | 2 + tests/conform/test-clutter-cairo-texture.c | 1 + tests/interactive/test-bin-layout.c | 21 +++++----- tests/interactive/test-cairo-flowers.c | 1 + tests/interactive/test-easing.c | 60 +++++++++++++++++----------- 6 files changed, 59 insertions(+), 34 deletions(-) commit 2f445682b1f0f717bc10447a937951798df15309 Author: Emmanuele Bassi Date: Tue Jul 26 12:40:52 2011 +0100 cairo-texture: Use signal-based drawing The current "create context/draw/destroy context" pattern presents various problems. The first issue is that it defers memory management to the caller of the create() or create_region() methods, which makes bookkeeping of the cairo_t* harder for language bindings and third party libraries. The second issue is that, while it's easier for draw-and-forget texturs, this API is needlessly complicated for contents that have to change programmatically - and it introduces constraints like calling the drawing code explicitly after a surface resize (e.g. inside an allocate() implementation). By using a signal-based approach we can make the CairoTexture actor behave like other actors, and like other libraries using Cairo as their 2D drawing API. The semantics of the newly-introduced ::draw signal are the same as the one used by GTK+: - the signal is emitted on invalidation; - the cairo_t* context is owned by the actor; - it is safe to have multiple callbacks attached to the same signal, to allow composition; - the cairo_t* is already clipped to the invalidated area, so that Cairo can discard geometry immediately before we upload the texture data. There are possible future improvements, like coalescing multiple invalidations inside regions, and performing clipped draws during the paint cycle; we could even perform clipped redraws if we know the extent of the invalidated area. clutter/clutter-cairo-texture.c | 489 ++++++++++++++++++++-------- clutter/clutter-cairo-texture.h | 51 ++-- doc/reference/clutter/clutter-sections.txt | 4 + tests/interactive/Makefile.am | 1 + tests/interactive/test-cairo-clock.c | 107 ++++++ 5 files changed, 501 insertions(+), 151 deletions(-) commit dcad27120ed8387ade8791bee3dbb4bebe43fa97 Author: Emmanuele Bassi Date: Mon Jul 25 11:07:18 2011 +0100 conform/cogl-materials: Fix a compiler warning The function checking for the presence and use of the GLES2 support in Cogl should be protected by #ifdef guards, to avoid a compiler warning. tests/conform/test-cogl-materials.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 772ce1d561d0efde2a836ae7f01314aabf681b03 Author: Gil Forcada Date: Sat Jul 23 19:06:37 2011 +0200 [l10n]Added Catalan (Valencian) translation po/ca@valencia.po | 2195 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 2195 insertions(+), 0 deletions(-) commit a14e47ee8741c72f0e0b407a7555e56873d2bb98 Author: Gil Forcada Date: Sat Jul 23 19:06:26 2011 +0200 [l10n]Added Catalan translation po/ca.po | 2196 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 2196 insertions(+), 0 deletions(-) commit cf44b73f14065e47277c39bf3b11c0a712c5746f Author: Marek Černocký Date: Thu Jul 21 07:13:27 2011 +0200 Updated Czech translation po/cs.po | 1117 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 571 insertions(+), 546 deletions(-) commit 55ac8e08466d10d2dc89e3d502d3c9e5043c2458 Author: Daniel Mustieles Date: Wed Jul 20 22:21:35 2011 +0200 Updated Spanish translation po/es.po | 495 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 255 insertions(+), 240 deletions(-) commit c89de4324e2f9581c4825183c155862148dd7061 Author: Emmanuele Bassi Date: Tue Jul 19 14:32:13 2011 +0100 docs: Remove manual/ The programmers manual never materialized, and its role has been taken by both the cookbook and the API reference. .gitignore | 4 -- configure.ac | 2 - doc/Makefile.am | 2 +- doc/manual/Makefile.am | 76 -------------------------- doc/manual/clutter-manual.xml.in | 98 ---------------------------------- doc/manual/images/clutter-header.png | Bin 7715 -> 0 bytes doc/manual/manual.xsl | 14 ----- doc/manual/style.css | 97 --------------------------------- 8 files changed, 1 insertions(+), 292 deletions(-) commit b19106793bdf9f531bda9dac0850066deb8d0f67 Author: Matej Urbančič Date: Tue Jul 19 22:26:03 2011 +0200 Updated Slovenian translation po/sl.po | 1251 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 637 insertions(+), 614 deletions(-) commit cbe1e8321bece8f31e1def9c9570e7efbb047387 Author: Neil Roberts Date: Wed Jul 13 14:10:47 2011 +0100 tests: Dynamically resolve GL symbols Some of the tests are making direct GL calls. Eventually we want Clutter not to link directly against any GL library so that it can leave Cogl to load it dynamically. As a step towards getting this to work this patch changes the tests to resolve the symbols using cogl_get_proc_address instead of linking directly. tests/conform/test-cogl-materials.c | 12 ++++-- tests/conform/test-cogl-texture-rectangle.c | 58 +++++++++++++++------------ tests/conform/test-conform-common.c | 24 +++++++++++ tests/conform/test-conform-common.h | 19 +++++++++ tests/interactive/test-cogl-tex-foreign.c | 49 +++++++++++++++++----- 5 files changed, 121 insertions(+), 41 deletions(-) commit 5cc5e566e6da0cc5d7761f20b158e8aff7c60a49 Author: Emmanuele Bassi Date: Tue Jul 19 14:11:11 2011 +0100 docs: Add fixed size and constraints to the size negotiation docs doc/size-negotiation.txt | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit e1327f5591287fee58d8818564984ea01e95ca87 Author: Emmanuele Bassi Date: Tue Jul 19 14:03:02 2011 +0100 actor: Clean up the allocate() checks Move the conditions to their own boolean flags, to avoid making the if() incomprehensible. clutter/clutter-actor.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit 48a2b3a654a1955308ac26cfd92240d9eae7975d Author: Emmanuele Bassi Date: Tue Jul 19 14:02:59 2011 +0100 docs: Rename the invariants documentation doc/actor-invariants.txt | 301 ++++++++++++++++++++++++++++++++++++++ doc/clutter-actor-invariants.txt | 301 -------------------------------------- 2 files changed, 301 insertions(+), 301 deletions(-) commit c1951ab17ab88622c7850c2662392f60a7776b01 Author: Emmanuele Bassi Date: Tue Jul 19 14:01:30 2011 +0100 docs: Add a simple description of the size negotiation mechanism Describe (with an example) the ordering and meaning of flags for the size negotiation in ClutterActor. doc/size-negotiation.txt | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 85 insertions(+), 0 deletions(-) commit 123bd41e6cf3cdcf240af7c6a7b79af73f42823a Author: Emmanuele Bassi Date: Mon Jul 18 16:10:17 2011 +0100 texture: Clean up error reporting ClutterTexture relies too much on GError, even for things that are clearly programmer errors. Also, no error message passed to GError is marked for translation as it should. We should move the programmer errors, like passing the wrong bpp value with regards to the presence of the alpha channel, to real warnings; we should also try and harmonize all the error messages, and not mention Cogl — especially in the ones marked for translation. clutter/clutter-texture.c | 130 ++++++++++++++++++++------------------------ 1 files changed, 59 insertions(+), 71 deletions(-) commit 672bc337ba9e5755df975ff6ee332259737e89c7 Author: Robert Bragg Date: Mon Jul 18 16:39:43 2011 +0100 build: don't explicitly include and egl or gl headers This avoids explicitly including gl or egl headers in clutter-egl-headers.h. We were getting build failures when building clutter against a libcogl that has runtime support for GL and GLES because cogl-defines.h was including gl.h and then clutter-egl-headers.h was later including GLES2/gl.h with typedef conflicts. Clutter relies on Cogl to abstract GL and GLES and the winsys APIs like EGL and GLX so Clutter should just rely on cogl.h to include the appropriate egl.h in clutter-egl-headers.h. Reviewed-by: Emmanuele Bassi Reviewed-by: Neil Roberts clutter/cogl/clutter-egl-headers.h | 22 +++------------------- 1 files changed, 3 insertions(+), 19 deletions(-) commit 90aa7b94468078a4fb40ba4dae821d8ecfeefa4e Author: Kjartan Maraas Date: Mon Jul 18 16:35:11 2011 +0200 Updated Norwegian bokmål translation po/nb.po | 1292 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 648 insertions(+), 644 deletions(-) commit a4b9eaf3ec3926565c1e20dee617788615943b88 Author: Damien Lespiau Date: Sat Jul 16 11:07:24 2011 +0100 alpha: Don't use the GClosure to compute the alpha when possible Setting up the call and calling the GClosure was showing up in profiles and seemed an easy one to remove. Instead of calling the closure, let's remember the alpha func and the user_data when possible (ie set_mode() and set_func()) and use it in get_alpha(). https://bugzilla.gnome.org/show_bug.cgi?id=654727 clutter/clutter-alpha.c | 66 +++++++++++++++++++++++++++++++++++----------- 1 files changed, 50 insertions(+), 16 deletions(-) commit 4d58534fbb49be6c39017df1d4a32a9184e28f68 Author: Damien Lespiau Date: Tue Jul 12 17:32:26 2011 +0100 text: Fix the default value of "editable" The "editable" property is documented to default to TRUE, but is initialized to FALSE in the _init() function. Third party code would be affected if we changed the default to be TRUE, so we have to change the default value in the GParamSpec. https://bugzilla.gnome.org/show_bug.cgi?id=654726 clutter/clutter-text.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e25e48efb3c17db428fc92426649a3f7a732456e Author: Emmanuele Bassi Date: Mon Jul 18 13:51:17 2011 +0100 Do not use return with void functions https://bugzilla.gnome.org/show_bug.cgi?id=654718 clutter/clutter-main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1402c0511239ede27855a836fd9ca9cc8dbf969d Author: Emmanuele Bassi Date: Mon Jul 18 13:45:55 2011 +0100 timeline: Cast elapsed time before emitting ::new-frame When emitting a new-frame signal, priv->elapsed_time is passed as a parameter. This is a gint64. The closure marshal uses an INT. On some platforms, this is not received correctly by signal handlers (they receive 0). One solution is to cast priv->elapsed_time to a gint when emitting the signal. We cannot change the signature of the signal without breaking ABI. https://bugzilla.gnome.org/show_bug.cgi?id=654066 clutter/clutter-timeline.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit c9cbe58343d4202e40d8ffd898712effca08381e Author: Bastian Winkler Date: Tue Jul 5 17:31:41 2011 +0200 snap-constraint: Fix allocation for CLUTTER_SNAP_EDGE_RIGHT Use source_with instead of source_height to calculate the the x1/x2 positions for CLUTTER_SNAP_EDGE_RIGHT https://bugzilla.gnome.org/show_bug.cgi?id=654024 clutter/clutter-snap-constraint.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit f1f5d7658f64adc527e1a202b13307f90258271f Author: Christian Kirbach Date: Mon Jul 18 00:38:55 2011 +0200 [l10n] Updated German translation po/de.po | 316 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 164 insertions(+), 152 deletions(-) commit ac859baf7b50a88c731a978b7f7046ccfb9a8d66 Author: Mario Blättermann Date: Fri Jul 15 21:21:54 2011 +0200 [l10n] Updated German translation po/de.po | 1189 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 592 insertions(+), 597 deletions(-) commit bc1c3e003d745dbaa95ecd161b83df0881e18cc6 Author: Emmanuele Bassi Date: Fri Jul 15 16:03:00 2011 +0100 x11/event: Avoid compiler warnings with HAVE_XGE undefined clutter/x11/clutter-event-x11.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 2dc69dc63d4e6fee068a918629f406a241ec9716 Author: Emmanuele Bassi Date: Fri Jul 15 16:02:19 2011 +0100 build: Escape AC_DEFINE arguments configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 538559391ca340d014796c812f860d509c1ed4cd Author: Emmanuele Bassi Date: Fri Jul 15 15:53:55 2011 +0100 actor: Plug a leak in an error path If the meta for the animation property is not found, the name of the property to look for is still from the token, and we need to free the memory allocated for it. clutter/clutter-actor.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 075a4ed86c468b9f1bcb7d864ea678df25e7438b Author: Carlos Garnacho Date: Thu Jul 14 21:58:25 2011 +0200 x11: Improve XGenericEventCookie data allocation https://bugzilla.gnome.org/show_bug.cgi?id=654656 Clutter may be used together with GTK+, which indirectly may use XInput2 too, so the cookie data must persist when both are handling events. What happens now in a nutshell is, Clutter is only guaranteed to allocate the cookie itself after XNextEvent(), and only frees the cookie if its XGetEventData() call allocated the cookie data. The X[Get|Free]EventData() calls happen now in clutter-event-x11.c as hypothetically different event translators could also handle other set of X Generic Events, or other libraries handling events for that matter. clutter/x11/clutter-device-manager-xi2.c | 18 +++++------------- clutter/x11/clutter-event-x11.c | 23 +++++++++++++++++++++++ configure.ac | 18 ++++++++++++++++++ 3 files changed, 46 insertions(+), 13 deletions(-) commit c6a0427c69294e765728bdac4dc11b73fda55b12 Author: Robert Bragg Date: Tue Jul 12 17:04:15 2011 +0100 pick: Use Cogl API not GL API to disable dithering When picking we need to disable dithering to be sure that the hardware will not modify the colors we use as actor identifiers. Clutter was manually calling glEnable/Disable GL_DITHER to handle this, but that was a layering violation since Cogl is intended to handle all interactions with OpenGL. Since we are now striving for GL vs GLES to be a runtime choice we need to remove this last direct usage of GL from Clutter so it doesn't have to be linked with GL at build time. Signed-off-by: Neil Roberts clutter/clutter-stage.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 3183240fef315bb8be2391eac7b714520da88bd6 Author: Robert Bragg Date: Tue Jul 12 01:11:51 2011 +0100 Provide stable paint-boxes for fixed sized actors This updates _clutter_paint_volume_get_stage_paint_box to try and calculate more stable paint-box sizes for fixed sized paint-volumes by not basing the size on the volume's sub-pixel position. So the aim is that for a given rectangle defined with floating point coordinates we want to determine a stable quantized size in pixels that doesn't vary due to the original box's sub-pixel position. The reason this is important is because effects will use this API to determine the size of offscreen framebuffers and so for a fixed-size object that may be animated across the screen we want to make sure that the stage paint-box has an equally stable size so that effects aren't made to continuously re-allocate a corresponding fbo. The other thing we consider is that the calculation of this box is subject to floating point precision issues that might be slightly different to the precision issues involved with actually painting the actor, which might result in painting slightly leaking outside the user's calculated paint-volume. This patch now adds padding to consider this too. Signed-off-by: Neil Roberts Signed-off-by: Emmanuele Bassi clutter/clutter-paint-volume.c | 49 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 48 insertions(+), 1 deletions(-) commit df751a8a255dbca77779fd361d990cfd6d4f5095 Author: Robert Bragg Date: Tue Jul 12 01:06:28 2011 +0100 actor: improve rounding in get_allocation_geometry Instead of relying on C to round the floating point allocation to integers by flooring the values we now use CLUTTER_NEARBYINT to round the allocation's position and size to the nearest integers instead. Using floor leads to rather unstable rounding for the width and height when there may be tiny fluctuations in the floating point width/height. Signed-off-by: Neil Roberts Signed-off-by: Emmanuele Bassi clutter/clutter-actor.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 32487af55b72e5a1be34176bc462ff11d8d378fc Author: Robert Bragg Date: Tue Jul 12 01:02:43 2011 +0100 Adds a CLUTTER_NEARBYINT macro for float rounding This is a replacement for the nearbyint function which always rounds to the nearest integer. nearbyint is a C99 function so it might not always be available but also it seems in glibc it is defined as a function call so this macro could end up faster anyway. We can't just add 0.5 because it will break for negative numbers. Signed-off-by: Neil Roberts Signed-off-by: Emmanuele Bassi clutter/clutter-private.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit ad234b303ca557c5f9bc34e0f4dfb0b3b619c865 Author: Robert Bragg Date: Tue Jul 12 00:44:47 2011 +0100 paint-volume: don't round paint-volume from allocation The implementation of _clutter_actor_set_default_paint_volume which simply uses the actor's allocation to determine a paint-volume was needlessly using the allocation rounded to integers by internally using clutter_actor_get_allocation_geometry instead of clutter_actor_get_allocation_box. This was introducing a lot of instability into the paint-volume due to the way rounding was done. The code has now been updated to use clutter_actor_get_allocation_box so we are dealing with the floating point allocation instead. Signed-off-by: Neil Roberts Signed-off-by: Emmanuele Bassi clutter/clutter-paint-volume.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 01cf70594dd29f7c80c73b0b89ca1d044777d04c Author: Tomeu Vizoso Date: Thu Jul 14 13:11:12 2011 +0200 Make sure the gesture is cancelled even if we miss the release event clutter/clutter-gesture-action.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 439c7e6ee71947558756d8c13c0cf8103203a7a1 Author: Tomeu Vizoso Date: Thu Jul 14 11:45:37 2011 +0200 Remove unneeded class closure clutter/clutter-gesture-action.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 18b3da95efa6d918eacade7e7f73f6979f201266 Author: Emmanuele Bassi Date: Wed Jul 13 19:32:47 2011 +0100 osx: Code style cleanups clutter/osx/clutter-backend-osx.c | 11 +++++---- clutter/osx/clutter-stage-osx.c | 42 ++++++++++++++++++++++++++++-------- 2 files changed, 38 insertions(+), 15 deletions(-) commit c8e3db105c7340e4a470dd46147712b95e90e76a Author: Tomeu Vizoso Date: Wed Jul 13 18:31:22 2011 +0200 Add default closures for the signals in ClutterGestureAction Also make sure we cancel the gesture as soon as we know we have to clutter/clutter-gesture-action.c | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) commit 48426c28bf8b0f88f31cc24b0c9f0d960b818637 Author: Dinh Bowman Date: Wed Jul 6 08:54:41 2011 -0700 Fixed typo of bidng to bind https://bugzilla.gnome.org/show_bug.cgi?id=654103 clutter/clutter-bind-constraint.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f45b12dac40d9f7500840877c7ec38292873c8cf Author: Emmanuele Bassi Date: Wed Jul 13 14:49:55 2011 +0100 build: Unescape conditionally defined defaults in AS_HELP_STRING AS_HELP_STRING() escapes everything, so m4 doesn't have a chance to run expansions. configure.ac | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit ab89f9b9e820a5d81d9f392f852397906d6098b9 Author: Emmanuele Bassi Date: Wed Jul 13 14:20:47 2011 +0100 build: Detect the appropriate default flavour If we're building on/for Windows, set 'win32' as the default flavour; if we're building on OS X, set 'osx' as the default flavour. For everything else, use 'glx'. configure.ac | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 9a3b97b55ea7a97f15d53b5797f3a4ffb84975b8 Author: Emmanuele Bassi Date: Wed Jul 13 14:26:05 2011 +0100 Revert "build: Detect the appropriate default flavour" Ouch, butterfingers and git commit -a. This reverts commit 81e8c8dec902e1e3b6277ebad5804f2321535332. clutter/clutter-actor.c | 8 -------- clutter/clutter-actor.h | 16 +++------------- configure.ac | 8 +------- 3 files changed, 4 insertions(+), 28 deletions(-) commit d67bc235a466bd1f5779bcfac6a8fd2cedd468e6 Author: Emmanuele Bassi Date: Wed Jul 13 14:22:14 2011 +0100 build: The OSX backend is not experimental any more The OSX backend is actively developed, and tested, so we can drop the experimental flag. configure.ac | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 81e8c8dec902e1e3b6277ebad5804f2321535332 Author: Emmanuele Bassi Date: Wed Jul 13 14:20:47 2011 +0100 build: Detect the appropriate default flavour If we're building on/for Windows, set 'win32' as the default flavour; if we're building on OS X, set 'osx' as the default flavour. For everything else, use 'glx'. clutter/clutter-actor.c | 8 ++++++++ clutter/clutter-actor.h | 16 +++++++++++++--- configure.ac | 8 +++++++- 3 files changed, 28 insertions(+), 4 deletions(-) commit a72237b8761d3c760922703e981a1234abf4a6fe Author: Neil Roberts Date: Tue Jul 12 17:16:43 2011 +0100 clutter-stage: Add clutter_stage_get_redraw_clip_bounds This adds a public function to get the bounds of the current clipped redraw on a stage. This should only be called while the stage is being painted. The function diverts to a virtual function on the ClutterStageWindow implementation. If the function isn't implemented or it returns FALSE then the entire stage is reported. The clip bounds are in integer pixel coordinates in the stage's coordinate space. http://bugzilla.clutter-project.org/show_bug.cgi?id=2421 clutter/clutter-stage-window.c | 15 ++++++++++ clutter/clutter-stage-window.h | 6 ++++ clutter/clutter-stage.c | 41 ++++++++++++++++++++++++++++ clutter/clutter-stage.h | 4 +++ clutter/cogl/clutter-stage-cogl.c | 25 +++++++++++++++++ clutter/cogl/clutter-stage-cogl.h | 4 +++ doc/reference/clutter/clutter-sections.txt | 1 + 7 files changed, 96 insertions(+), 0 deletions(-) commit 25a7435a866385aa19a4417957d5b9cdc3bd69ac Author: Damien Lespiau Date: Mon Jul 11 02:03:57 2011 +0100 uprof: Add the units in the name of the "Per Frame" timer attribute So it shows up in the profile report. Take the opportunity to write a better long description for the attribute. https://bugzilla.gnome.org/show_bug.cgi?id=654363 clutter/clutter-profile.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit fa336ab57f526a3274c51a25dddaadca91b21122 Author: Neil Roberts Date: Mon Jul 11 16:42:03 2011 +0100 test-cogl-materials: Use glGetString to determine cogl driver Rather than using the #ifdefs and assuming that only one Cogl driver is compiled in (which is no longer true), the test now calls glGetString to check the GL_VERSION. This is kind of a hack but the test is already calling GL functions directly anyway. tests/conform/test-cogl-materials.c | 45 +++++++++++++++++++++++----------- 1 files changed, 30 insertions(+), 15 deletions(-) commit 2bb4c2c6cb8afee99c0ebfdb9808a8d175fa4503 Author: Neil Roberts Date: Mon Jul 11 16:32:10 2011 +0100 test-cogl-materials: Remove a redundant comment test-cogl-materials had a weird comment about glReadPixels using inverted coordinates but the test now uses cogl_read_pixels instead of glReadPixels so it is irrelevant. tests/conform/test-cogl-materials.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit ab6be41ea043065424cb494ec80d4242812e2488 Author: Robert Bragg Date: Mon Jul 4 15:12:20 2011 +0100 build: update cogl_onscreen_x11 syms to cogl_x11_onscreen Cogl recently renamed symbols with the form cogl_onscreen__blah to be consistent with other platform specific APIs so they are now named like cogl__onscreen_blah. This makes the corresponding change to clutter. clutter/cogl/clutter-stage-cogl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit d182d5a1714be65004e6c68c347a7f45deaf47d8 Author: Robert Bragg Date: Fri Jul 1 01:50:30 2011 +0100 backend-cogl: update _get_egl_context symbol name Cogl changed has changed the name of cogl_context_egl_get_egl_context to cogl_egl_context_get_egl_context to be consistent with other platform specific symbols. clutter/cogl/clutter-backend-cogl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 71d0872b76ec6678f03fddf4731f394eaa06ba9f Author: Robert Bragg Date: Fri Jul 1 01:44:13 2011 +0100 don't call cogl_set_default_context since it's been removed cogl_set_default_context has been removed from Cogl so this updates Clutter in-line with that change. clutter/cogl/clutter-backend-cogl.c | 4 ---- clutter/win32/clutter-backend-win32.c | 4 ---- 2 files changed, 0 insertions(+), 8 deletions(-) commit 62ae252c59ba83723a2ed3b309ea63868fb91857 Author: Robert Bragg Date: Mon Jul 11 16:57:29 2011 +0100 build: depend on cogl-1.7.3 development version Since some experimental API in Cogl that Clutter uses has changed this bumps our dependency up to 1.7.3 before landing the corresponding build fixes for clutter to bring it in line with the Cogl changes. configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c17ddfd6a94fa3918a3d73cb0635fa874ee82295 Author: Damien Lespiau Date: Mon Jul 11 01:42:59 2011 +0100 uprof: Rename timers to remove the EGL specific bits Cogl abstracts the winsys, Remove the egl prefix from the timer names. https://bugzilla.gnome.org/show_bug.cgi?id=654361 clutter/cogl/clutter-stage-cogl.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit a9ef7dd81247b151072f76a719c4fde9853039f7 Author: Piotr Drąg Date: Sun Jul 10 14:37:18 2011 +0200 Updated POTFILES.in po/POTFILES.in | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 5d10a7141ca6557049aff1d4a513953f06fe0d54 Author: Emmanuele Bassi Date: Sun Jul 10 10:24:40 2011 +0100 text: Make sure that the selection box is big enough Do not use integers to store the result of the PANGO_UNITS scaling to avoid rounding issues with the default C rules. We should use cielf() instead. clutter/clutter-text.c | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) commit f6cdeb985812e13174c85cf04bc4a782e2d1939d Author: Emmanuele Bassi Date: Sun Jul 10 10:12:08 2011 +0100 osx: Fix a compiler warning No declaration after statement. clutter/osx/clutter-event-osx.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 73b043630d20ff46edb3a288d1da917680ae61e9 Author: Emmanuele Bassi Date: Fri Jul 8 12:12:43 2011 +0100 conform/pick: Print debug spew only if verbosity is toggled tests/conform/test-pick.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 96440acffec37d11717a98dc140219a36cf39483 Author: Emmanuele Bassi Date: Fri Jul 8 12:08:19 2011 +0100 texture: Deprecate the new_from_actor() function Now that we have proper offscreen and shader handling using the ClutterEffect API, we can finally deprecate this hard to bind, easy to break function. clutter/clutter-texture.c | 4 ++++ clutter/clutter-texture.h | 4 ++++ tests/conform/test-texture-fbo.c | 1 + tests/interactive/test-fbo.c | 1 + 4 files changed, 10 insertions(+), 0 deletions(-) commit e677ebc3e83132da67e8cbdbc3ac9fab87c1cea8 Author: Emmanuele Bassi Date: Fri Jul 8 12:01:08 2011 +0100 Deprecate ClutterScore The class is of dubious utility, now that we have a complex animation API in ClutterAnimator and ClutterState, as opposed to a simple one in ClutterBehaviour. The Score API also suffers from some naïve design issues that made it far less useful than intended. clutter/clutter-score.c | 3 +++ clutter/clutter-score.h | 4 ++++ tests/conform/test-score.c | 2 ++ 3 files changed, 9 insertions(+), 0 deletions(-) commit 7115c54fda8c87f61dc7c24420e531a519281016 Author: Neil Roberts Date: Wed Jul 6 12:43:29 2011 +0100 test-cogl-materials: Add a simple test for ref-counting copies This adds a simple test which creates a material and a copy of it. Both materials are then immediately unref'd. The test checks whether the materials were actually freed by registering some user data with a destroy callback. This should catch a bug that Cogl had where it add an extra reference to the parent when a pipeline is copied. Signed-off-by: Robert Bragg tests/conform/test-cogl-materials.c | 47 +++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) commit eb28d16300d5f86f64a2c595f59d7de3469d7704 Author: Philippe Normand Date: Wed Feb 2 12:58:47 2011 +0100 a11y: cally-text get_offset_at_point implementation See http://bugzilla.clutter-project.org/show_bug.cgi?id=1733 clutter/cally/cally-text.c | 83 ++++++++++++++++++++++++++- tests/accessibility/cally-atktext-example.c | 6 ++ 2 files changed, 88 insertions(+), 1 deletions(-) commit 7565fcaab04855fc2cb197c86f41b6e39409ae88 Author: Philippe Normand Date: Wed Feb 2 11:29:33 2011 +0100 a11y: cally-text get_character_extents implementation See http://bugzilla.clutter-project.org/show_bug.cgi?id=1733 clutter/cally/cally-text.c | 79 ++++++++++++++++++++++++++- tests/accessibility/cally-atktext-example.c | 13 ++++- 2 files changed, 90 insertions(+), 2 deletions(-) commit 61ea64c8c174bf5dc74058c701f1d3f83a7601cf Author: Philippe Normand Date: Wed Feb 2 15:02:45 2011 +0100 a11y: expose _cally_actor_get_top_level_origin in cally-actor-private As this function is needed for atktext get_character_extents and get_offset_at_point implementations. clutter/cally/cally-actor-private.h | 4 ++++ clutter/cally/cally-actor.c | 25 ++++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) commit ae0aa9e4cf6d19a857af042b498455d3bbbdc092 Author: Philippe Normand Date: Wed Jul 6 16:51:49 2011 +0200 a11y: get_default_attributes implementation on cally-text See http://bugzilla.clutter-project.org/show_bug.cgi?id=1733 clutter/cally/cally-text.c | 201 ++++++++++++++++++++++++++- tests/accessibility/cally-atktext-example.c | 32 ++++- 2 files changed, 231 insertions(+), 2 deletions(-) commit 6812ed7d3aaee6c6d5b7498478eb32cecb3c5df0 Author: Philippe Normand Date: Fri Feb 4 09:36:19 2011 +0100 a11y: cally-atktext-example cleanups Added an early return in test_atk_text(). Fixed a unichar conversion Print the run_attributes too. tests/accessibility/cally-atktext-example.c | 109 ++++++++++++++------------- 1 files changed, 58 insertions(+), 51 deletions(-) commit 11efaf829771736ce31837d10a715640ef7d5054 Author: Philippe Normand Date: Fri Feb 4 10:20:23 2011 +0100 a11y: use actor color if no fgcolor found in pango attributes clutter/cally/cally-text.c | 78 +++++++++++++++++++++++++++++-------------- 1 files changed, 52 insertions(+), 26 deletions(-) commit 49d43174208421141aa967380c042b1703b53c57 Author: Philippe Normand Date: Wed Feb 2 15:34:40 2011 +0100 a11y: factor some PangoAttributes->AtkTextAttributes mappings That code can then be used by get_run_attributes and get_default_attributes implementations. clutter/cally/cally-text.c | 154 ++++++++++++++++++++++++++++---------------- 1 files changed, 98 insertions(+), 56 deletions(-) commit 7e9ee85c7d23ed6d2ae5f69a91d26b34f0f523df Author: Alejandro Piñeiro Date: Wed Jul 6 14:25:02 2011 +0200 [a11y] Exposing via ATK the proper toolkit name and version clutter/cally/cally-actor.c | 18 ++++++++++++++++++ clutter/cally/cally-util.c | 9 ++------- 2 files changed, 20 insertions(+), 7 deletions(-) commit bd3762b7199bf8bc373fb245823e0bb8c730b913 Author: Neil Roberts Date: Mon Jul 4 18:23:32 2011 +0100 clutter-actor: Don't apply shaders during picking Commit 0ede622f5132 inadvertently made it so that shaders are applied during picking. This was making test-shader fail to respond to clicks. The commit also makes it so that culling is applied during picking. Presumably this is also unintentional because the commit message does not mention it. However I think it may make sense to do culling during picking so it might as well stay that way. https://bugzilla.gnome.org/show_bug.cgi?id=653959 clutter/clutter-actor.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit 805d27fb0de01f99eb991f5f81ef92109477da97 Author: Emmanuele Bassi Date: Mon Jul 4 22:28:30 2011 +0100 Post-release version bump to 1.7.5 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)