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.
Tomas Frydrych [Wed, 5 Dec 2007 14:54:15 +0000 (14:54 +0000)]
2007-12-05 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:
* clutter/clutter-actor.h:
* tests/Makefile.am:
* tests/test-unproject:
(clutter_actor_transform_stage_point):
Added new function for translating stage coordinates into local
actor coordinates.
Emmanuele Bassi [Tue, 4 Dec 2007 16:56:53 +0000 (16:56 +0000)]
2007-12-04 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-score.c: Better document ClutterScore
and its API.
Emmanuele Bassi [Tue, 4 Dec 2007 16:26:19 +0000 (16:26 +0000)]
2007-12-04 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-score.[ch]: Reimplement ClutterScore using
a N-ary tree to store the timelines. Remove clutter_score_add():
the same functionality can be achieved by passing a NULL
parent to clutter_score_append().
* tests/test-score.c: Update ClutterScore test unit, and add
debug printouts.
Øyvind Kolås [Tue, 4 Dec 2007 09:13:06 +0000 (09:13 +0000)]
* clutter/clutter-shader.c: (bind_glsl_shader): use gchar instead of
GLcharARB.
Øyvind Kolås [Mon, 3 Dec 2007 17:14:49 +0000 (17:14 +0000)]
* clutter/clutter-shader.[ch]: do not include GL.h.
Øyvind Kolås [Mon, 3 Dec 2007 16:29:18 +0000 (16:29 +0000)]
Support for shaders in clutter. At the moment limited to drivers
providing GLSL support.
* clutter/cogl/cogl.h: added rather direct binding of needed for glsl
shaders.
* clutter/cogl/gl/cogl-defines.h.in:
* clutter/cogl/gl/cogl.c:
* clutter/cogl/gles/cogl-defines.h: added stubs.
* clutter/cogl/gles/cogl.c: added stubs.
* clutter/glx/clutter-stage-glx.c:
(clutter_stage_glx_realize): unrelated memory management sanity fix.
(clutter_stage_glx_unrealize): unbind all shaders on stage unrealize.
* clutter/Makefile.am: added clutter-shader.[ch]
* clutter/clutter-actor.[ch]: adding shader capability to
actors.
* clutter/clutter-feature.h: added CLUTTER_FEATURE_SHADERS_GLSL
* clutter/clutter-private.h: added stack of shaders to context.
* clutter/clutter-shader.[ch]: new.
* tests/Makefile.am: added shader test.
* tests/test-shader.c: (frame_cb), (main): simple shader test,
cycle through the inline shader with right/left mouse buttons.
Øyvind Kolås [Mon, 3 Dec 2007 16:16:41 +0000 (16:16 +0000)]
* clutter/glx/clutter-stage-glx.c: for extra sanity, set
stage_x11->xvisinfo = NULL after XFree. Makes using the root window
as foreign window possible.
Øyvind Kolås [Fri, 30 Nov 2007 17:07:08 +0000 (17:07 +0000)]
* clutter/clutter-timeline.c: (clutter_timeline_get_delta): return the
number of milliseconds passed between new-frame events instead of
since new-frame events, thus making sure that the sum of _get_delta's
returned for all new-frame events is equal to total time elapsed.
Emmanuele Bassi [Fri, 30 Nov 2007 14:36:07 +0000 (14:36 +0000)]
2007-11-30 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c (parse_units),
(clutter_actor_parse_custom_node): Do not allow using percentages
of the stage on the stage itself, as it makes little to no
sense.
* clutter/clutter-script.c:
(clutter_script_construct_object): Rearrange code.
* tests/test-script.json: Do not set the size of the stage, to
test for the stage size percentage.
Emmanuele Bassi [Fri, 30 Nov 2007 13:22:03 +0000 (13:22 +0000)]
2007-11-30 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.h: Complete the documentation of
the ClutterModelClass structure members.
Emmanuele Bassi [Fri, 30 Nov 2007 13:21:15 +0000 (13:21 +0000)]
Update exported symbols
Emmanuele Bassi [Fri, 30 Nov 2007 13:20:15 +0000 (13:20 +0000)]
2007-11-30 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.h:
* clutter/clutter-timeline.c
(timeline_timeout_func),
(clutter_timeline_get_delta): Add a function for retrieving
the number of frames and the time (in milliseconds) elapsed
since the last timeline ::new-frame signal. This can be useful
for implementing a physics engine or just for knowing how if
and how many frames have been skipped.
Emmanuele Bassi [Fri, 30 Nov 2007 09:27:10 +0000 (09:27 +0000)]
2007-11-30 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c (parse_units),
(clutter_actor_parse_custom_node),
(clutter_scriptable_iface_init): Override the parsing code
for the x, y, width and height properties of ClutterActor,
to allow strings with modifiers when defining the position
and/or the dimensions of an actor. Bare integers are assumed
as pixels; floating point values in the [0, 1] interval are
assumed as percentages; strings can have these modifiers:
- px - pixels
- mm - millimeters
- pt - points (at the current resolution)
- % - percentage of the stage
* clutter/clutter-units.h: Fix the conversion macros
* tests/test-script.json: Test the new values.
Emmanuele Bassi [Thu, 29 Nov 2007 15:01:21 +0000 (15:01 +0000)]
2007-11-29 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.[ch]: Slight API change in the constructor
functions for ClutterModel: clutter_model_new() now takes a list
of GType/string pairs for both the column type and the column name.
(clutter_model_set_n_columns),
(clutter_model_set_names),
(clutter_model_set_types): Subclasses of ClutterModel will be able
to call clutter_model_set_types() and clutter_model_set_names() in
any order, provided that they don't call each function more than
once.
* tests/test-model.c: Update the test case.
Tomas Frydrych [Thu, 29 Nov 2007 13:47:37 +0000 (13:47 +0000)]
2007-11-29 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
Converted depth and rotation offsets to ClutterUnit.
(clutter_actor_set_depthu):
(clutter_actor_get_depthu):
Additional ClutterUnit API.
(_clutter_actor_apply_modelview_transform):
Use cogl_translatex() in place of cogl_translate().
Emmanuele Bassi [Thu, 29 Nov 2007 11:00:28 +0000 (11:00 +0000)]
Fix keywords on README
Emmanuele Bassi [Thu, 29 Nov 2007 10:59:53 +0000 (10:59 +0000)]
Fix keywords on README
Emmanuele Bassi [Thu, 29 Nov 2007 10:58:19 +0000 (10:58 +0000)]
Add keywords to README
Emmanuele Bassi [Thu, 29 Nov 2007 10:54:13 +0000 (10:54 +0000)]
2007-11-29 Emmanuele Bassi <ebassi@openedhand.com>
* *: Add svn:ignore property to every directory, so that
svn status starts being useful.
Matthew Allum [Wed, 28 Nov 2007 23:57:26 +0000 (23:57 +0000)]
2007-11-29 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-main.c: (generate_enter_leave_events):
Minor formatting tweak.
* configure.ac:
Typo fix from Damien Lespiau (via mailing list)
Emmanuele Bassi [Wed, 28 Nov 2007 18:04:24 +0000 (18:04 +0000)]
2007-11-28 Emmanuele Bassi <ebassi@openedhand.com>
Add more introspection capabilities to the base model class
* clutter/clutter-model.h:
* clutter/clutter-model.c:
(clutter_model_finalize): Do no leak the column types array.
(clutter_model_get_n_columns): Function for getting the number
of columns inside a model.
(clutter_model_set_names): Add API for setting the names of the
columns.
(clutter_model_get_column_name),
(_model_get_column_type): Add API for getting each column's name
and the default implementation for ClutterModel.
(clutter_model_get_column_type),
(_model_get_iter_at_row): Add API for getting each column's type
and the default implementation for ClutterModel.
* clutter.symbols: Add ClutterModel and ClutterModelIter symbols,
and keep the symbols file sorted.
Tomas Frydrych [Wed, 28 Nov 2007 15:31:41 +0000 (15:31 +0000)]
2007-11-28 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:
* clutter/clutter-actor.h:
(clutter_actor_set_positionu):
(clutter_actor_set_sizeu):
(clutter_actor_get_widthu):
(clutter_actor_get_heightu):
(clutter_actor_set_widthu):
(clutter_actor_set_heightu):
(clutter_actor_get_xu):
(clutter_actor_get_yu):
(clutter_actor_set_xu):
(clutter_actor_set_yu):
Expanded ClutterActor API with new ClutterUnit-base functions.
* clutter/clutter-stage.c:
* clutter/clutter-stage.h:
(clutter_stage_get_resolution):
(clutter_stage_get_resolutionx):
New function to query stage resolution (floating and fixed point
versions).
* clutter/clutter-units.h:
(CLUTTER_UNITS_FROM_STAGE_WIDTH_PERCENTAGE):
(CLUTTER_UNITS_FROM_STAGE_HEIGHT_PERCENTAGE):
(CLUTTER_UNITS_FROM_PARENT_WIDTH_PERCENTAGE):
(CLUTTER_UNITS_FROM_PARENT_HEIGHT_PERCENTAGE):
(CLUTTER_UNITS_FROM_MM):
(CLUTTER_UNITS_FROM_MMX):
(CLUTTER_UNITS_FROM_POINTS):
(CLUTTER_UNITS_FROM_POINTSX):
New macros for conversions to ClutterUnits.
* clutter.symbols:
Added:
ClutterActor anchor_point functions,
clutter_stage_get_resolution functions.
Removed:
clutter_actor_scale_with_gravity functions.
Emmanuele Bassi [Wed, 28 Nov 2007 14:38:54 +0000 (14:38 +0000)]
Update release notes
Emmanuele Bassi [Wed, 28 Nov 2007 14:16:37 +0000 (14:16 +0000)]
2007-11-28 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.[ch]: Documentation fixes.
Emmanuele Bassi [Wed, 28 Nov 2007 13:50:24 +0000 (13:50 +0000)]
2007-11-28 Emmanuele Bassi <ebassi@openedhand.com>
Remove the layout containers: they will be moved to a
high-level library.
* clutter/clutter.h:
* clutter/Makefile.am: Remove layout and boxes from the
build.
* clutter/clutter-layout.[ch]: Remove the ClutterLayout
interface.
* clutter/clutter-box.[ch]:
* clutter/clutter-hbox.[ch]:
* clutter/clutter-vbox.[ch]: Remove ClutterBox and its
subclasses.
* clutter/clutter-label.c: Remove ClutterLayout implementation
* clutter/clutter-script-private.h:
* clutter/clutter-script-parser.c:
* clutter/clutter-script.c:
(clutter_script_parse_node): Remove special parsing for
ClutterMargin and ClutterPadding.
* clutter/clutter-types.h: Remove ClutterPadding and ClutterMargin.
* tests/Makefile.am:
* tests/test-boxes.c: Remove the boxes test case.
Tomas Frydrych [Wed, 28 Nov 2007 12:23:31 +0000 (12:23 +0000)]
2007-11-28 Tomas Frydrych <tf@openedhand.com>
* clutter/NEWS:
Started 0.6.0 section with comment on actor anchor point.
* clutter/clutter/clutter-actor.c:
* clutter/clutter/clutter-actor.h:
* clutter/clutter/clutter-behaviour-scale.c:
* clutter/clutter/clutter-deprecated.h:
(clutter_actor_set_anchor_point):
(clutter_actor_set_anchor_pointu):
(clutter_actor_get_anchor_point):
(clutter_actor_get_anchor_pointu):
(clutter_actor_set_anchor_point_from_gravity):
New anchor point API deprecating old gravity scaling, added
comments on modelview matrix construction to ClutterActor
documentation.
(clutter_actor_set_scale_with_gravity):
(clutter_actor_set_scale_with_gravityx):
Deprecated; use clutter_actor_set_anchor_point_from_gravity() instead.
Emmanuele Bassi [Wed, 28 Nov 2007 10:27:33 +0000 (10:27 +0000)]
2007-11-28 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-effect.[ch]: Add clutter_effect_template_construct()
function, for language bindings that need to set the alpha function
but cannot call the clutter_effect_template_new() ctor themselves.
Tomas Frydrych [Tue, 27 Nov 2007 12:34:28 +0000 (12:34 +0000)]
2007-11-27 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-behaviour-ellipse.c:
* clutter/clutter-behaviour-ellipse.h:
(clutter_behaviour_ellipse_get_angle_startx):
(clutter_behaviour_ellipse_set_angle_startx):
(clutter_behaviour_ellipse_get_angle_endx):
(clutter_behaviour_ellipse_set_angle_endx):
(clutter_behaviour_ellipse_get_angle_tiltx):
(clutter_behaviour_ellipse_set_angle_tiltx):
Changed to take and return angles in degrees represented as
ClutterFixed.
Emmanuele Bassi [Tue, 27 Nov 2007 11:05:26 +0000 (11:05 +0000)]
2007-11-27 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c (clutter_actor_destroy): Remove the
reference we hold on the actor, as it was preventing the finalization
of every child on the stage.
Emmanuele Bassi [Mon, 26 Nov 2007 12:10:20 +0000 (12:10 +0000)]
2007-11-26 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/x11/clutter-stage-x11.c:
(clutter_stage_x11_set_cursor_visible): Restore the XFixes usage,
as it now seems to be have been fixed.
Emmanuele Bassi [Mon, 26 Nov 2007 12:07:25 +0000 (12:07 +0000)]
2007-11-26 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_real_show),
(clutter_actor_real_hide): Do not set the MAPPED flag on the actor
if it is a top-level one (like ClutterStage); the backends are
responsible for setting that flag, as it might be the result of an
asynchronous operation (e.g. on X11).
* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_show),
(clutter_stage_egl_hide): Set/unset the CLUTTER_ACTOR_MAPPED flag
on show and hide respectively.
* clutter/osx/clutter-stage-osx.c:
(clutter_stage_osx_show),
(clutter_stage_osx_hide): Ditto as above.
* clutter/sdl/clutter-stage-sdl.c:
(clutter_stage_sdl_show),
(clutter_stage_sdl_hide): Ditto as above, plus chain up to the
parent class show/hide virtual functions.
* clutter/x11/clutter-event-x11.c (event_translate): Use the MapNotify
and UnmapNotify events to call the X11 stage map/unmap functions.
* clutter/x11/clutter-stage-x11.[ch]:
(clutter_stage_x11_set_fullscreen): Set the fullscreen_on_map flag
with the fullscreen value.
(clutter_stage_x11_map), (clutter_stage_x11_unmap): Set the MAPPED
flag on the stage actor and redraw; also, if the fullscreen_on_map
flag was set, call clutter_stage_fullscreen() as well. (#648)
* tests/Makefile.am:
* tests/test-fullscreen.c: Add a fullscreen test case for checking
whether fullscreen works on every backend/platform.
Emmanuele Bassi [Fri, 23 Nov 2007 17:25:50 +0000 (17:25 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-docs.sgml: Shuffle around non-actor classes.
Emmanuele Bassi [Fri, 23 Nov 2007 17:12:27 +0000 (17:12 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_real_request_coords),
(clutter_actor_request_coords),
(clutter_actor_class_init): Provide a default ::request_coords()
implementation in ClutterActor and use it to store the bounding
box passed to clutter_actor_request_coords(). This makes the code
more reliable and clean, and avoids a call to the subclass
request_coords() method if the bounding box did not change. Now,
every class overriding ClutterActor::request_coords() *must* chain
up to the parent class method or the bounding box will not be
saved inside the ClutterActor structure.
* clutter/clutter-entry.c:
* clutter/clutter-group.c:
* clutter/clutter-hbox.c:
* clutter/clutter-label.c:
* clutter/clutter-texture.c:
* clutter/clutter-vbox.c: Chain up to the parent class
request_coords() method.
Emmanuele Bassi [Fri, 23 Nov 2007 17:07:46 +0000 (17:07 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-event.h: Add more documentation.
Emmanuele Bassi [Fri, 23 Nov 2007 13:12:37 +0000 (13:12 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-event.c: Back out an accidental commit.
Emmanuele Bassi [Fri, 23 Nov 2007 13:11:10 +0000 (13:11 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
* clutter/clutter-alpha.c:
* clutter/clutter-effect.c:
* clutter/clutter-event.c:
* clutter/clutter-event.h:
* clutter/clutter-group.h:
* clutter/clutter-model.c:,
* clutter/clutter-script.c:
* clutter/clutter-scriptable.h:
* clutter/clutter-stage.c: Documentation fixes.
* clutter/clutter-score.c: Fix implementation.
Emmanuele Bassi [Fri, 23 Nov 2007 13:07:04 +0000 (13:07 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/x11/clutter-stage-x11.c: Chain up the hide and show
to the parent's implementation.
Emmanuele Bassi [Fri, 23 Nov 2007 11:23:19 +0000 (11:23 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-effect.[ch]: Update the effects API to remove
the start value for most of them.
(clutter_effect_move): Make it a simple "move from current
position to new coordinates" effect.
(clutter_effect_path): Rename from clutter_effect_move().
(clutter_effect_rotate): Sync up with the new actor rotation API.
* tests/test-effects.c: Regression test for the effects.
* tests/Makefile.am: Build glue for test-effects
* tests/test-behave.c: Emulate a full ramp by using a looping
timeline changing its direction when reaching the last frame.
Emmanuele Bassi [Fri, 23 Nov 2007 11:20:14 +0000 (11:20 +0000)]
2007-11-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c (clutter_actor_destroy): Bail out
if clutter_actor_destroy() was called on the stage: the stage
is not for the user to destroy.
* clutter/x11/clutter-backend-x11.c:
* clutter/eglnative/clutter-backend-egl.c:
* clutter/sdl/clutter-backend-sdl.c:
* clutter/osx/clutter-backend-osx.c: Unset the top-level private
flag on the stage when disposing it, so the backends can safely
call clutter_actor_destroy().
* clutter/clutter-private.h: Tweak the private flags accessors,
to avoid the typecheck.
Emmanuele Bassi [Thu, 22 Nov 2007 13:41:00 +0000 (13:41 +0000)]
2007-11-22 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c (clutter_label_new_full): Set the
terminating NULL which was removed when applying patch for
fixing #606. (#645, Gwenole Beauchesne)
Øyvind Kolås [Wed, 21 Nov 2007 23:25:56 +0000 (23:25 +0000)]
* clutter/clutter-actor.c: mended a couple of typos in documentation.
Øyvind Kolås [Wed, 21 Nov 2007 23:25:30 +0000 (23:25 +0000)]
* clutter/clutter-actor.c: mended a couple of typos in documentation.
Matthew Allum [Wed, 21 Nov 2007 12:30:50 +0000 (12:30 +0000)]
2007-11-21 Matthew Allum <mallum@openedhand.com>
* clutter/cogl/gles/cogl.c: (cogl_fog_set):
Minor fixes for fog on GLES.
Emmanuele Bassi [Wed, 21 Nov 2007 11:55:26 +0000 (11:55 +0000)]
2007-11-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/cogl/cogl.h: Add cogl_fog_set() abstracting the
glFog() functions and enabling the GL_FOG flag.
* clutter/cogl/gl/cogl.c: Add GL implementation of cogl_fog_set().
* clutter/cogl/gles/cogl.c: Add GL/ES implementation of
cogl_fog_set().
* clutter.symbols: Add new symbols.
* clutter/clutter-stage.h: Add API to enable depth cueing on
the stage using a linear GL fog, and to set the parameters
for it (#637).
* clutter/clutter-stage.c (clutter_stage_paint): Enable the
GL fog if the ClutterStage:use-fog property is true.
* tests/test-depth.c: Test the new stage API.
Øyvind Kolås [Tue, 20 Nov 2007 17:14:05 +0000 (17:14 +0000)]
* clutter/clutter-main.c: (event_click_count_generate): generalized
click_count generation code.
* tests/test-events.c: (input_cb): extended test to report click_count
for release and scroll events as well as press events.
Øyvind Kolås [Tue, 20 Nov 2007 17:06:23 +0000 (17:06 +0000)]
reverted accidental commit
Øyvind Kolås [Tue, 20 Nov 2007 17:05:23 +0000 (17:05 +0000)]
reverted accidental commit
Øyvind Kolås [Tue, 20 Nov 2007 17:03:53 +0000 (17:03 +0000)]
* clutter/clutter-main.c: (clutter_do_event): avoid computing source
of events if it is already set (for synthetic events.)
* clutter/clutter-event.c: Add more information to the documentation
of clutter_event_put.
Emmanuele Bassi [Tue, 20 Nov 2007 16:19:52 +0000 (16:19 +0000)]
2007-11-20 Emmanuele Bassi <ebassi@openedhand.com>
* README: Add diff example command lines for submitting patches.
Emmanuele Bassi [Tue, 20 Nov 2007 16:05:56 +0000 (16:05 +0000)]
2007-11-20 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c::
* clutter/clutter-behaviour-opacity.c:
* clutter/clutter-clone-texture.c:
* clutter/clutter-effect.c:
* clutter/clutter-label.c: Remove the usage of G_PARAM_CONSTRUCT
without an override for the ::construct virtual function; using
G_PARAM_CONSTRUCT to set the default value of a property is not
the recommended approach; default values are set inside the
instance init function.
Emmanuele Bassi [Tue, 20 Nov 2007 15:45:59 +0000 (15:45 +0000)]
2007-11-20 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c (clutter_texture_init): Set filter-quality
value to 1, to fix the regression caused when applying the patch for
buf #616.
Emmanuele Bassi [Mon, 19 Nov 2007 21:14:16 +0000 (21:14 +0000)]
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.[ch]: Fix ClutterLabel size allocation when
no bounding box has been provided, and store the box set by the
user so that it can be reused when recomputing the layout. (#600)
(clutter_label_class_init),
(clutter_label_init): Set the :wrap property default to FALSE.
* clutter/clutter-units.h: Add ClutterUnit-to-PangoUnit conversion
macro.
* tests/test-rotate.c: Fix string.
Emmanuele Bassi [Mon, 19 Nov 2007 16:35:46 +0000 (16:35 +0000)]
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-bspline.c:
* clutter/clutter-behaviour-depth.c:
* clutter/clutter-behaviour-ellipse.c:
* clutter/clutter-behaviour-opacity.c:
* clutter/clutter-behaviour-path.c:
* clutter/clutter-behaviour-rotate.c:
* clutter/clutter-behaviour-scale.c: Fix gtk-doc short description.
Emmanuele Bassi [Mon, 19 Nov 2007 16:35:11 +0000 (16:35 +0000)]
Do not forget files when committing
Emmanuele Bassi [Mon, 19 Nov 2007 16:30:56 +0000 (16:30 +0000)]
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Update
* clutter/clutter-actor.h: Rename the angle argument for
set_rotationx() to avoid gtk-doc complaining
* clutter/clutter-main.h:
* clutter/clutter-main.c:
(clutter_set_motion_events_enabled): Rename for consistency
(clutter_get_motion_events_frequency),
(clutter_set_motion_events_frequency): Add accessors for the default
motion events deliver frequency.
(clutter_do_event): Throttle down motion events delivery using the
motion events frequency setting, to avoid excessive redraws. (#608)
(clutter_context_get_default): Enable per-actor motion events, at
least for now.
* tests/test-events.c (red_button_cb):
* tests/test-grab.c (green_press_cb): Update.
Emmanuele Bassi [Mon, 19 Nov 2007 15:25:56 +0000 (15:25 +0000)]
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.c (timeline_timeout_func): Do not emit the
::new-frame signal twice for the last frame. (#531)
Øyvind Kolås [Mon, 19 Nov 2007 11:43:20 +0000 (11:43 +0000)]
* clutter/clutter-actor.[ch]: (clutter_actor_set_rotationx),
(clutter_actor_set_rotation): swapped axis and angle around,
the new argument order is: (axis, angle, x, y, z). Also removed
deprecated rotation functions from header.
Updated use of clutter_actor_set_rotation? in the following files:
* clutter/clutter-behaviour-rotate.c:
* clutter/clutter-effect.c:
* tests/test-actors.c:
* tests/test-project.c:
Emmanuele Bassi [Mon, 19 Nov 2007 00:02:13 +0000 (00:02 +0000)]
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.[ch]: Constify the color argument
for the ClutterLabel ctor. (#604)
Matthew Allum [Sun, 18 Nov 2007 23:24:55 +0000 (23:24 +0000)]
2007-11-18 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-actor.c:
* clutter/clutter-actor.h:
* clutter/clutter-group.c:
* clutter/clutter-main.c:
* clutter/clutter-stage.c:
* tests/test-events.c:
Parent Actors no longer need to be set reactive for reactive
children to get events. Also makes groups now pickable.
(#597, #423)
* clutter/clutter-texture.c:
Handle case when 1x1 tiled texture is created,
falling 'back' to being non tiled. (#596)
* clutter/eglx/clutter-backend-egl.c:
Call EglTerminate on backend shutdown.
Emmanuele Bassi [Sun, 18 Nov 2007 23:14:30 +0000 (23:14 +0000)]
2007-11-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.pc.in: Bump up glib-2.0 dependency.
Emmanuele Bassi [Sun, 18 Nov 2007 15:41:47 +0000 (15:41 +0000)]
2007-11-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-model.c: Add gtk-doc section for
ClutterModelIter
* clutter/clutter-script.h: Fix argument name.
* clutter/x11/clutter-x11.h:
* clutter/x11/clutter-event-x11.c:
* clutter/x11/clutter-backend-x11.c: Document functions and
types.
Emmanuele Bassi [Sun, 18 Nov 2007 15:36:04 +0000 (15:36 +0000)]
2007-11-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Update exported symbols.
* clutter/clutter-actor.[ch]: Remove clutter_actor_rotate_*
and clutter_actor_get_rx* and provide a simpler rotation API:
clutter_actor_set_rotation() and clutter_actor_get_rotation().
* clutter/clutter-deprecated.h: Deprecate the old rotation API.
* clutter/clutter-behaviour-bspline.c:
* clutter/clutter-behaviour-rotate.c:
* clutter/clutter-effect.c: Update internal usage of the
rotation API.
* tests/test-project.c: Ditto as above.
Emmanuele Bassi [Sat, 17 Nov 2007 18:11:14 +0000 (18:11 +0000)]
2007-11-17 Emmanuele Bassi <ebassi@openedhand.com>
Optimise Atoms usage in the X11 and X11-based backends.
* clutter/x11/clutter-backend-x11.c:
Emmanuele Bassi [Sat, 17 Nov 2007 17:08:31 +0000 (17:08 +0000)]
Don't forget to commit the README
Emmanuele Bassi [Sat, 17 Nov 2007 17:07:35 +0000 (17:07 +0000)]
2007-11-17 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Depend on GLib >= 2.14 because of ClutterModel
usage of GSequence.
Øyvind Kolås [Fri, 16 Nov 2007 13:41:07 +0000 (13:41 +0000)]
* clutter/clutter-main.c: (emit_event): renamed from deliver_event,
(emit_pointer_event): utility function to emit pointer event signals
(which takes pointer grab into account).
(emit_keyboard_event): utility function to emit keyboard event signals
(which takes keyboard grab into account).
(clutter_do_event): use the above utility functions, also reindented
the source.
Øyvind Kolås [Fri, 16 Nov 2007 13:40:43 +0000 (13:40 +0000)]
* tests/test-grab.c: (main): fix use of clutter_actor_set_reactive
Emmanuele Bassi [Thu, 15 Nov 2007 18:04:42 +0000 (18:04 +0000)]
Fix test usage for set_reactive()
Øyvind Kolås [Thu, 15 Nov 2007 18:00:24 +0000 (18:00 +0000)]
* clutter/clutter-main.[ch]: added clutter_grab_keyboard,
clutter_ungrab_keyboard and clutter_get_keyboard_grab, in
clutter_do_event deliver keyboard related events only to the
actor with the keyboard grab if a grab exists.
* clutter/clutter-private.h: added keyboard_grab_actor to context.
* tests/test-grab.c: added testing for testing the keyboard grab.
Emmanuele Bassi [Thu, 15 Nov 2007 17:38:40 +0000 (17:38 +0000)]
2007-11-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c:
(clutter_texture_request_coords), (clutter_texture_class_init),
(clutter_texture_init): Unset :sync-size if explicitly setting
the texture size. (#616)
Emmanuele Bassi [Thu, 15 Nov 2007 17:35:47 +0000 (17:35 +0000)]
2007-11-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.[ch]: Massive API clean-ups. Initial
fixes for bugs #614 and #628.
* clutter/clutter-main.c:
* clutter/clutter-stage.c: Update internal usage of the actor
API.
* tests/test-events.c: Update test suite.
Øyvind Kolås [Thu, 15 Nov 2007 17:34:49 +0000 (17:34 +0000)]
fixing commited conflict due to interrupted commit
Øyvind Kolås [Thu, 15 Nov 2007 17:32:09 +0000 (17:32 +0000)]
* clutter/clutter-main.c: (generate_enter_leave_events),
(clutter_do_event): moved the generation of enter/leave events
to a utility function.
Øyvind Kolås [Thu, 15 Nov 2007 17:30:30 +0000 (17:30 +0000)]
* clutter/clutter-main.c: (generate_enter_leave_events),
(clutter_do_event): moved the generation of enter/leave events
to a utility function.
Neil J. Patel [Thu, 15 Nov 2007 17:10:12 +0000 (17:10 +0000)]
2007-11-15 Neil J. Patel <njp@o-hand.com>
* clutter/clutter-model.c:
Added some more examples to the documentation, plus explained how the
iters work internally.
Øyvind Kolås [Thu, 15 Nov 2007 17:08:48 +0000 (17:08 +0000)]
* clutter/clutter-main.[ch]: added clutter_grab_pointer,
clutter_ungrab_pointer and clutter_get_pointer_grab, in
clutter_do_event deliver pointer related events only to the
actor with the pointer grab if a grab exists.
* clutter/clutter-private.h: added pointer_grab_actor to context.
* tests/Makefile.am:
* tests/test-grab.c: added test for testing the pointer grab.
Emmanuele Bassi [Thu, 15 Nov 2007 17:03:55 +0000 (17:03 +0000)]
2007-11-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.[ch]: Add ClutterTimeline:direction
property, defining the direction (forward or backward) of the
timeline.
* tests/test-timeline.c: Test the direction property.
* clutter.symbols: Update exported symbols
Emmanuele Bassi [Thu, 15 Nov 2007 15:38:04 +0000 (15:38 +0000)]
2007-11-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-effect.h:
* clutter/clutter-effect.c:
(clutter_effect_template_new_for_duration): Add a simple constructor
for implicitly creating a ClutterTimeline with a given duration.
Emmanuele Bassi [Thu, 15 Nov 2007 15:24:43 +0000 (15:24 +0000)]
2007-11-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter.symbols: Update with the new public symbols
* clutter/clutter-script.h:
* clutter/clutter-script-private.h:
* clutter/clutter-script.c:
(parse_signals), (json_object_end),
(signal_info_free), (object_info_free): Parse the "signals"
member for GObjects.
(clutter_script_connect_signals),
(clutter_script_connect_signals_full): Add new API for autoconnecting
signal handlers using the UI definition files.
* tests/test-script.c:
* tests/test-script.json: Test signal autoconnection.
Matthew Allum [Thu, 15 Nov 2007 15:18:07 +0000 (15:18 +0000)]
fix foobar of last commit in source rather than root dir
Matthew Allum [Thu, 15 Nov 2007 14:45:27 +0000 (14:45 +0000)]
2007-11-15 Matthew Allum <mallum@openedhand.com>
* clutter/Makefile.am:
* clutter/eglx/Makefile.am:
* clutter/eglx/clutter-backend-egl.c:
* clutter/eglx/clutter-backend-egl.h:
* clutter/eglx/clutter-eglx.h:
* clutter/eglx/clutter-event-egl.c:
* clutter/eglx/clutter-stage-egl.c:
* clutter/eglx/clutter-stage-egl.h:
* clutter/glx/Makefile.am:
* clutter/glx/clutter-backend-glx.c:
* clutter/glx/clutter-backend-glx.h:
* clutter/glx/clutter-event-glx.c:
* clutter/glx/clutter-glx.h:
* clutter/glx/clutter-stage-glx.c:
* clutter/glx/clutter-stage-glx.h:
* clutter/x11/Makefile.am:
* clutter/x11/clutter-backend-x11-private.h:
* clutter/x11/clutter-backend-x11.c:
* clutter/x11/clutter-backend-x11.h:
* clutter/x11/clutter-event-x11.c:
* clutter/x11/clutter-stage-x11.c:
* clutter/x11/clutter-stage-x11.h:
* clutter/x11/clutter-x11.h:
Create a new X11 backend class of which EGL and GLX 'real' backends
then subclass. Effectively shares all X11 code between both backends
avoids code duplication and brings many missing features to EGL X
backend. Requires some cleanup and testing. (#518)
* clutter/cogl/gles/cogl.c: (cogl_color):
Add define to use color4ub only if configure finds it.
If not fall back to old code.
* configure.ac:
Drop support for vincent checks.
Drop sdles backend.
Specifically check for color4ub call.
Neil J. Patel [Thu, 15 Nov 2007 10:04:49 +0000 (10:04 +0000)]
2007-11-15 Neil J. Patel <njp@o-hand.com>
* clutter-sections.txt:
Fix typo.
Neil J. Patel [Thu, 15 Nov 2007 10:02:25 +0000 (10:02 +0000)]
2007-11-15 Neil J. Patel <njp@o-hand.com>
* clutter/Makefile.am:
* clutter/clutter-model.c:
* clutter/clutter-model.h:
* clutter/clutter.h:
* tests/Makefile.am:
* tests/test-model.c:
Merged ClutterModel, which closes #443.
Emmanuele Bassi [Wed, 14 Nov 2007 13:36:31 +0000 (13:36 +0000)]
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-clone-texture.c (set_parent_texture): Hide the
clone texture only if it was visible, and show it again if we
are adding a visible texture.
* tests/test-script.json: Test the CloneTexture actor.
Emmanuele Bassi [Wed, 14 Nov 2007 11:43:18 +0000 (11:43 +0000)]
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.[ch]: Rename clutter_actor_get_id() to
clutter_actor_get_gid().
(clutter_actor_set_parent): Use GUINT_TO_POINTER().
* clutter/clutter-deprecated.h: Add a replacement warning for
clutter_actor_get_id().
* clutter/clutter-texture.c (texture_upload_data): Use
clutter_actor_get_gid(), and don't leak the filename string.
Emmanuele Bassi [Wed, 14 Nov 2007 11:32:24 +0000 (11:32 +0000)]
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-scriptable.[ch]: Rename ::set_name and ::get_name
to ::set_id and ::get_id, to avoid potential confusion with the
ClutterActor:name property.
* clutter/clutter-script.h:
* clutter/clutter-script.c (clutter_script_construct_object): Use
clutter_scriptable_set_id().
(clutter_get_script_id): Add a public function to retrieve the ID
used in the UI definition files from an object.
* clutter/clutter-actor.c: Do not set the name of the actor with
the ID set in the UI definition files.
* tests/test-script.c: Test clutter_get_script_id().
* clutter.symbols: Update with the new symbols.
Emmanuele Bassi [Wed, 14 Nov 2007 11:00:01 +0000 (11:00 +0000)]
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/cutter-deprecated.h: Don't let everyone know from where
we have stolen^Wtaken inspiration for the deprecation warnings.