Emmanuele Bassi [Sat, 19 Jan 2008 10:30:29 +0000 (10:30 +0000)]
2008-01-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-event.c (clutter_event_copy): Take an extra
reference on the related actor in ClutterEventCrossing that we
explicitly unref in clutter_event_free(). (#714, Neil Roberts)
Emmanuele Bassi [Fri, 18 Jan 2008 18:11:33 +0000 (18:11 +0000)]
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-actors.c (input_cb): Fix the callback signature;
hide the clicked actor only if it's a hand.
Emmanuele Bassi [Fri, 18 Jan 2008 18:08:37 +0000 (18:08 +0000)]
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c (clutter_do_event): Check the
return value of the ::event signal for the CLUTTER_DELETE
event type.
* clutter/clutter-stage.c (clutter_stage_event): Emit the
::event signal when receiving the CLUTTER_DELETE event; this
allows to intercept the user's closing of the stage window.
Tomas Frydrych [Fri, 18 Jan 2008 12:21:40 +0000 (12:21 +0000)]
2007-01-18 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-fixed.h:
Added missing proto for clutter_fixed_qdivx().
Tomas Frydrych [Fri, 18 Jan 2008 12:17:41 +0000 (12:17 +0000)]
2007-01-18 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-fixed.h:
* clutter/clutter-fixed.c:
Added CLUTTER_QDIV() for 64-bit division (bug 564, patch by
Gwenole Beauchesne).
Emmanuele Bassi [Fri, 18 Jan 2008 11:58:16 +0000 (11:58 +0000)]
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-event.h: Add a gunichar field for the Unicode
representation of the key. (#555)
Emmanuele Bassi [Fri, 18 Jan 2008 11:45:12 +0000 (11:45 +0000)]
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
* subclassing-ClutterActor.sgml: Fix up the wording and the
examples a bit; add a paragraph about the ClutterActor::pick()
virtual method.
Emmanuele Bassi [Fri, 18 Jan 2008 11:25:47 +0000 (11:25 +0000)]
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.h:
* clutter/clutter-script.h:
* clutter/clutter-stage.h:
* clutter/clutter-units.h: Documentation fixes and additions.
Emmanuele Bassi [Fri, 18 Jan 2008 11:02:34 +0000 (11:02 +0000)]
2008-01-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Add ClutterBehaviourOpacity accessors.
* clutter/clutter-behaviour-opacity.h:
* clutter/clutter-behaviour-opacity.c:
(clutter_behaviour_opacity_set_bounds),
(clutter_behaviour_opacity_get_bounds): Add accessors for the
opacity-start and opacity-end properties.
* clutter/clutter-behaviour-scale.h: Fix the argument name to
avoid complaints by gtk-doc.
Emmanuele Bassi [Thu, 17 Jan 2008 15:01:04 +0000 (15:01 +0000)]
Update README
Emmanuele Bassi [Thu, 17 Jan 2008 14:44:43 +0000 (14:44 +0000)]
2008-01-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-scale.c:
(clutter_behaviour_scale_set_gravity): Notify on the right property
name.
Emmanuele Bassi [Thu, 17 Jan 2008 14:31:14 +0000 (14:31 +0000)]
2008-01-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Add new ClutterBehaviourScale setters.
* clutter/clutter-behaviour-scale.[ch]: Split the scaling factors
on both axis. Add setters for all the behaviour properties.
* clutter/clutter-effect.h:
* clutter/clutter-effect.c (clutter_effect_scale): Split the
final scale factor to match the ClutterBehaviourScale changes. (#709)
* tests/test-actors.c:
* tests/test-effects.c:
* tests/test-rotate.c:
* tests/test-scale.c: Update after API change.
Emmanuele Bassi [Wed, 16 Jan 2008 10:38:05 +0000 (10:38 +0000)]
2008-01-16 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/cogl/cogl.h: Rename COGLhandleARB to COGLhandle.
* clutter/cogl/gl/cogl-defines.h.in:
* clutter/cogl/gl/cogl.c: Update GL implementation of COGL.
* clutter/cogl/gles/cogl-defines.h:
* clutter/cogl/gles/cogl.c: Update GLES implementation of COGL.
* clutter/clutter-shader.c: Fix ClutterShader to use the new
COGLhandle type instead of COGLhandlerARB.
Emmanuele Bassi [Wed, 16 Jan 2008 10:02:56 +0000 (10:02 +0000)]
2008-01-16 Emmanuele Bassi <ebassi@openedhand.com>
Define COGLhandleARB. (patch by Johan Bilien)
* clutter/cogl/gles/cogl-defines.h: Define COGLhandleARB on
GLES as well (using GLuint)
* clutter/cogl/gles/cogl.c: Use COGLhandleARB.
Emmanuele Bassi [Mon, 14 Jan 2008 13:59:27 +0000 (13:59 +0000)]
2008-01-14 Tommi Komulainen <tommi.komulainen@iki.fi>
reviewed by: Emmanuele Bassi <ebassi@openedhand.com>
* clutter/osx/clutter-event-osx.c (_clutter_event_osx_put):
Initialize ClutterEvent structure with zeroes (#672)
The 'source' member was uninitialized and being referenced in
clutter_do_event leading to crash.
Emmanuele Bassi [Mon, 14 Jan 2008 13:13:23 +0000 (13:13 +0000)]
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-scale.c: Improve test case for scaling (#684,
Jaap A. Haitsma)
Emmanuele Bassi [Mon, 14 Jan 2008 12:02:28 +0000 (12:02 +0000)]
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.c (timeline_timeout_func): Fix
check if the last frame was reached by skipping a frame (#654,
Johan Bilien)
Emmanuele Bassi [Mon, 14 Jan 2008 11:56:35 +0000 (11:56 +0000)]
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-shader.c: Use correct format string for
gssize. (#695, Tommi Komulainen)
Emmanuele Bassi [Mon, 14 Jan 2008 11:52:04 +0000 (11:52 +0000)]
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/cogl/gl/cogl.c (cogl_get_proc_address): Implement non-GLX
version using GModule and looking up the symbol from the running
process. It should work when linked to library providing the
requested function. (#696, Tommi Komulainen)
Emmanuele Bassi [Mon, 14 Jan 2008 10:39:41 +0000 (10:39 +0000)]
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Post-release bump to 0.5.3
* README:
* NEWS: Release 0.5.2
Emmanuele Bassi [Mon, 14 Jan 2008 10:13:35 +0000 (10:13 +0000)]
2008-01-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Add clutter_model_insertv()
* clutter/clutter-model.[ch] (clutter_model_insertv): Add a vector
based insertion API, for language bindings
Emmanuele Bassi [Sat, 12 Jan 2008 11:05:05 +0000 (11:05 +0000)]
2008-01-12 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-effect.c (clutter_effect_rotate): Make the
rotate effect work on the passed axis, instead of hardcoding
the X axis. (#700, Neil Roberts)
Øyvind Kolås [Thu, 10 Jan 2008 09:55:44 +0000 (09:55 +0000)]
Added COGLhandleARB since the underlying type on OSX is void*,
patch from Tommi Komulainen <tommi.komulainen@iki.fi>, (#694)
* clutter/cogl/gl/cogl-defines.h.in: Added COGLhandleARB typedef.
* clutter/cogl/cogl.h:
* clutter/cogl/gl/cogl.c:
* clutter/clutter-shader.c: Use COGLhandleARB instead of COGLint when
referring to program or shader handles.
Emmanuele Bassi [Wed, 9 Jan 2008 14:40:31 +0000 (14:40 +0000)]
2008-01-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/Makefile.am:
* clutter/clutter.h:
* clutter/clutter-list-model.[ch]: Complete the ClutterModelDefault
to ClutterListModel rename by renaming the source files
Emmanuele Bassi [Wed, 9 Jan 2008 14:34:24 +0000 (14:34 +0000)]
2008-01-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model-default.[ch]: Rename ClutterModelDefault
into ClutterListModel, to make it clear that the default
ClutterModel implementation is list-based
* tests/test-model.c: Update call
Emmanuele Bassi [Wed, 9 Jan 2008 14:18:53 +0000 (14:18 +0000)]
2008-01-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model-default.c:
(clutter_model_default_new),
(clutter_model_default_newv): Move the constructors in the
right file
* clutter/clutter-model-private.h: Add a private header for
the ClutterModel implementations
* clutter/clutter-model.c:
(clutter_model_check_type),
(clutter_model_set_n_columns),
(clutter_model_set_column_type): Mark as private to Clutter,
not static to ClutterModel
* clutter/Makefile.am: Add clutter-model-private.h
Emmanuele Bassi [Wed, 9 Jan 2008 11:00:54 +0000 (11:00 +0000)]
2008-01-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c:
(clutter_label_ensure_layout): Fix the ClutterUnits to Pango
scale conversion.
Emmanuele Bassi [Tue, 8 Jan 2008 14:12:11 +0000 (14:12 +0000)]
2008-01-08 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c:
(clutter_model_appendv),
(clutter_model_prependv): Fix the columns length pre-condition
Emmanuele Bassi [Mon, 7 Jan 2008 17:35:07 +0000 (17:35 +0000)]
2008-01-07 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model-default.[ch]: Remove the ClutterModelDefault
iterator symbols from the public API; the iterator implementation
is a detail of the default ClutterModel class
* clutter.symbols: Update
Emmanuele Bassi [Mon, 7 Jan 2008 17:17:43 +0000 (17:17 +0000)]
2008-01-07 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.h:
* clutter/clutter-model.c:
(clutter_model_appendv),
(clutter_model_prependv): Add vector based API for bindings.
(clutter_model_get_column_name),
(clutter_model_get_column_type),
(clutter_model_set_sorting_column): Fix the check in the condition
on the column index.
* tests/test-scale.c (on_timeline_completed), (main): Fix spelling
* clutter.symbols: Update public symbols
Emmanuele Bassi [Fri, 4 Jan 2008 18:30:25 +0000 (18:30 +0000)]
2008-01-04 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Add clutter_actor_move_byu()
* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
(clutter_actor_move_by),
(clutter_actor_move_byu): Add a units-based variant of the
clutter_actor_move_by() function
Emmanuele Bassi [Wed, 2 Jan 2008 15:07:40 +0000 (15:07 +0000)]
2008-01-02 Johan Bilien <jobi@via.ecp.fr>
reviewed by: Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Use AC_DEFINE_UNQUOTED to expand the
variable. Fixes EGL backend build
Emmanuele Bassi [Wed, 2 Jan 2008 13:17:34 +0000 (13:17 +0000)]
2008-01-02 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Post release bump to 0.5.1
Emmanuele Bassi [Wed, 2 Jan 2008 13:15:31 +0000 (13:15 +0000)]
Release 0.5.0
Emmanuele Bassi [Wed, 2 Jan 2008 12:15:10 +0000 (12:15 +0000)]
2008-01-02 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model-default.c:
(clutter_model_default_get_iter_at_row),
(clutter_model_default_insert_row): Fix off-by-one errors
(clutter_model_default_class_init):
(clutter_model_default_remove_row): Move the actual removal of the
row to...
(clutter_model_default_row_removed): ... the signal class handler
of ::row-removed; this way, signal handlers connected to
::row-removed will get a valid iterator, while signal handlers
connected to ::row-removed with the AFTER flag will get an updated
model
Tomas Frydrych [Mon, 31 Dec 2007 14:52:17 +0000 (14:52 +0000)]
2007-12-31 Tomas Frydrych <tf@openedhand.com>
* configure.ac:
* clutter/Makefile.am:
Added -no-undefined to libtool LDFLAGS for mingw/SDL backend, to
allow building of shared libraries for win32.
Tomas Frydrych [Mon, 31 Dec 2007 11:22:11 +0000 (11:22 +0000)]
2007-12-31 Tomas Frydrych <tf@openedhand.com>
* configure.ac:
* clutter.pc.in:
Added CLUTTER_REQUIRES automake var to allow deps in clutter.pc to
be backend-specific.
Emmanuele Bassi [Fri, 28 Dec 2007 15:34:24 +0000 (15:34 +0000)]
2007-12-28 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c:
(clutter_texture_unrealize): Do not read the pixels back if the
texture is being destroyed
Emmanuele Bassi [Fri, 28 Dec 2007 15:33:20 +0000 (15:33 +0000)]
2007-12-28 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c:
(clutter_model_real_get_n_rows), (clutter_model_class_init),
(clutter_model_get_n_rows): Provide a default implementation of
the get_n_rows() method, so that subclasses do not strictly need
to override it
Emmanuele Bassi [Tue, 25 Dec 2007 22:31:11 +0000 (22:31 +0000)]
2007-12-25 Emmanuele Bassi <ebassi@openedhand.com>
reviewed by: <delete if not using a buddy>
* clutter/clutter-actor.c:
(parse_rotation_array): Inline, and get the JsonArray as a parameter
(parse_rotation): Update
* clutter/clutter-script.c:
(warn_missing_attribute): Fix for emacs-style warnings
(clutter_script_parse_node): Remove an ifdeffed out section
(clutter_script_construct_parameters),
(clutter_script_construct_object): Rename get_parameters, so
it's obvious what it does
Emmanuele Bassi [Tue, 25 Dec 2007 20:09:20 +0000 (20:09 +0000)]
2007-12-25 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-script.json: Fix the JSON syntax
Emmanuele Bassi [Tue, 25 Dec 2007 11:41:10 +0000 (11:41 +0000)]
2007-12-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-enum-types.c.in: Fix the template
Emmanuele Bassi [Mon, 24 Dec 2007 16:24:26 +0000 (16:24 +0000)]
Emmanuele Bassi [Mon, 24 Dec 2007 14:52:41 +0000 (14:52 +0000)]
2007-12-24 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-color.c:
* clutter/clutter-event.c:
* clutter/clutter-stage.c: Intern more strings using the I_() macro
* clutter/clutter-enum-types.c.in: Call g_intern_static_string()
in the enum types template
Emmanuele Bassi [Mon, 24 Dec 2007 14:22:20 +0000 (14:22 +0000)]
Update ChangeLog
Emmanuele Bassi [Mon, 24 Dec 2007 14:21:19 +0000 (14:21 +0000)]
2007-12-24 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Add clutter_actor_set_clipu() and
clutter_actor_get_clipu()
* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
(clutter_actor_set_clipu), (clutter_actor_get_clipu): Add the
new units-based versions of the clip accessors
(clutter_actor_set_clip), (clutter_actor_get_clip): Reimplement
the pixels-based clip accessors as proxies for the units-based
ones
Emmanuele Bassi [Mon, 24 Dec 2007 12:53:04 +0000 (12:53 +0000)]
2007-12-24 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/cogl/cogl.h: Update cogl_clip_set() to accept the
clip components as ClutterFixed values
* clutter/cogl/gl/cogl.c (cogl_clip_set): Update the GL implementation
of cogl_clip_set()
* clutter/cogl/gles/cogl.c:
(cogl_rectangle_internal): Provide an internal, inlined rectangle
drawing function using fixed point values, to be shared by
cogl_clip_set() and cogl_rectangle()
(cogl_clip_set), (cogl_rectangle): Update the GLES implementation
of cogl_clip_set() and cogl_rectangle() to use the new internal
rectangle drawing function
* clutter/clutter-actor.c: Make the clip an array of ClutterUnit
values instead of pixel-based; this allows higher precision and
device independence
(_clutter_actor_apply_modelview_transform): Pass the clip
components converting from units to fixed point values, using
the new cogl_clip_set() signature
(clutter_actor_get_property), (clutter_actor_set_clip),
(clutter_actor_get_clip): Update the accessors of the clip
property
Emmanuele Bassi [Mon, 24 Dec 2007 12:13:31 +0000 (12:13 +0000)]
Update TODO
Emmanuele Bassi [Fri, 21 Dec 2007 17:19:41 +0000 (17:19 +0000)]
Update README and NEWS before release
Emmanuele Bassi [Fri, 21 Dec 2007 17:19:18 +0000 (17:19 +0000)]
Update ChangeLog
Emmanuele Bassi [Fri, 21 Dec 2007 17:18:49 +0000 (17:18 +0000)]
2007-12-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.h: Remove the unused ::set_depth() and
::get_depth() virtual functions. (#674, Murray Cumming)
Emmanuele Bassi [Fri, 21 Dec 2007 16:04:39 +0000 (16:04 +0000)]
2007-12-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-group.c:
* clutter/clutter-group.h: Add the clutter_group_add() convenience
function; it's now "undeprecated" and implemented as a macro
* clutter/clutter-stage.h: Add clutter_stage_add() as a convenience
macro
* clutter/cogl/cogl.h: Include just the needed headers instead
of the whole clutter.h; this avoids rebuild cogl when not needed
Emmanuele Bassi [Fri, 21 Dec 2007 15:25:00 +0000 (15:25 +0000)]
2007-12-21 Emmanuele Bassi <ebassi@openedhand.com>
* Makefile.am: Move tests build before docs, to cut down the
distcheck failure discovery
* clutter.symbols: Add clutter_texture_set_area_from_rgb_data()
* clutter/clutter-actor.c:
* clutter/clutter-script.c:
* clutter/clutter-texture.c:
* clutter/json/json-generator.c:
* clutter/json/json-parser.c: Compilation fixes for passing distcheck
* tests/test-grab.c:
* tests/test-score.c:
* tests/test-script.c:
* tests/test-shader.c:
* tests/test-unproject.c: Ditto as above
Emmanuele Bassi [Fri, 21 Dec 2007 15:09:08 +0000 (15:09 +0000)]
2007-12-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-sections.txt: Add clutter_texture_set_area_from_rgb_data()
Emmanuele Bassi [Fri, 21 Dec 2007 13:18:19 +0000 (13:18 +0000)]
2007-12-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c:
(clutter_label_ensure_layout): Avoid rounding errors in the layout
computing when switching between Clutter units and Pango units.
Øyvind Kolås [Thu, 20 Dec 2007 14:26:07 +0000 (14:26 +0000)]
* clutter/clutter-texture.[ch]: (bug #675) added
clutter_texture_set_area_from_rgb_data, sharing some of the
initialization infrastructure with clutter_texture_set_from_rgb_data.
Emmanuele Bassi [Thu, 20 Dec 2007 10:44:28 +0000 (10:44 +0000)]
2007-12-20 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-container.c:
(clutter_container_lower_child): Fix interface method call
to actually call ClutterContainer::lower. (#670, Gwenole
Beauchesne)
Emmanuele Bassi [Thu, 20 Dec 2007 09:22:05 +0000 (09:22 +0000)]
2007-12-20 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c:
(clutter_label_query_coords): Return the bounding box set inside
request_coords(), if any; otherwise, return the natural allocation
of the label. (#678, reported by Gwenole Beauchesne)
* tests/test-rotate.c: Align the label
Tomas Frydrych [Wed, 19 Dec 2007 16:16:10 +0000 (16:16 +0000)]
2007-12-19 Tomas Frydrych <tf@openedhand.com>
* clutter/Makefile.am:
* clutter/cogl/gl/cogl-defines.h.in:
* clutter/pango/pangoclutter-render.c:
* configure.ac:
Fixes to allow cross-compilation with mingw (patch by Neil
Roberts).
Removed trailing whitespace.
Øyvind Kolås [Tue, 18 Dec 2007 13:03:45 +0000 (13:03 +0000)]
* clutter/clutter-main.c: (generate_enter_leave_events): synthesize
enter event (without related) and corresponding leave event when the
actor the cursor is over has been destroyed.
* clutter/clutter-event.c: (clutter_event_free): only unref the
related_actor when it actually is set.
Emmanuele Bassi [Tue, 18 Dec 2007 10:49:29 +0000 (10:49 +0000)]
2007-12-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c:
(unset_motion_last_actor),
(generate_enter_leave_events): Attach a callback to the destroy
signal on the last motion actor, so if it goes away while the
pointer is in the middle of it we can unset the pointer.
* clutter/clutter-private.h: Store the last motion actor inside
the global context.
Emmanuele Bassi [Mon, 17 Dec 2007 17:45:49 +0000 (17:45 +0000)]
2007-12-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_should_pick_paint),
(clutter_actor_apply_transform_to_point): Fix the whitespace.
(clutter_actor_set_rotation): Clarify that the coordinates of
the centre of rotation are relative to the anchor point or,
if not set, to the upper left corner of the bounding box.
Tomas Frydrych [Mon, 17 Dec 2007 17:16:49 +0000 (17:16 +0000)]
2007-12-17 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-behaviour-ellipse.c:
* clutter/clutter-behaviour-rotate.c:
Clamping of start and end angles to <0, 360).
Emmanuele Bassi [Mon, 17 Dec 2007 15:56:35 +0000 (15:56 +0000)]
2007-12-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-path.c: Clarify the equivalence
between the upper and lower bounds of the ClutterAlpha and
the position in the path. (#634)
Emmanuele Bassi [Mon, 17 Dec 2007 15:51:30 +0000 (15:51 +0000)]
2007-12-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c: Mention the fact that a ClutterTexture
will scale its contents to fit inside the requested bounding
box. (#661)
Emmanuele Bassi [Mon, 17 Dec 2007 15:47:19 +0000 (15:47 +0000)]
2007-12-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Fix documentation for
the ::captured-event signal. (#673)
Emmanuele Bassi [Mon, 17 Dec 2007 15:08:43 +0000 (15:08 +0000)]
2007-12-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Clarify the set_clip() method
documentation, pointing out that the clip area origin is
always the top-left corner of an actor.
Emmanuele Bassi [Sat, 15 Dec 2007 14:36:27 +0000 (14:36 +0000)]
2007-12-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
* clutter/clutter-alpha.h:
* clutter/clutter-event.h:
* clutter/clutter-fixed.[ch]:
* clutter/clutter-model.h:
* clutter/clutter-shader.[ch]:
* clutter/clutter-stage.c: Documentation fixes.
Emmanuele Bassi [Sat, 15 Dec 2007 13:02:06 +0000 (13:02 +0000)]
2007-12-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model-default.c:
(clutter_model_default_iter_next),
(clutter_model_default_iter_prev): Do not instantiate a new
iterator, and update the passed one instead, as we say we do
in the documentation. This avoid leaking tons of iterators.
* clutter/clutter-model.[ch]: Update the documentation.
* tests/test-model.c: Prettify some output.
Emmanuele Bassi [Fri, 14 Dec 2007 17:25:55 +0000 (17:25 +0000)]
2007-12-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour.c:
(clutter_knot_get_type): Use the I_() macro.
* clutter/clutter-model.[ch]: Make ClutterModel and ClutterModelIter
abstract classes; also, provide more virtual functions inside the
ClutterModel vtable, to allow subclasses and language bindings to
override the entire ClutterModel using other/native data types
to store the rows.
* clutter/clutter-model-default.[ch]: ClutterModelDefault is a
default implementation of ClutterModel and ClutterModelIter using
GSequence.
* clutter/Makefile.am:
* clutter/clutter.h: Build glue for ClutterModelDefault.
* tests/test-model.c: Update for constructor changes.
* tests/test-shader.c: Fix a typo.
Matthew Allum [Fri, 14 Dec 2007 12:36:45 +0000 (12:36 +0000)]
2007-12-14 Matthew Allum <mallum@openedhand.com>
* clutter/cogl/gl/cogl-defines.h.in:
* clutter/cogl/gles/cogl-defines.h:
Add CLUTTER_COGL_HAS_GL/GLES defines
Øyvind Kolås [Tue, 11 Dec 2007 14:49:41 +0000 (14:49 +0000)]
Refined the ClutterShader API based on a patch from Emmanuele Bassi.
* clutter/clutter-actor.c: (clutter_actor_paint),
(clutter_actor_apply_shader): queue a redraw of actor when shader is
set.
* clutter/clutter-actor.h: indentation.
* clutter/clutter-shader.[ch]: made the fragment and vertex shader
sources properties. Report error through GError when binding shaders.
* tests/test-shader.c: modified to use newer API.
Emmanuele Bassi [Mon, 10 Dec 2007 16:42:21 +0000 (16:42 +0000)]
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c:
(clutter_model_get_sorting_column): Fix wrong type check.
Emmanuele Bassi [Mon, 10 Dec 2007 16:22:05 +0000 (16:22 +0000)]
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.[ch]: Allow unsorting the model (passing
-1 as the sorting column)
(clutter_model_iter_get_valist): Do not initialise twice che
return value.
Emmanuele Bassi [Mon, 10 Dec 2007 16:02:46 +0000 (16:02 +0000)]
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c (clutter_model_iter_get_value): Initialise
the passed GValue like the other getters do.
Emmanuele Bassi [Mon, 10 Dec 2007 15:08:53 +0000 (15:08 +0000)]
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.h:
* clutter/clutter-model.c:
(clutter_model_append_value),
(clutter_model_prepend_value),
(clutter_model_insert_value): Add a _value() variant for the
insertion methods, for use of the language bindings.
(clutter_model_append),
(clutter_model_prepend),
(clutter_model_insert): Do not return a boolean: insertion should
never fail unless for a programming error, in which case we have
plenty of warnings.
Emmanuele Bassi [Mon, 10 Dec 2007 12:00:41 +0000 (12:00 +0000)]
Fix ChangeLog attribution
Emmanuele Bassi [Mon, 10 Dec 2007 12:00:08 +0000 (12:00 +0000)]
2007-12-10 Emmanuele Bassi,,, <ebassi@sprite>
* clutter/clutter-behaviour-ellipse.c:
(clutter_behaviour_ellipse_get_angle_tilt),
(clutter_behaviour_ellipse_get_angle_tiltx),
(clutter_behaviour_ellipse_set_tilt): Fix a double conversion
that was messing up the returned results. (#665)
Emmanuele Bassi [Mon, 10 Dec 2007 11:03:24 +0000 (11:03 +0000)]
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-docs.sgml: Add ClutterShader...
* clutter.types: ... and its type function.
Emmanuele Bassi [Mon, 10 Dec 2007 11:01:10 +0000 (11:01 +0000)]
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_set_property),
(clutter_actor_get_property),
(clutter_actor_class_init): Add the rotation-* properties,
controlling the rotation angle and center on each axis. (#614)
(parse_rotation_array), (parse_rotation),
(clutter_actor_parse_custom_node),
(clutter_actor_set_custom_property),
(clutter_scriptable_iface_init): Add a new "rotation" custom
property for expressing the rotation along each axis in a
compact way:
"rotation" : [
{ "x-axis" : [ <angle>, [ <y>, <z> ] ] },
{ "y-axis" : [ <angle>, [ <x>, <z> ] ] },
{ "z-axis" : [ <angle>, [ <x>, <y> ] ] }
]
(clutter_geometry_get_type),(clutter_vertex_get_type),
(clutter_actor_box_get_type): Use the I_() macro instead of
directly calling g_intern_static_string().
* clutter/clutter-entry.c (clutter_entry_request_coords):
* clutter/clutter-label.c (clutter_label_ensure_layout),
(clutter_label_request_coords): Use CLUTTER_UNITS_FROM_DEVICE()
instead of CLUTTER_UNITS_FROM_INT(), as "device" means "pixels".
* clutter/clutter-private.h: Add the I_() macro for intern
static strings.
* tests/test-script.json: Test the newly added "rotation"
custom property.
Tomas Frydrych [Mon, 10 Dec 2007 10:16:55 +0000 (10:16 +0000)]
2007-12-10 Tomas Frydrych <tf@openedhand.com>
* tests/Makefile.am:
Fixed a typo.
Tomas Frydrych [Mon, 10 Dec 2007 10:13:31 +0000 (10:13 +0000)]
2007-12-10 Tomas Frydrych <tf@openedhand.com>
* tests/test-viewport.c:
* tests/Makefile.am:
Added a simple viewport test.
Tomas Frydrych [Mon, 10 Dec 2007 08:15:10 +0000 (08:15 +0000)]
2007-12-07 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:
(_clutter_actor_apply_modelview_transform):
Moved offset translation after rotation so that rotation coords
are also relative to the offset point.
Emmanuele Bassi [Sun, 9 Dec 2007 08:53:06 +0000 (08:53 +0000)]
2007-12-09 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-events.c (input_cb):
* tests/test-text.c (main): Fix compiler errors. (#592,
Gwenole Beauchesne)
Emmanuele Bassi [Sun, 9 Dec 2007 08:47:11 +0000 (08:47 +0000)]
2007-12-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Document the values for full
transparency and full opacity in the set_opacity()
method. (#662)
* clutter/clutter-behaviour-ellipse.c: Improve consistency
in the apidoc.
Emmanuele Bassi [Sat, 8 Dec 2007 14:59:58 +0000 (14:59 +0000)]
2007-12-08 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Make libtool respect the -s switch of make
and be quiet.
Emmanuele Bassi [Fri, 7 Dec 2007 15:49:54 +0000 (15:49 +0000)]
2007-12-07 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
(clutter_actor_get_sizeu),
(clutter_actor_get_positionu): Add unit-based accessors to
the size and position.
Tomas Frydrych [Fri, 7 Dec 2007 11:00:01 +0000 (11:00 +0000)]
2007-12-07 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-behaviour-ellipse.c:
(clutter_behaviour_ellipse_set_angle_start):
(clutter_behaviour_ellipse_set_angle_end):
(clutter_behaviour_ellipse_set_angle_tilt):
(clutter_behaviour_ellipse_set_tilt):
Removed strayed degree -> ClutterAngle conversions left over from
API changes.
(clutter_behaviour_ellipse_set_angle_tiltx):
Removed stray printf.
Tomas Frydrych [Fri, 7 Dec 2007 07:48:57 +0000 (07:48 +0000)]
2007-12-07 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-behaviour-ellipse.c:
Fixed tilt setters and getters.
Tomas Frydrych [Thu, 6 Dec 2007 16:21:48 +0000 (16:21 +0000)]
2007-12-06 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-fixed.c:
* clutter/clutter-fixed.h:
(clutter_sqrti):
Added extra iteration to the Newton-Rapson algorithm for argumens
lesser than 342 to improve precission.
Emmanuele Bassi [Thu, 6 Dec 2007 12:38:04 +0000 (12:38 +0000)]
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c:
(clutter_set_motion_events_frequency): Never allow the motion
events devlivery frequency to exceed the default frame rate.
Emmanuele Bassi [Thu, 6 Dec 2007 11:25:16 +0000 (11:25 +0000)]
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/json/json-parser.[ch]: Use gssize, size we allow -1
as a length (meaning "use the whole string").
(json_parser_load_from_data): Use the passed length instead of
using strlen() all the time.
* clutter/clutter-script.[ch]: Ditto as above.
Emmanuele Bassi [Thu, 6 Dec 2007 10:58:42 +0000 (10:58 +0000)]
Rever accidental commit
Emmanuele Bassi [Thu, 6 Dec 2007 10:57:29 +0000 (10:57 +0000)]
Update the svn:ignore property
Emmanuele Bassi [Thu, 6 Dec 2007 10:55:41 +0000 (10:55 +0000)]
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/pango/pangoclutter-render.c: Hush a compiler warning
by removing a unused variable.
Emmanuele Bassi [Thu, 6 Dec 2007 10:49:46 +0000 (10:49 +0000)]
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c (clutter_label_ensure_layout): If the
label has a requested size, force it when ensuring the layout.
Emmanuele Bassi [Thu, 6 Dec 2007 10:39:07 +0000 (10:39 +0000)]
Do not forget to commit the ChangeLog next time
Emmanuele Bassi [Thu, 6 Dec 2007 09:07:12 +0000 (09:07 +0000)]
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-unproject.c: Fix type comparison.
* tests/test-score.c: Save the returned ids.
Matthew Allum [Wed, 5 Dec 2007 21:41:43 +0000 (21:41 +0000)]
2007-12-05 Matthew Allum <mallum@openedhand.com>
* clutter/pango/pangoclutter-render.c:
Prefer rendering with npots textures over pots textures if
available (essentially makes applying shaders easier)
Also convert some float to fixed.
Emmanuele Bassi [Wed, 5 Dec 2007 21:15:19 +0000 (21:15 +0000)]
2007-12-05 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-score.h: Rearrange declarations.
* clutter/clutter-score.c: More documentation in the long
description of the ClutterScore section.
* clutter/clutter-debug.h:
* clutter/clutter-main.c: Add the CLUTTER_DEBUG_SHADER flag,
for debugging the shader calls.
* clutter/clutter-feature.h: Fix the documentation of the
feature flags.
* clutter/Makefile.am: Remove trailing whitespace.