commit 75d97ffdc509058915e2eee5c1480d83e6ee7776 Author: Emmanuele Bassi Date: Thu Jan 19 13:42:37 2012 +0000 Release Clutter 1.9.6 (snapshot) NEWS | 35 +++++++++++++++++++++++++++++++++++ configure.ac | 2 +- 2 files changed, 36 insertions(+), 1 deletions(-) commit a222e75e332685e458d027a3ac4b1aa8bd763269 Author: Emmanuele Bassi Date: Thu Jan 19 13:41:45 2012 +0000 build: Bump up the Cogl requirement Clutter requires a new version of Cogl's API, but we never bumped the requirement inside configure.ac. configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 480514b721e985bad1c8aed69fbee1bbb24260c0 Author: Emmanuele Bassi Date: Thu Jan 19 13:40:02 2012 +0000 stage: Use clutter_actor_set_allocation() Instead of chaining up, given that we want to bypass chaining up and just set the allocation. This also allows us to bail out of the overridden allocate vfunc check, given that we want the default Actor behaviour to apply - including eventual layout manager delegates. clutter/clutter-stage.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) commit f7bae2a064f4cdf17d854414d3a9acee690649b7 Author: Emmanuele Bassi Date: Thu Jan 19 13:39:14 2012 +0000 actor: Fix the has_overridden_allocate check clutter/clutter-actor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit acf8aff6d5427ee3768057eb9de49612cb60793d Author: Emmanuele Bassi Date: Thu Jan 19 13:14:47 2012 +0000 docs: Add clutter_actor_set_allocation() doc/reference/clutter/clutter-sections.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b206a3d025d416098d8e77f7e668d5ccd7dd3998 Author: Emmanuele Bassi Date: Thu Jan 19 13:14:33 2012 +0000 symbols: Add clutter_actor_set_allocation() clutter/clutter.symbols | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 67eeea6b6290ef916fde04d684ecb3bc3ac8656d Author: Emmanuele Bassi Date: Thu Jan 19 12:40:32 2012 +0000 actor: Maintain behaviour of old allocate() implementations The usual way to implement a container actor is to override the allocate() virtual function, chain up, and then allocate the actor's children. Clutter now has the ability to delegate layout management to ClutterLayoutManager directly; in the allocation, this is done by checking whether the actor has children, and then call clutter_layout_manager_allocate() from within the default implementation of the ClutterActor::allocate() vfunc. The same vfunc that everyone, has been chaining up to. Whoopsie. Well, we can check if there's a layout manager, and if it's NULL, we bail out. Except that there's a default layout manager, and it's the fixed layout manager, so that classes like Group and Stage work by default. Double whoopsie. The fix for this scenario is a bit nasty; we have to check if the actor class has overridden the allocate() vfunc or not, before actually looking at the layout manager. This means that classes that override the allocate() vfunc are expected to do everything that ClutterActor's default implementation does - which I think it's a fair requirement to have. For newly written code, though, it would probably be best if we just provided a function that does the right thing by default, and that you're supposed to be calling from within the allocate() vfunc implementation, if you ever chose to override it. This new function, clutter_actor_set_allocation(), should come with a warning the size of Texas, to avoid people thinking it's a way to override the whole "call allocate() on each child" mechanism. Plus, it should check if we're inside an allocation sequence, and bail out if not. clutter/clutter-actor.c | 272 ++++++++++++++++++++++++++++++++++++---------- clutter/clutter-actor.h | 3 + 2 files changed, 216 insertions(+), 59 deletions(-) commit 70679dc68ca805f0669cf9f94b4e441a50ed82f9 Author: Emmanuele Bassi Date: Wed Jan 18 16:05:12 2012 +0000 actor: Be more conservative with the default paint volume Check the allocation, when one is being used to initialize the paint volume. clutter/clutter-actor.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) commit eafb0ee734a6a5c04a92216b4425bd675c1c4999 Author: Daniel Mustieles Date: Wed Jan 18 12:39:55 2012 +0100 Updated Spanish translation po/es.po | 288 +++++++++++++++++++++++++++++++++++--------------------------- 1 files changed, 164 insertions(+), 124 deletions(-) commit 7e4260ee8a594aa7f32b68c231a5b152055fb593 Author: Emmanuele Bassi Date: Tue Jan 17 22:54:44 2012 +0000 build: Fix up the test rules for private deps Thanks to diegoe for the help with testing. configure.ac | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) commit f6ae8cf62180a6a9465b40f01129f15ddbefc2d5 Author: Piotr Drąg Date: Tue Jan 17 23:24:14 2012 +0100 Updated POTFILES.in po/POTFILES.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d7e6deef9c448bfcd07cb33c5dc58667fcccdcb4 Author: Emmanuele Bassi Date: Tue Jan 17 21:59:37 2012 +0000 build: Add private deps to cflags and libs If we go through the whole exercise of having private dependencies, we should at least use the compiler flags and linker flags that those dependencies give us when building Clutter. https://bugzilla.gnome.org/show_bug.cgi?id=668137 configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit f7d9eab36d187a16161dfb58230fd16cef17407b Author: Emmanuele Bassi Date: Tue Jan 17 18:46:41 2012 +0000 actor: Add :first-child and :last-child properties Toolkits tracking first and last children of a ClutterActor can use these properties to get notification of hierarchy changes. clutter/clutter-actor.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) commit bb8abe832ec11cdc9c336cc949ce913ef4e131e7 Author: Emmanuele Bassi Date: Tue Jan 17 18:13:42 2012 +0000 actor: Do not use ::constructed If we want to set a default layout manager, we need to do so inside init(), as it's not guaranteed that people subclassing Actor and overriding ::constructed will actually chain up as they should. clutter/clutter-actor.c | 31 +++++++++++++++---------------- 1 files changed, 15 insertions(+), 16 deletions(-) commit 7dd06de6d58c7d1ab9c3615ac87a45331244789d Author: Emmanuele Bassi Date: Tue Jan 17 16:54:30 2012 +0000 interactive: Drop more deprecated classes tests/interactive/test-constraints.c | 13 +++++++------ tests/interactive/test-depth.c | 21 +++++++++------------ tests/interactive/test-state.c | 10 +++++++--- 3 files changed, 23 insertions(+), 21 deletions(-) commit 8f1575b970936762039083df49925afaec9c48f7 Author: Emmanuele Bassi Date: Tue Jan 17 16:20:41 2012 +0000 interactive: Use ClutterActor instead of deprecated classes tests/interactive/test-actors.c | 2 +- tests/interactive/test-scrolling.c | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) commit 8492b17ae23bf154d11286a4ab530c42c31c107c Author: Emmanuele Bassi Date: Tue Jan 17 16:20:19 2012 +0000 conform/actor-size: Do not use Rectangle Use ClutterActor directly, instead. tests/conform/test-actor-size.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 629ded568e30a845337e41f04b04b5fcc20a82d4 Author: Emmanuele Bassi Date: Tue Jan 17 16:13:55 2012 +0000 actor: Provide a better default pick() behaviour The default pick() behaviour does not take into consideration the children of a ClutterActor because the existing containter actors usually override pick(), chain up, and then paint their children. With ClutterActor now a concrete class, though, we need a way to pick its children without requiring a sub-class; we could simply iterate over the children inside the default pick() implementation, but this would lead to double painting, which is not acceptable. A moderately gross hack is to check if the Actor instance did override the pick() implementation, and if it is not the case, paint the children in pick mode. clutter/clutter-actor.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) commit 0f39f20db6c906c3f32c9376a1cca94ce4c1a14f Author: Emmanuele Bassi Date: Tue Jan 17 16:11:29 2012 +0000 actor: Deprecate show_all()/hide_all() The hide_all() method is pretty much pointless, as hiding an actor will automatically prevent its children from being painted. The show_all() method would only be marginally useful, if actors weren't set to be visible by default when added to another actor - which was the case when we introduced show_all() and hide_all(). clutter/clutter-actor.c | 5 +++++ clutter/clutter-actor.h | 8 ++++---- clutter/deprecated/clutter-actor.h | 6 ++++++ 3 files changed, 15 insertions(+), 4 deletions(-) commit d363279fd308922af22c934d73715ea3833b7235 Author: Daniel Mustieles Date: Tue Jan 17 17:12:52 2012 +0100 Updated Spanish translation po/es.po | 124 +++++++++++++++++++++++++++++++------------------------------ 1 files changed, 63 insertions(+), 61 deletions(-) commit 41bef2b23ad8a75cce14b54a581527468790c3ad Author: Emmanuele Bassi Date: Tue Jan 17 14:44:28 2012 +0000 Post-release version bump to 1.9.5 configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)