profile/ivi/clutter.git
16 years ago2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
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.

16 years ago2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
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.

16 years ago2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
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.

16 years ago* clutter/clutter-behaviour-bspline.[ch]:
Øyvind Kolås [Tue, 13 Nov 2007 14:12:51 +0000 (14:12 +0000)]
* clutter/clutter-behaviour-bspline.[ch]:
Replaced clutter_behaviour_bspline_append with
clutter_behaviour_bspline_append_knots. Fixes bug #582.
* clutter/clutter-deprecated.h: added deprecation macro reflecting the
API change.

16 years ago* clutter/Makefile.am:
Øyvind Kolås [Tue, 13 Nov 2007 14:06:19 +0000 (14:06 +0000)]
* clutter/Makefile.am:
* clutter/clutter.h: include clutter-deprecated.h
* clutter/clutter-deprecated.h: added file containing macros that
provides more meaningful errors when compiling clutter using code that
uses deprecated functions.

16 years agoRenamed all properties of behaviours (and related
Øyvind Kolås [Tue, 13 Nov 2007 13:21:56 +0000 (13:21 +0000)]
Renamed all properties of behaviours (and related
functions/variables/parameters)
to match the pattern something-start, something-end. Fixes bug #577.
* clutter/clutter-behaviour-depth.c:
* clutter/clutter-behaviour-depth.h:
* clutter/clutter-behaviour-ellipse.c:
* clutter/clutter-behaviour-ellipse.h:
* clutter/clutter-behaviour-path.c:
* clutter/clutter-behaviour-rotate.c:
* clutter/clutter-behaviour-rotate.h:
* clutter/clutter-behaviour-scale.c:
* clutter/clutter-behaviour-scale.h:
* clutter/clutter-effect.c:
* clutter/clutter-effect.h:
* clutter/clutter-script.c:
* tests/test-depth.c:
* tests/test-script.c:

16 years ago* clutter/clutter-event.h: made ClutterEventAny have a source field,
Øyvind Kolås [Mon, 12 Nov 2007 19:12:02 +0000 (19:12 +0000)]
* clutter/clutter-event.h: made ClutterEventAny have a source field,
rearanged other structs to have source in the same position.
* clutter/clutter-event.c: (clutter_event_get_source): modified to use
the any event.
(clutter_event_free): removed unused variable.
* clutter/clutter-main.c: (deliver_event), (clutter_do_event): reduced
amount of code. As well as deliver button-release events to the stage.

16 years ago2007-11-08 Rob Bradford <rob@openedhand.com>
Robert Bradford [Thu, 8 Nov 2007 21:36:14 +0000 (21:36 +0000)]
2007-11-08  Rob Bradford  <rob@openedhand.com>

* clutter/glx/clutter-glx.h:
Include <X11/Xutil.h> needed for the definition of XVisualInfo.

16 years ago2007-11-08 Rob Bradford <rob@openedhand.com>
Robert Bradford [Thu, 8 Nov 2007 21:23:53 +0000 (21:23 +0000)]
2007-11-08  Rob Bradford  <rob@openedhand.com>

* clutter/cogl/gles/cogl.c: (cogl_color):
Switch over to using glColor4ub in the GLES backend. It's available in
the header file but missing in the reference manual.

16 years ago2007-11-07 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 7 Nov 2007 16:40:30 +0000 (16:40 +0000)]
2007-11-07  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.[ch]: Fix the declaration of the
class handlers for the ::captured-event, ::enter-event and
::leave-event signals; the function signatures were missing
the return value the signals marshallers were expecting, and
their names weren't respecting the convention for event-related
signals.

16 years ago2007-11-06 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Tue, 6 Nov 2007 15:46:23 +0000 (15:46 +0000)]
2007-11-06 Tomas Frydrych <tf@o-hand.com>

        * clutter/clutter-fixed.h:
Added CLUTTER_SQRTI_ARG_MAX, CLUTTER_SQRTI_5_PERCENT,
CLUTTER_SQRTI_10_PERCENT expressing clutter_sqrti limits.
Stripped trailing whitespace.

        * clutter/clutter-fixed.c:
(clutter_sqrti):
Updated documentation, stripped trailing whitespace.

        * clutter/clutter-behaviour-path.c:
(node_distance):
Use clib sqrt if clutter_sqrti() precission would be worse than
10%.
Stripped trailing whitespace.

16 years ago2007-11-06 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 6 Nov 2007 14:45:11 +0000 (14:45 +0000)]
2007-11-06  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-layout.h: Add commodity macros to test for
a specific layout flag in one line.

16 years ago2007-11-06 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 6 Nov 2007 14:36:28 +0000 (14:36 +0000)]
2007-11-06  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-box.c (clutter_box_dispose): Call unparent()
on the children, instead of destroy(), to avoid a double free
and a crash when destroying a ClutterBox.

16 years ago2007-11-06 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 6 Nov 2007 14:35:22 +0000 (14:35 +0000)]
2007-11-06  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-label.c: Break the references in ::dispose,
and free the resources in ::finalize.

16 years ago* clutter/clutter-container.[ch]: removed find_child_by_id method
Øyvind Kolås [Mon, 5 Nov 2007 17:12:11 +0000 (17:12 +0000)]
* clutter/clutter-container.[ch]: removed find_child_by_id method
from interface (and all implementations of it) since this
functionality is now implemented using a global hash.
* clutter/clutter-box.c:
* clutter/clutter-group.c:

16 years ago2007-11-01 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 1 Nov 2007 17:53:10 +0000 (17:53 +0000)]
2007-11-01  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c: Do not keep ownership of the
pixbufs we load.

16 years ago* clutter/clutter-main.c: (_clutter_do_pick): disable dithering
Øyvind Kolås [Wed, 31 Oct 2007 15:38:18 +0000 (15:38 +0000)]
* clutter/clutter-main.c: (_clutter_do_pick): disable dithering
when painting in pick mode.

16 years ago2007-10-31 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Wed, 31 Oct 2007 14:50:34 +0000 (14:50 +0000)]
2007-10-31  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-score.c:
        Various minor improvements to ClutterScore.

16 years ago2007-10-30 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 30 Oct 2007 22:12:01 +0000 (22:12 +0000)]
2007-10-30  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-layout.c: Fix documentation, with regards to
the containers handling of the children implementing the
ClutterLayout interface.

16 years ago2007-10-29 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 29 Oct 2007 16:50:34 +0000 (16:50 +0000)]
2007-10-29  Emmanuele Bassi  <ebassi@openedhand.com>

* configure.ac:
* clutter/cogl/gl/cogl-defines.h.in: The OS X backend has a funny
OpenGL header location, so it basically did break every application
including clutter/cogl.h because the GL header inclusion depended
on symbols defined into Clutter's config.h. Now, we define the
GL header into the configure template and use it to create the
cogl-defines.h file cogl.h includes.

16 years ago2007-10-29 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 29 Oct 2007 16:45:25 +0000 (16:45 +0000)]
2007-10-29  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/json/json-parser.c: Enable parsing of negative numbers;
GScanner splits negative numbers into two tokens, so we need to
special case them.

16 years ago2007-10-29 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 29 Oct 2007 15:57:59 +0000 (15:57 +0000)]
2007-10-29  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c: Add the :filename and :filename-set
properties, to retrieve the path of the currently parsed file (if
:filename-set is TRUE) from the ClutterScriptable implementations.

16 years ago2007-10-28 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Sun, 28 Oct 2007 22:01:25 +0000 (22:01 +0000)]
2007-10-28  Matthew Allum  <mallum@openedhand.com>

        * clutter-animation.sgml:
        Fix missing func param (#583)

16 years ago2007-10-28 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Sun, 28 Oct 2007 21:57:04 +0000 (21:57 +0000)]
2007-10-28  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-effect.c:
        Small doc fix (#584)

16 years agoadd missing fixed bug nums to ChangeLog
Matthew Allum [Sat, 27 Oct 2007 22:51:35 +0000 (22:51 +0000)]
add missing fixed bug nums to ChangeLog

16 years ago2007-10-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Sat, 27 Oct 2007 19:49:39 +0000 (19:49 +0000)]
2007-10-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/json/json-parser.c:
(json_scanner_msg_handler): Set the GError to be returned by
the parsing functions into the GScanner error message handler.

(json_parser_object): Return the symbol token in case we have
a parse error after the member name.

(json_parser_load_from_data): Propagate the error set in the
message handler, if any.

* clutter/json/json-node.c (json_node_free): Unref the objects
only if are set, to avoid a couple of needless criticals we
get on error.

* tests/test-script.json: More properties.

16 years ago2007-10-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Sat, 27 Oct 2007 19:08:59 +0000 (19:08 +0000)]
2007-10-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.[ch]: Slight API change in the
clutter_script_get_objects() function: now it takes
object name/object return location pairs and returns the
number of objects found and returned.

* tests/test-script.c: Exercise the clutter_script_get_objects()
function.

16 years ago2007-10-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Sat, 27 Oct 2007 12:26:12 +0000 (12:26 +0000)]
2007-10-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-rectangle.c (clutter_rectangle_paint): Use
CGL_ENABLE_BLEND flag instead of CGL_BLEND value. (#580,
Gwenole Beauchesne)

16 years ago2007-10-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Sat, 27 Oct 2007 12:14:18 +0000 (12:14 +0000)]
2007-10-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-color.c (clutter_color_to_string): Update the
documentation for the format of the returned string, and remove
the note: now clutter_color_parse() can parse the string this
function returns.

16 years ago2007-10-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Sat, 27 Oct 2007 12:01:51 +0000 (12:01 +0000)]
2007-10-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/pango/pangoclutter-render.c: Last usage of guint
replaced with COGLuint. (Tommi Komulainen)

16 years ago2007-10-26 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Fri, 26 Oct 2007 22:06:45 +0000 (22:06 +0000)]
2007-10-26  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-texture.c:
        * clutter/cogl/cogl.h:
        * clutter/cogl/gl/cogl-defines.h:
        * clutter/cogl/gles/cogl-defines.h:
        * clutter/cogl/gl/cogl.c:
        * clutter/cogl/gles/cogl.c:
        Switch from use of guint to COGLuint. Avoids problems when
        guint != GLuint on some platforms, i.e OSX.
        (Tommi Komulainen, #526)

        * clutter/Makefile.am:
        * clutter/osx/Makefile.am:
        * clutter/osx/clutter-backend-osx.c:
        * clutter/osx/clutter-backend-osx.h:
        * clutter/osx/clutter-event-osx.c:
        * clutter/osx/clutter-osx.h:
        * clutter/osx/clutter-stage-osx.c:
        * clutter/osx/clutter-stage-osx.h:
        * configure.ac:
        Add initial Cocoa/OSX Backend (by Tommi Komulainen, see #526)

16 years ago2007-10-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 26 Oct 2007 15:56:17 +0000 (15:56 +0000)]
2007-10-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-entry.c: Add a :x-align property for aligning
the text in the entry, in case the actor is wider than the
text it shows.

16 years ago2007-10-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 26 Oct 2007 15:47:39 +0000 (15:47 +0000)]
2007-10-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-main.c: Add a --clutter-default-fps run-time
switch and CLUTTER_DEFAULT_FPS environment variable support for
setting the default frame-rate at run-time.

16 years ago2007-10-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 26 Oct 2007 09:05:06 +0000 (09:05 +0000)]
2007-10-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.h:
* clutter/clutter-script.c: Add a ::get_type_from_name() virtual
function for bindings to override. The current implementation
calls g_type_from_name() and our lazy class resolver.

* clutter.symbols: Update.

* doc/reference/clutter-sections.txt: Update.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 20:06:48 +0000 (20:06 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-behaviour-path.c: Reverse the list of
parsed knots, to preserve the real ordering after prepending
them (thanks to Øyvind for spotting this).

* clutter/clutter-behaviour-bspline.c: Ditto as above.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 15:14:06 +0000 (15:14 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script-parser.c: Unset the GValue when
getting a ClutterUnit from a JSON node.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 15:05:19 +0000 (15:05 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-behaviour-bspline.c: Implement the
ClutterScriptableIface to parse the custom "knots" property.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:48:12 +0000 (14:48 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* Makefile.am: Ignore clutter-json.h header.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:46:59 +0000 (14:46 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter.types:
* clutter-sections.txt:
* clutter-docs.sgml: Add new ClutterScriptable API.

16 years agoAdd new symbols
Emmanuele Bassi [Thu, 25 Oct 2007 14:46:22 +0000 (14:46 +0000)]
Add new symbols

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:46:02 +0000 (14:46 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* tests/test-script.c:
* tests/test-script.json: Rejig the test case and add a
path behaviour to test the knot parsing code.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:43:55 +0000 (14:43 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/cogl/cogl.h: Do not include <clutter/clutter.h>.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:42:15 +0000 (14:42 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-behaviour-path.c: Implement the
ClutterScriptableIface to parse the custom "knots" property.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:37:41 +0000 (14:37 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-texture.c (clutter_texture_set_property): Do
not try to set NULL pixbufs.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:36:37 +0000 (14:36 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c: Implement part of the ClutterScriptable
interface, using the ClutterActor API to set and get the name
of an actor.

(clutter_geometry_copy), (clutter_geometry_free): Use
the slice allocator to avoid fragmentation when setting
properties and emitting signals (that is: when packing
boxed types into GValues).

(clutter_actor_box_copy), (clutter_actor_box_free),
(clutter_vertex_copy), (clutter_vertex_free): Ditto.

* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
(clutter_actor_push_transform_child),
(clutter_actor_pop_transfomr_child): Simple wrappers around
COGL API, which avoid including clutter/cogl.h when writing
container actors outside Clutter.

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:34:54 +0000 (14:34 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/Makefile.am:
* clutter/clutter.h:
* clutter/clutter-scriptable.[ch]: Add the ClutterScriptable
interface; by implementing this interface, a class can
override the UI definition parsing and transform complex data
types into GObject properties, or allow custom properties.

* clutter/clutter-script.c:
* clutter/clutter-script-parser.c:
* clutter/clutter-script-private.h: Rearrange the code and
use the ClutterScriptable interface to parse and build the
custom properties. This cleans up the code and also it makes
it more reliable (the complex type parsing is now done using
the target type and not just the name of the property).

16 years ago2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 25 Oct 2007 14:32:29 +0000 (14:32 +0000)]
2007-10-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-json.h: Header for including the JSON
parsing and data types.

* clutter/json/json-types.h: Add JSON_NODE_VALUE_TYPE() macro.

* clutter/json/Makefile.am: Install the JSON headers into a
private location. This might change in the future, and might
also cause collisions if you're using JSON-GLib and Clutter
at the same time, so be warned.

16 years agoCheck width in ClutterLabel::request_coords
Emmanuele Bassi [Mon, 22 Oct 2007 15:47:07 +0000 (15:47 +0000)]
Check width in ClutterLabel::request_coords

If we get a size requisition, and we have ellipsization active,
check if we are getting less space than what the layout needs
and recompute the width.

16 years agoChange the clutter_color_from_string() format
Emmanuele Bassi [Mon, 22 Oct 2007 15:46:56 +0000 (15:46 +0000)]
Change the clutter_color_from_string() format

The format should be "%02x%02x%02x%02x" because we use guint8 for each
component, and not guint16. The string before was completely broken.

16 years agoUpdate Clutter symbols
Emmanuele Bassi [Fri, 19 Oct 2007 12:44:59 +0000 (12:44 +0000)]
Update Clutter symbols

16 years ago2007-10-19 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 19 Oct 2007 10:15:57 +0000 (10:15 +0000)]
2007-10-19  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-entry.c (clutter_entry_paint): Fixed off by
one error. (#566, Gwenole Beauchesne)

16 years ago* clutter/clutter-timeline.c: (clutter_timeline_set_duration):
Øyvind Kolås [Thu, 18 Oct 2007 13:47:21 +0000 (13:47 +0000)]
* clutter/clutter-timeline.c: (clutter_timeline_set_duration):
rearranged arithemetic to allow specifying duration with sub second
precision (also enables durations smaller than one second).

16 years agoFix ChangeLog
Emmanuele Bassi [Thu, 18 Oct 2007 12:31:53 +0000 (12:31 +0000)]
Fix ChangeLog

16 years ago2007-10-18 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 18 Oct 2007 12:31:07 +0000 (12:31 +0000)]
2007-10-18  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script-private.h:
* clutter/clutter-script.h:
* clutter/clutter-script.c: Allow id-less objects: as long
as they have a "type" member, a unique id will be provided.

(json_object_end): Add merge id to the object information
structure.

(apply_behaviours), (add_children): Keep the unresolved
objects around.

(construct_stage), (clutter_script_construct_object): If an
object has unresolved children or behaviours try resolving
them when we ask for it.

(json_parse_end), (clutter_script_ensure_objects): Ensure
that the objects are fully constructed as best as we can when
finished parsing.

(object_info_free), (remove_by_merge_id):
(clutter_script_unmerge_objects): Remove objects under the
same merge id returned by the loading functions. (Fixes
bug #558)

16 years ago2007-10-18 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Wed, 17 Oct 2007 23:03:38 +0000 (23:03 +0000)]
2007-10-18  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-score.c:
        * clutter/clutter-score.h:
        * tests/test-score.c:
        Implement more ClutterScore functionality.

16 years ago2007-10-17 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 17 Oct 2007 16:43:46 +0000 (16:43 +0000)]
2007-10-17  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c:
(clutter_actor_set_property), (clutter_actor_get_property),
(clutter_actor_class_init): Add the :reactive property, to
control reactiveness using the UI definition files.

(clutter_actor_reparent): Do not assume the parent is a
ClutterContainer, and call the container API only if needed.

(clutter_actor_destroy): Remove from the parent if needed,
just like the documentation says.

16 years agoUpdate TODO
Emmanuele Bassi [Wed, 17 Oct 2007 10:41:42 +0000 (10:41 +0000)]
Update TODO

16 years ago* clutter/pango/pangoclutter-render.c: (tc_get): Provide for blank
Øyvind Kolås [Tue, 16 Oct 2007 19:14:52 +0000 (19:14 +0000)]
* clutter/pango/pangoclutter-render.c: (tc_get): Provide for blank
rows/columns of pixels between adjecant glyphs in the texture cache to
avoid bilinear interpolation spillage at edges of glyphs.

16 years ago* clutter/clutter-main.c: (clutter_do_event): allow motion events
Øyvind Kolås [Tue, 16 Oct 2007 16:35:02 +0000 (16:35 +0000)]
* clutter/clutter-main.c: (clutter_do_event): allow motion events
only delivered to stage to be chaugt in the capture phase as well
as the bubbling phase.

16 years ago2007-10-16 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 16 Oct 2007 14:40:00 +0000 (14:40 +0000)]
2007-10-16  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/json/json-object.c: Automatically transform every
delimiter into an underscore.

* clutter/clutter-script.c: Implement the "parent_texture"
property translation for ClutterCloneTextures, using the
passed id of the parent texture.

16 years ago2007-10-16 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 16 Oct 2007 13:41:34 +0000 (13:41 +0000)]
2007-10-16  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-timeline.[ch]: Added ClutterTimeline:duration,
a property for setting the duration of a timeline in milliseconds.
The property comes with accessors and a new constructor. The
frame rate used is the default value.

* clutter/clutter-private.h:
* clutter/clutter-main.[ch]: Add clutter_get_default_frame_rate()
and clutter_set_default_frame_rate(); these two functions control
the default frame rate to be used when creating timelines. Currently
is set to 60 frames-per-second.

16 years ago2007-10-16 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Tue, 16 Oct 2007 10:18:36 +0000 (10:18 +0000)]
2007-10-16  Tomas Frydrych  <tf@o-hand.com>

        * build/msvc_2k5:
        Added MSVC project files.

16 years ago2007-10-16 Emmanuele bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 16 Oct 2007 09:39:15 +0000 (09:39 +0000)]
2007-10-16  Emmanuele bassi  <ebassi@openedhand.com>

* clutter/clutter-color.c: Copy the alpha when shading.

16 years ago2007-10-16 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Tue, 16 Oct 2007 08:34:16 +0000 (08:34 +0000)]
2007-10-16  Tomas Frydrych  <tf@o-hand.com>

* clutter.symbols:
Added a bunch of missing symbols.

* clutter/clutter-script.c:
* json/json-node.c:
Use g_slice_new0 instead of g_slice_new to avoid passing garbage to functions.

* tests/test-threads.c:
Replaced non-portable sleep() with g_usleep().

16 years ago2007-10-15 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Mon, 15 Oct 2007 19:19:42 +0000 (19:19 +0000)]
2007-10-15  Tomas Frydrych  <tf@o-hand.com>

* clutter/cogl/gl/cogl-defines.h:
* clutter/cogl/gl/cogl.c:
Fixed up GL include for windows.

16 years ago2007-10-15 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 15 Oct 2007 16:50:59 +0000 (16:50 +0000)]
2007-10-15  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        More events documentation.

        * clutter/clutter-event.c:
        * clutter/clutter-event.h:
        Add synthetic flag and make put_event use it
        (via modded patch from pippin)

        * clutter/clutter-main.c: (clutter_do_event):
        dont use put event anymore when pushing enter/leave events.

16 years ago2007-10-15 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 15 Oct 2007 09:09:04 +0000 (09:09 +0000)]
2007-10-15  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/pango/Makefile.am: Compile with the debug flags, if
set.

16 years ago2007-10-12 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 12 Oct 2007 17:36:38 +0000 (17:36 +0000)]
2007-10-12  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter.symbols: Remove non-public symbols.

16 years ago2007-10-12 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Fri, 12 Oct 2007 15:16:22 +0000 (15:16 +0000)]
2007-10-12  Tomas Frydrych  <tf@o-hand.com>

* clutter.symbols:
A list of public symbols, one per line; semi-autogenerated, so
might not be complete -- PLEASE when adding new public APIs, add
the function name to this file.

16 years ago2007-10-12 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 12 Oct 2007 12:42:54 +0000 (12:42 +0000)]
2007-10-12  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c: Add a :depth property, so we can
set the initial depth of an actor inside the UI definition
files.

16 years ago2007-10-12 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Fri, 12 Oct 2007 10:02:28 +0000 (10:02 +0000)]
2007-10-12  Tomas Frydrych  <tf@o-hand.com>

* tests/test-actors.c:
When using MSVC, define _USE_MATH_DEFINES before including
math.h, otherwise constants like M_PI will not be defined.

16 years ago2007-10-12 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 12 Oct 2007 09:43:27 +0000 (09:43 +0000)]
2007-10-12  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c (construct_timline),
(parse_member_to_property): Transfer ownership of the
implicit timelines to the behaviour, so that they get
unreferenced when the behaviour is destroyed.

(parse_member_to_property): Reverse the list of children
and behaviours.

16 years ago2007-10-12 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Fri, 12 Oct 2007 09:39:41 +0000 (09:39 +0000)]
2007-10-12  Tomas Frydrych  <tf@o-hand.com>

Portability fixes:

* clutter/clutter-private.h:
Bracket #include "unistd.h" with #ifdef HAVE_UNISTD_H

* clutter/clutter-fixed.c:
Use "", not <> for inclusion of local files.

(clutter_sqrtx): forward declare local variables.

* clutter/clutter-debug.h:
Added non-gcc (c99) implementation of variadic debug macros for
when not compiling with gcc.

* clutter/pango/pangoclutter-render.c:
Fixed some strange uses of CLUTTER_NOTE() + stripped trailing
whitespace.

16 years ago2007-10-12 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Fri, 12 Oct 2007 08:17:00 +0000 (08:17 +0000)]
2007-10-12  Tomas Frydrych  <tf@o-hand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-backend.c:
        * clutter/clutter-behaviour-depth.c:
        * clutter/clutter-box.c:
        * clutter/clutter-clone-texture.c:
        * clutter/clutter-container.c:
        * clutter/clutter-entry.c:
        * clutter/clutter-feature.c:
        * clutter/clutter-fixed.c:
        * clutter/clutter-group.c:
        * clutter/clutter-hbox.c:
        * clutter/clutter-label.c:
        * clutter/clutter-layout.c:
        * clutter/clutter-media.c:
        * clutter/clutter-rectangle.c:
        * clutter/clutter-score.c:
        * clutter/clutter-script.c:
        * clutter/clutter-stage.c:
        * clutter/clutter-texture.c:
        * clutter/clutter-timeline.c:
        * clutter/clutter-timeout-pool.c:
        * clutter/clutter-vbox.c:
        * clutter/cogl/gl/cogl.c:
        * clutter/cogl/gles/cogl.c:
        * clutter/eglnative/clutter-backend-egl.c:
        * clutter/eglnative/clutter-event-egl.c:
        * clutter/eglnative/clutter-stage-egl.c:
        * clutter/eglx/clutter-backend-egl.c:
        * clutter/eglx/clutter-event-egl.c:
        * clutter/eglx/clutter-stage-egl.c:
        * clutter/glx/clutter-event-glx.c:
        * clutter/json/json-array.c:
        * clutter/json/json-generator.c:
        * clutter/json/json-node.c:
        * clutter/json/json-object.c:
        * clutter/json/json-parser.c:
        * clutter/sdl/clutter-backend-sdl.c:
        * clutter/sdl/clutter-event-sdl.c:
        * clutter/sdl/clutter-stage-sdl.c:

Fixedup config.h inclusion (must always be bracketed with #ifdef
HAVE_CONFIG_H).

16 years ago2007-10-11 Tomas Frydrych <tf@o-hand.com>
Tomas Frydrych [Thu, 11 Oct 2007 15:07:36 +0000 (15:07 +0000)]
2007-10-11  Tomas Frydrych  <tf@o-hand.com>

* clutter/clutter-entry.c:
Avoid using C++ reserverd words to name variables.

16 years agoImprove the quality of text when the scale it is shown at screen is
Øyvind Kolås [Thu, 11 Oct 2007 12:18:01 +0000 (12:18 +0000)]
Improve the quality of text when the scale it is shown at screen is
smaller than the original, seems to work well down to about a scale
of 50%.
* clutter/pango/pangoclutter-fontmap.c:
(pango_clutter_font_map_default_substitute): turn off hinting.
* clutter/pango/pangoclutter-render.c: request linear filtering
instead of nearest neighbour when scaling down.
* tests/test-text.c: replaced test with a a test that renders a sample
grid with various pixel sizes and scales for visual inspection of
text rendering quality.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 16:02:54 +0000 (16:02 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/glx/clutter-backend-glx.c: Fix documentation of the
filter function API.

* clutter/clutter-score.c:
* clutter/clutter-effect.c:
* clutter/clutter-actor.c: Documentation fixes.

* clutter/clutter-actor.h: Automatically typecast to ClutterActor
when setting/checking flags.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 16:00:41 +0000 (16:00 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter-sections.txt: Add new API and rearrange the subsections.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 14:51:25 +0000 (14:51 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c: Beautify the ClutterActor documentation.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 14:29:29 +0000 (14:29 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c: Remove the ::event-after signal:
three event layers to connect to seems a bit overkill.

(clutter_actor_event): Return FALSE, not TRUE by default,
as g_signal_emit() will change the return value if no
handlers are connected

* clutter/clutter-stage.c: Emit ::notify when we change
the fullscreen property.

* clutter/clutter-script.c: Add more documentation for the
definition format and keywords.

(translate_property): Collapse the G_TYPE_ENUM and G_TYPE_FLAGS
cases into one, to simplify the code.

* tests/test-script.c: Test enumeration conversion by using
a value different from the default.

16 years ago2007-10-10 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Wed, 10 Oct 2007 13:04:34 +0000 (13:04 +0000)]
2007-10-10  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        * clutter/clutter-event.c:
        * clutter/clutter-main.c:
        * tests/test-events.c:
        Add basic W3 DOM  event 'capture' like functionality.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 13:01:09 +0000 (13:01 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script-private.h:
* clutter/clutter-script.c: Parse flags like we parse enums.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 12:51:51 +0000 (12:51 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/json/json-types.h:
* clutter/json/json-array.c:
* clutter/json/json-object.c: Resync with the upstream copy
of JSON-GLib; add json_object_remove_member() and
json_array_remove_element() and fix the g_hash_table_get_keys()
replacement for GLib 2.12.

* clutter/clutter-script.c: Clean up the complex properties
parsing code.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 10:44:45 +0000 (10:44 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c (json_object_end): Add "type_func"
to the list of attributes we skip.

16 years ago2007-10-10 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 10 Oct 2007 10:42:19 +0000 (10:42 +0000)]
2007-10-10  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/json/json-parser.c: Use the commodity JsonNode API
and accept bare values as root nodes.

* clutter/clutter-script-private.h:
* clutter/clutter-script.c: Unreference the created objects
only if they are top-levels, like ClutterBehaviour and
ClutterTimelines. Actors have floating references, so we
just transfer ownership to their containers, and the stage
is owned by the backend. Add the "type_func" key to the
object definition, so the user can supply its own GType
function if the class name doesn't follow the GObject rules.
Document the ClutterScript public API.

16 years ago2007-10-10 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Tue, 9 Oct 2007 23:45:49 +0000 (23:45 +0000)]
2007-10-10  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        Add missing enter/leave event signals

        * clutter/clutter-main.c: (clutter_do_event):
        Set time in crossing events.
        Protect against do_pick() failing.

16 years ago2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 9 Oct 2007 20:04:23 +0000 (20:04 +0000)]
2007-10-09  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c (resolve_alpha_func): Fix the
ClutterAlphaFunc resolution function.

16 years ago2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 9 Oct 2007 16:44:44 +0000 (16:44 +0000)]
2007-10-09  Emmanuele Bassi  <ebassi@openedhand.com>

* tests/Makefile.am:
* tests/test-script.c:
* tests/test-script.json: Move part of the UI definition into
its own file and exercise clutter_script_load_from_file().

16 years ago2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 9 Oct 2007 16:21:04 +0000 (16:21 +0000)]
2007-10-09  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c (clutter_script_get_object): Construct
the requested object if it hasn't been already. This allows
referencing objects within the same snippet.

* tests/test-script.c: Declare a timeline and use it inside
multiple behaviours; apply multiple behaviours to various
actors, then retrieve the timeline to start it when the test
runs.

16 years ago2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 9 Oct 2007 15:11:01 +0000 (15:11 +0000)]
2007-10-09  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script-private.h:
* clutter/clutter-script.c: Allow applying behaviours directly
inside the UI definition data.

* tests/test-script.c: Test the "behaviours" member.

16 years ago2007-10-09 Rob Bradford <rob@openedhand.com>
Robert Bradford [Tue, 9 Oct 2007 13:56:29 +0000 (13:56 +0000)]
2007-10-09  Rob Bradford  <rob@openedhand.com>

* clutter/eglnative/clutter-backend-egl.c:
(clutter_backend_egl_dispose):
Call eglTerminate() on the display when the backend is disposed of.

* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_realize):
Don't use the createNativeWindow() call, it's not generic EGL.

16 years ago2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 9 Oct 2007 13:29:03 +0000 (13:29 +0000)]
2007-10-09  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script-private.h:
* clutter/clutter-script.h:
* clutter/clutter-script.c: Add licensing information to
the newly added files.

* clutter/clutter-script.c: Support creating behaviours with
ClutterScript. ClutterAlpha objects are implicit, but
timelines can be both explicit objects using their id or
implicit objects. Make the property resolution and translation
more robust. Support the pixbuf property.

* tests/test-script.c: Test the newly added features.

* docs/reference/clutter-docs.sgml:
* docs/reference/clutter-sections.txt: Add ClutterScript.

16 years ago2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 9 Oct 2007 13:24:52 +0000 (13:24 +0000)]
2007-10-09  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-fixed.h: Add deprecation guards around
CLUTTER_FIXED_INT().

16 years agoFix typo in GLib version check
Emmanuele Bassi [Tue, 9 Oct 2007 12:10:11 +0000 (12:10 +0000)]
Fix typo in GLib version check

16 years ago2007-10-08 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 8 Oct 2007 16:48:22 +0000 (16:48 +0000)]
2007-10-08  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c: Parse ClutterMargin and ClutterPadding
properties from arrays or integers (assume pixels).

16 years ago2007-10-08 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 8 Oct 2007 16:25:10 +0000 (16:25 +0000)]
2007-10-08  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script-private.h:
* clutter/clutter-script.c: Allow defining childrens for every
container actor inside the UI definition files.

16 years ago2007-10-08 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 8 Oct 2007 16:18:33 +0000 (16:18 +0000)]
2007-10-08  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        * clutter/clutter-private.h:
        * clutter/clutter-main.c:
        Add a hash to global clutter context mapping all parented actor
        id's to actors.
        Add clutter_get_actor_by_id() call.
        Convert picking machinery to use above.
        (performance/simpler composite actor creation)

        * clutter/clutter-stage.c: (clutter_stage_fullscreen),
        (clutter_stage_unfullscreen), (clutter_stage_event):
        Only set the fullscreen property on stage state fullscreen event(#545)
        Experimental as could be painful to implement on non X backends.

16 years ago2007-10-08 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 8 Oct 2007 15:18:31 +0000 (15:18 +0000)]
2007-10-08  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c (json_parse_end):
* clutter/json/json-object.c (json_object_get_members): Replace
the GLib 2.14 API with the equivalent code for GLib < 2.14.

* configure.ac: Revert the dependency bump.

16 years agoFix includes in ClutterScript
Emmanuele Bassi [Mon, 8 Oct 2007 15:04:13 +0000 (15:04 +0000)]
Fix includes in ClutterScript

16 years ago2007-10-08 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 8 Oct 2007 15:03:22 +0000 (15:03 +0000)]
2007-10-08  Emmanuele Bassi  <ebassi@openedhand.com>

Initial implementation of the UI definition files. (#424)

* clutter/json/Makefile.am:
* clutter/json/*.[ch]: In-tree copy of JSON-GLib, a GLib-based
JSON parser/generator library. We use it in-tree because we might
need to change the API. Ideally, we'd depend on it.

* clutter/clutter.h:
* clutter/clutter-script-private.h:
* clutter/clutter-script.[ch]: ClutterScript, the scenegraph
generator class. It parses JSON streams in form of buffers and
files and builds the scene.

* clutter/clutter-debug.h:
* clutter/clutter-main.c: Add a "script" debug flag

* clutter/Makefile.am: Build glue.

* tests/Makefile.am:
* tests/test-script.c: Add a test case for the ClutterScript.

* configure.ac: Depend on GLib 2.14, so we can use the
g_hash_table_get_key() and g_hash_table_get_values() functions
for the time being; we can probably reimplement those, but we
are going to need 2.14 anyway if we are going to implement a
list model using GSequence.