profile/ivi/clutter.git
16 years ago2008-07-02 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 2 Jul 2008 09:24:25 +0000 (09:24 +0000)]
2008-07-02  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 1010 - ClutterLabel does not update the layout (Lee Jusung)

* clutter/clutter-actor.c:
(clutter_actor_queue_relayout): Remove some pointer dereferencing.

* clutter/clutter-label.c:
(clutter_label_allocate): Revert the change of r2883 and remove the
layout width cache and force a recreation of the layout every time
we receive an allocation.

16 years ago * clutter/clutter-actor.c (clutter_actor_get_transformed_sizeu):
Neil Roberts [Tue, 1 Jul 2008 21:52:19 +0000 (21:52 +0000)]
* clutter/clutter-actor.c (clutter_actor_get_transformed_sizeu):
This is now do-what-I-mean like clutter_actor_get_size so that if
the allocation box is available it will use that, otherwise it
will use the preferred size. clutter_actor_transform_vertices has
been converted to clutter_actor_transform_and_project_box so that
it can be used by both functions. Based on a patch by Emmanuele
Bassi.
(clutter_actor_get_abs_allocation_vertices)
(clutter_actor_get_allocation_vertices): These two functions now
force a relayout if the allocation box is not available.

* tests/test-fbo.c: Fixed the shader to use texture2D instead of
texture2DRect now that GL_EXT_texture_rectangle is no longer used.

16 years ago * clutter/clutter-stage.c:
Chris Lord [Tue, 1 Jul 2008 14:08:24 +0000 (14:08 +0000)]
    * clutter/clutter-stage.c:
        Add a note to the clutter_stage_read_pixels doc that the alpha channel
        isn't guaranteed to contain sensible data

        * tests/test-stage-read-pixels.c: (update_snapshot):
        Overwrite the alpha data when using clutter_stage_read_pixels; fixes
        this test on non-nvidia drivers

16 years ago2008-07-01 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Tue, 1 Jul 2008 13:41:23 +0000 (13:41 +0000)]
2008-07-01  Matthew Allum  <mallum@openedhand.com>

        * clutter/glx/clutter-stage-glx.c:
        * clutter/x11/clutter-backend-x11.c:
        * clutter/x11/clutter-backend-x11.h:
        * clutter/x11/clutter-event-x11.c:
        * clutter/x11/clutter-x11.h:
        * tests/test-devices.c:
        Disable use of XInput and add an explicit clutter_x11_enable_xinput
        to enable it.
        Also fix up the x11 pre-init calls to not need g_type_init.

16 years agoBug 1013 - Per device grabs are not obeyed in pointer device propagation.
Øyvind Kolås [Tue, 1 Jul 2008 11:51:20 +0000 (11:51 +0000)]
Bug 1013 - Per device grabs are not obeyed in pointer device propagation.
* clutter/clutter-event.c: (clutter_event_get_device_id): swap
arguments of g_return_val_if_fail around.
* clutter/clutter-event.h: added *device field to crossing events as
well.
* clutter/clutter-main.c: (emit_pointer_event): added a device
argument and check for per device grabs if this device is passed.
(clutter_do_event): pass the device if present for all pointer event
emissions.
(generate_enter_leave_events): copy the device from the motion events
when generating enter/leave events.

16 years ago2008-07-01 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 1 Jul 2008 10:15:07 +0000 (10:15 +0000)]
2008-07-01  Emmanuele Bassi  <ebassi@openedhand.com>

* cogl/cogl-docs.sgml: Add an index to the COGL API reference
and the licensing information.

16 years ago * clutter/clutter-texture.c:
Chris Lord [Tue, 1 Jul 2008 10:11:39 +0000 (10:11 +0000)]
    * clutter/clutter-texture.c:
        Correct documentation about accepted pixel formats

        * tests/test-stage-read-pixels.c: (main):
        Don't try to free a ClutterTexture after main, fixes segfault on quit

16 years ago2008-07-01 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 1 Jul 2008 10:08:28 +0000 (10:08 +0000)]
2008-07-01  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-behaviour-bspline.h:
* clutter/clutter-behaviour.h:
* clutter/clutter-event.h:
* clutter/clutter-texture.h: Add missing documentation and
change the copyright and licensing notice to use the FSF
website instead of its address. (#512)

16 years ago2008-06-30 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 30 Jun 2008 22:00:49 +0000 (22:00 +0000)]
2008-06-30  Matthew Allum  <mallum@openedhand.com>

        Bug 1008 - tfp still a bit borked

        * clutter/x11/clutter-x11-texture-pixmap.c:
        Fix from Andy Wingo for sync_window borkage

16 years ago Bug 985 - MSC math.h / M_PI issue
Neil Roberts [Mon, 30 Jun 2008 16:15:53 +0000 (16:15 +0000)]
Bug 985 - MSC math.h / M_PI issue

* clutter/cogl/gl/cogl.c (set_clip_plane):
* clutter/clutter-alpha.c (sinc_func): Use G_PI instead of M_PI
because M_PI isn't defined in MSVC without a special
#define. Thanks to Haakon Sporsheim

16 years ago * clutter/win32/clutter-backend-win32.c (check_vblank_env): Use
Neil Roberts [Mon, 30 Jun 2008 16:08:45 +0000 (16:08 +0000)]
* clutter/win32/clutter-backend-win32.c (check_vblank_env): Use
g_ascii_strcasecmp instead of strcasecmp because strcasecmp isn't
available in MSVC.

16 years ago2008-06-30 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 30 Jun 2008 16:06:36 +0000 (16:06 +0000)]
2008-06-30  Matthew Allum  <mallum@openedhand.com>

         Bug 1007 - Fix TFP fallback mechanism

        * clutter/glx/clutter-glx-texture-pixmap.c:
        * clutter/x11/clutter-x11-texture-pixmap.c:
        Add some extra safety to glx pixmap creations and tidy up some notes.
        Patch from Gwenole Beauchesne.

16 years ago * clutter/x11/clutter-event-x11.c:
Neil Roberts [Mon, 30 Jun 2008 16:01:56 +0000 (16:01 +0000)]
* clutter/x11/clutter-event-x11.c:
* clutter/win32/clutter-event-win32.c: Use the HAVE_CONFIG_H guard
around #include "config.h"

16 years ago2008-06-30 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 30 Jun 2008 15:58:25 +0000 (15:58 +0000)]
2008-06-30  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/Makefile.am:
* clutter/eglx/Makefile.am:
* clutter/glx/Makefile.am: Build the X11 base backend before
the backends that depend on it.

16 years ago2008-06-30 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 30 Jun 2008 15:03:42 +0000 (15:03 +0000)]
2008-06-30  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 1000 - clutter-x11 should define gtypes for its enumerations

* clutter/x11/Makefile.am:
* clutter/x11/clutter-event-x11.c:
* clutter/x11/clutter-x11-enum-types.c.in:
* clutter/x11/clutter-x11-enum-types.h.in:
* clutter/x11/clutter-x11.h: Add the GTypes for the X11-specific
enumerations, so that they can be used by the bindings. (Andy
Wingo)

16 years ago * tests/test-shader.c:
Chris Lord [Mon, 30 Jun 2008 14:38:10 +0000 (14:38 +0000)]
    * tests/test-shader.c:
        Fix edge-detect shader on ATI, thanks Gwenole Beauchesne

16 years ago2008-06-30 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 30 Jun 2008 14:36:49 +0000 (14:36 +0000)]
2008-06-30  Matthew Allum  <mallum@openedhand.com>

        Bug 997 - automatic updates not working for named TFP pixmaps,
                  at least in x11

        * clutter/glx/clutter-glx-texture-pixmap.c:
        * clutter/glx/clutter-glx-texture-pixmap.h:
        * clutter/x11/clutter-backend-x11.c:
        * clutter/x11/clutter-x11-texture-pixmap.c:
        * clutter/x11/clutter-x11-texture-pixmap.h:
        * clutter/x11/clutter-x11.h:
        * configure.ac:
        * tests/test-pixmap.c:
        Rework Andy Wingos patch a little adding more safety for now also
        handling redirect Windows (as well as pixmaps)

16 years ago2008-06-30 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 30 Jun 2008 14:20:46 +0000 (14:20 +0000)]
2008-06-30  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 980 - cogl-bitmap-fallback.c compiler error/warning due to
          cast issue (Haakon Sporsheim)

* clutter/cogl/common/cogl-bitmap-fallback.c:
(_cogl_unpremult_alpha_last),
(_cogl_unpremult_alpha_first): Cast to avoid a compiler warning
with MSC.

16 years ago * tests/test-shader.c: (main):
Chris Lord [Mon, 30 Jun 2008 14:19:04 +0000 (14:19 +0000)]
    * tests/test-shader.c: (main):
        Add a new shader to test-shaders (Sobel operator edge-detect)

16 years agoDisable XInput handling for keyboard events, re-enabling key press and
Øyvind Kolås [Mon, 30 Jun 2008 14:01:03 +0000 (14:01 +0000)]
Disable XInput handling for keyboard events, re-enabling key press and
release events when pointer is outside window as well as re-enabling
keyrepeat.
* clutter/glx/clutter-stage-glx.c: (clutter_stage_glx_realize): select
for KeyPressMask and KeyReleaseMask even with XInput enabled.
* clutter/x11/clutter-backend-x11.c: (_clutter_x11_register_xinput):
Disabled the XInput keyboard code paths (comments and #if 0's)
* clutter/x11/clutter-event-x11.c: (event_translate): always handle
keyboard events without regard to XInput.

16 years ago2008-06-29 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Sun, 29 Jun 2008 22:19:20 +0000 (22:19 +0000)]
2008-06-29  Matthew Allum  <mallum@openedhand.com>

        * clutter/x11/clutter-event-x11.c:
        ifdef convert_xdevicekey_to_xkey () with XINPUT check.
        (fix via Andy Wingo)

16 years agoOSX: don't depend on ClutterGLWindow
Tommi Komulainen [Sun, 29 Jun 2008 10:31:31 +0000 (10:31 +0000)]
OSX: don't depend on ClutterGLWindow

* clutter/osx/clutter-osx.h (_clutter_event_osx_put)
* clutter/osx/clutter-event-osx.c (clutter_event_osx_translate,
NSEvent:clutterStage:)
* clutter/osx/clutter-stage-osx.c (EVENT_HANDLER): Since events are
delivered to ClutterGLView, pass the associated ClutterStage directly
to event translation. Avoids relying on being embedded in
ClutterGLWindow, which makes it easier to implement clutter-gtk.

16 years agoOSX: document Shift modifier speciality
Tommi Komulainen [Sun, 29 Jun 2008 10:31:05 +0000 (10:31 +0000)]
OSX: document Shift modifier speciality

* clutter/osx/clutter-event.osx.c (NSEvent:clutterKeyVal:): Add
comment, on OSX backend the Shift modifier is included in 'keyval'
making it identical to 'unicode_value'  Instead of <Shift>a or
<Shift>3 you'd get <Shift>A and <Shift>#

16 years ago2008-06-27 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Fri, 27 Jun 2008 23:02:30 +0000 (23:02 +0000)]
2008-06-27  Matthew Allum  <mallum@openedhand.com>

* clutter/cogl/gl/cogl.c:
        Temp workaround for 10.4 ATI card OSX folks, see #929
        (Tommi Komulainen)

        Bug 998 - clutter always captures X input events

* clutter/eglx/clutter-stage-egl.c:
        * clutter/glx/clutter-stage-glx.c:
When we disable X event retrival, dont still select for window
events.

16 years agoAdd Neil to the authors
Emmanuele Bassi [Fri, 27 Jun 2008 21:24:20 +0000 (21:24 +0000)]
Add Neil to the authors

16 years ago2008-06-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 27 Jun 2008 21:13:19 +0000 (21:13 +0000)]
2008-06-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-event.h:
* clutter/clutter-main.c:
* clutter/x11/clutter-backend-x11.c: Add further documentation,
and increase the coverage to 94%.

16 years ago2008-06-27 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Fri, 27 Jun 2008 20:45:33 +0000 (20:45 +0000)]
2008-06-27  Emmanuele Bassi  <ebassi@openedhand.com>

* configure.ac: Post release bump to 0.7.7.

16 years ago Bug 993 - Underline colors are sometimes wrong
Neil Roberts [Fri, 27 Jun 2008 14:36:59 +0000 (14:36 +0000)]
Bug 993 - Underline colors are sometimes wrong

* clutter/pango/pangoclutter-render.c: Fixed so that instead
of trying to set the color in prepare_run it uses draw_glyphs
to draw groups of glyphs and requests the color for each part
from Pango.

16 years agoFix the previous commit
Emmanuele Bassi [Thu, 26 Jun 2008 22:36:25 +0000 (22:36 +0000)]
Fix the previous commit

16 years ago2008-06-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 26 Jun 2008 21:42:44 +0000 (21:42 +0000)]
2008-06-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c:
(clutter_actor_set_min_width),
(clutter_actor_set_min_height),
(clutter_actor_set_natural_width),
(clutter_actor_set_natural_height): Ignore any override of the
minimum and natural size of the stage on backends that only
support static stages.

* clutter/clutter-stage.c (clutter_stage_allocate): Use the
preferred size of the ClutterStage implementation instead of
the display size.

* clutter/clutter-backend.[ch]: Remove get_display_size() and
clutter_backend_get_display_size().

* clutter/eglnative/clutter-backend-egl.c:
* clutter/fruity/clutter-backend-fruity.c:
* clutter/osx/clutter-backend-osx.c:
* clutter/sdl/clutter-backend-sdl.c:
* clutter/win32/clutter-backend-win32.c:
* clutter/x11/clutter-backend-x11.c: Remove get_display_size()
implementations.

16 years agoUpdate the backends hacking documentation
Emmanuele Bassi [Thu, 26 Jun 2008 14:17:16 +0000 (14:17 +0000)]
Update the backends hacking documentation

16 years agoUpdate the releasing instructions
Emmanuele Bassi [Thu, 26 Jun 2008 13:59:30 +0000 (13:59 +0000)]
Update the releasing instructions

16 years ago2008-06-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 26 Jun 2008 13:54:13 +0000 (13:54 +0000)]
2008-06-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-shader.c (bind_glsl_shader): Verify that the
vertex shader has been successfully compiled, like we do with
the fragment shader.

16 years ago2008-06-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 26 Jun 2008 13:52:35 +0000 (13:52 +0000)]
2008-06-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/osx/clutter-backend-osx.c:
(clutter_backend_osx_get_display_size): Fix the allocation pool
macro name.

16 years ago2008-06-26 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Thu, 26 Jun 2008 09:47:58 +0000 (09:47 +0000)]
2008-06-26  Matthew Allum  <mallum@openedhand.com>

        * clutter/glx/clutter-glx-texture-pixmap.c:
        Move the gl extension probe into the regular object init() rather than
        class_init. Should be a little safer.

16 years ago2008-06-26 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Thu, 26 Jun 2008 09:35:31 +0000 (09:35 +0000)]
2008-06-26  Matthew Allum  <mallum@openedhand.com>

        * tests/test-pixmap.c: (main):
        Use strtol on arg as to take hex values. Tweak from James Ketrenos

16 years ago2008-06-26 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 26 Jun 2008 09:02:58 +0000 (09:02 +0000)]
2008-06-26  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-overview.xml: Split the overview into its own
file, so we gtk-doc can linkify all class names.

* clutter/building-clutter.xml: Split the building instructions
into its own file, for better maintainability.

* clutter/clutter-animation.xml:
* clutter/creating-behaviours.xml:
* clutter/subclassing-ClutterActor.xml: Rename from SGML to XML;
these were not SGML files anyway, but templates.

* clutter/clutter-docs.sgml: Use XInclude instead of the ugly
entities hack.

* clutter/Makefile.am: Update the build.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 17:05:41 +0000 (17:05 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* configure.ac: Post release bump to 0.7.5.

16 years ago * clutter/win32/clutter-backend-win32.c
Neil Roberts [Wed, 25 Jun 2008 16:51:43 +0000 (16:51 +0000)]
* clutter/win32/clutter-backend-win32.c
(clutter_backend_win32_get_display_size): Implement
get_display_size on the Win32 backend.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 16:49:41 +0000 (16:49 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-sections.txt: Add missing symbols.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 16:46:42 +0000 (16:46 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-main.h: Make the priority constants public.

* clutter/clutter-stage.c: Use CLUTTER_PRIORITY_REDRAW.

* clutter/clutter-timeline.c: Use CLUTTER_PRIORITY_TIMELINE.

16 years agoWhitespace fixes
Emmanuele Bassi [Wed, 25 Jun 2008 16:44:40 +0000 (16:44 +0000)]
Whitespace fixes

16 years agoForgot to bump the micro version number
Emmanuele Bassi [Wed, 25 Jun 2008 16:26:46 +0000 (16:26 +0000)]
Forgot to bump the micro version number

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 15:59:54 +0000 (15:59 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/osx/clutter-backend-osx.c:
(clutter_backend_osx_get_display_size),
(clutter_backend_osx_class_init): Implement the get_display_size
function.

16 years agoFix the email address
Emmanuele Bassi [Wed, 25 Jun 2008 15:17:13 +0000 (15:17 +0000)]
Fix the email address

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 15:02:13 +0000 (15:02 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c:
(clutter_actor_set_min_width),
(clutter_actor_set_min_height),
(clutter_actor_set_natural_width),
(clutter_actor_set_natural_height): Add a comment explaining
the override in place for backends providing a fixed size
on a stage.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 15:00:51 +0000 (15:00 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-sections.txt: Add
clutter_backend_get_display_size() to the documented symbols.

16 years ago2008-06-25 Emmanuele Bassi <set EMAIL_ADDRESS environment variable>
Emmanuele Bassi [Wed, 25 Jun 2008 14:47:00 +0000 (14:47 +0000)]
2008-06-25  Emmanuele Bassi  <set EMAIL_ADDRESS environment variable>

* clutter/clutter-actor.c:
(clutter_actor_set_min_width),
(clutter_actor_set_min_height),
(clutter_actor_set_natural_width),
(clutter_actor_set_natural_height): If setting the minimum
and natural width and height on a top-level actor, and on
a backend that provides only static stages, then override
the value and use the size of the display as returned by
the backend.

* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_realize): Remove the setting of the
minimum and natural width and height.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 14:20:27 +0000 (14:20 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-stage.c:
(clutter_stage_allocate): Minor optimization.

(clutter_stage_init): Do not set the minimum size of the
stage wrapper, and require that the backends set the size
themselves.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 13:52:17 +0000 (13:52 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_realize): Try to force the minimum and
natural size on realization.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 13:32:03 +0000 (13:32 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-backend.c:
(clutter_backend_get_display_size): Provide a fallback for
backends not implementing get_display_size().

* clutter/clutter-stage.c:
(clutter_stage_allocate): Add debug messages.

* clutter/sdl/clutter-backend-sdl.c:
(clutter_backend_sdl_get_display_size),
(clutter_backend_sdl_class_init): Implement get_display_size()
on the SDL backend.

16 years ago * clutter/clutter-fixed.c: (clutter_sinx):
Chris Lord [Wed, 25 Jun 2008 13:21:25 +0000 (13:21 +0000)]
    * clutter/clutter-fixed.c: (clutter_sinx):
        Fix clutter_sinx for angles > CFX_2PI - CFX_ONE. Also add note to
        documentation about being able to use modulus with ClutterFixed

16 years agoFix another typo
Emmanuele Bassi [Wed, 25 Jun 2008 13:18:21 +0000 (13:18 +0000)]
Fix another typo

16 years agoFix typo
Emmanuele Bassi [Wed, 25 Jun 2008 13:16:07 +0000 (13:16 +0000)]
Fix typo

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 13:05:59 +0000 (13:05 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-backend.h:
* clutter/clutter-backend.c:
(clutter_backend_get_display_size): Add a function for getting the
display size out of the backend.

* clutter/clutter-stage.c:
(clutter_stage_allocate): When allocating on a backend with a
static stage, we simply ignore the passed box and override it with
the size of the display.

* clutter/eglnative/clutter-backend-egl.c:
(clutter_backend_egl_get_display_size),
(clutter_backend_egl_class_init): Implement get_display_size() by
returning the size of the EGL surface.

* clutter/fruity/clutter-backend-fruity.c:
(clutter_backend_egl_get_display_size),
(clutter_backend_egl_class_init): Ditto as above.

* clutter/x11/clutter-backend-x11.c:
(clutter_backend_x11_get_display_size),
(clutter_backend_x11_class_init): Implement get_display_size() by
returning the DisplayWidth and DisplayHeight of the current
screen.

16 years ago * clutter/win32/clutter-stage-win32.c
Neil Roberts [Wed, 25 Jun 2008 12:25:43 +0000 (12:25 +0000)]
* clutter/win32/clutter-stage-win32.c
(clutter_stage_win32_realize): Use a more direct method to choose
the best pixel format instead of ChoosePixelFormat because
otherwise if the display's depth is 16 then it will prefer the
non-accelerated software implementation when the requested depth
is 24.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 12:08:49 +0000 (12:08 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-stage.c (clutter_stage_allocate): Fix condition;
should always test before committing.

16 years ago2008-06-25 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Wed, 25 Jun 2008 12:02:11 +0000 (12:02 +0000)]
2008-06-25  Matthew Allum  <mallum@openedhand.com>

        * clutter/x11/clutter-backend-x11.c: (_clutter_x11_register_xinput)
        Add extra safety and fallback if no useable pointing devices are
        found.

16 years ago2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Wed, 25 Jun 2008 11:49:43 +0000 (11:49 +0000)]
2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-stage.c:
(clutter_stage_allocate): Check if the stage provided by the
backend is static (i.e. a framebuffer that cannot be resized)
and interrupt the allocation chain there.

* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_class_init): Remove the ::allocate empty
stub.

16 years ago2008-06-25 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Wed, 25 Jun 2008 11:17:43 +0000 (11:17 +0000)]
2008-06-25  Matthew Allum  <mallum@openedhand.com>

        * clutter/eglnative/clutter-stage-egl.c:
        * clutter/eglx/clutter-stage-egl.c:
        Disable passing of attribs to eglCreateContext() on GLES 1.1 h/w

16 years ago * clutter/clutter-actor.c (clutter_actor_paint): Guard against the
Neil Roberts [Wed, 25 Jun 2008 08:40:25 +0000 (08:40 +0000)]
* clutter/clutter-actor.c (clutter_actor_paint): Guard against the
actor clip being enabled or disabled in an actor paint
method. Otherwise the clip stack can be become unbalanced. This
was happening in ClutterEntry until it was fixed in revision 2983.

16 years ago Bug 979 - Wrong call convension for SwapIntervalProc in win32 backend
Neil Roberts [Tue, 24 Jun 2008 22:07:15 +0000 (22:07 +0000)]
Bug 979 - Wrong call convension for SwapIntervalProc in win32 backend

* clutter/win32/clutter-backend-win32.c: Use the correct calling
convention for SwapInterval. Thanks to Haakon Sporsheim.

16 years ago2008-06-24 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 24 Jun 2008 16:47:43 +0000 (16:47 +0000)]
2008-06-24  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 989 - Add a search path for clutter script assets

* clutter/clutter-script.h:
* clutter/clutter-script.c:
(clutter_script_finalize),
(clutter_script_add_search_paths),
(clutter_script_lookup_filename): Add the ability to define multiple
search paths inside ClutterScript and to look up a specific filename
inside those search paths. This is useful to define a set of
directories where the assets for a UI definition are and still
reference those assets by their name instead of the full path. (989,
based on a patch by Matthew Allum)

* clutter/clutter-texture.c:
(clutter_texture_set_custom_property): Use the newly added
clutter_script_lookup_filename() function.

16 years ago * clutter/cogl/gles/cogl-gles2-wrapper.h:
Neil Roberts [Tue, 24 Jun 2008 16:21:40 +0000 (16:21 +0000)]
* clutter/cogl/gles/cogl-gles2-wrapper.h:
* clutter/cogl/gles/cogl-gles2-wrapper.c: All of the settings and
uniforms are now proxied into COGL variables instead of setting
the GL uniforms directly. Just before glDrawArrays is executed a
shader is generated using the given settings to avoid using 'if'
statements. The shaders are cached.

* clutter/cogl/gles/cogl-fixed-vertex-shader.glsl:
* clutter/cogl/gles/cogl-fixed-fragment-shader.glsl: The shaders
are now split into parts using comments instead of 'if' statements
so that the simplest shader can be generated on the fly.

* clutter/cogl/gles/stringify.sh: Now splits up the shader sources
into separate C strings where deliminated by special comments.

* clutter/cogl/gles/cogl-program.h:
* clutter/cogl/gles/cogl-program.c: A custom shader can no longer
be directly linked with the fixed-functionality replacement
because the replacement changes depending on the settings. Instead
the bound shader is linked with the appropriate replacement shader
just before glDrawArrays is executed. The custom uniform variables
must also be proxied through COGL variables because their location
can change when relinked.

16 years ago* clutter/fruity/clutter-fruity.c: removed dead code and unused
Øyvind Kolås [Tue, 24 Jun 2008 11:34:22 +0000 (11:34 +0000)]
* clutter/fruity/clutter-fruity.c: removed dead code and unused
variables.

16 years ago* configure.ac: better alignment of list of enabled experimental
Øyvind Kolås [Tue, 24 Jun 2008 11:16:07 +0000 (11:16 +0000)]
* configure.ac: better alignment of list of enabled experimental
features.

16 years ago2008-06-24 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 24 Jun 2008 10:42:36 +0000 (10:42 +0000)]
2008-06-24  Emmanuele Bassi  <ebassi@openedhand.com>

* doc/clutter-actor-invariants.txt: Fix grammar and spelling,
document the ::parent-set signal emission.

16 years ago2008-06-24 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 24 Jun 2008 10:40:58 +0000 (10:40 +0000)]
2008-06-24  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-entry.c:
(clutter_entry_ensure_layout): Convert the invisible char
to UTF-8 to avoid Pango barfing on us.

16 years ago2008-06-24 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Tue, 24 Jun 2008 10:39:12 +0000 (10:39 +0000)]
2008-06-24  Matthew Allum  <mallum@openedhand.com>

        * clutter/eglnative/clutter-stage-egl.c:
        Add an extra debug note.
        * configure.ac:
        Generate version.xml for COGL API docs

16 years ago2008-06-24 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Tue, 24 Jun 2008 10:38:18 +0000 (10:38 +0000)]
2008-06-24  Matthew Allum  <mallum@openedhand.com>

        * cogl/Makefile.am:
        * cogl/cogl-docs.sgml:
        * cogl/version.xml.in
* clutter/version.xml.in
        Add full version (including minor) to docs.
        Add version to COGL docs

16 years ago Bug 988 - cursor position wrong with multibyte invisible char
Chris Lord [Tue, 24 Jun 2008 10:22:53 +0000 (10:22 +0000)]
    Bug 988 - cursor position wrong with multibyte invisible char

        * clutter/clutter-entry.c: (clutter_entry_ensure_cursor_position):
        Fix cursor position calculation when using invisible text

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 22:00:37 +0000 (22:00 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/x11/clutter-event-x11.c (event_translate): Set the
event type explicitly in the union members as well for the
key events, like we do for all the other events.

16 years ago * clutter/clutter-entry.c (clutter_entry_paint): Set the clip
Neil Roberts [Mon, 23 Jun 2008 20:55:24 +0000 (20:55 +0000)]
* clutter/clutter-entry.c (clutter_entry_paint): Set the clip
using COGL directly instead of setting the actor clip. Otherwise
the clip stack will be unbalanced after the first draw. This also
frees up the actor clip to be set by an application.

16 years ago2008-06-23 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 23 Jun 2008 20:26:47 +0000 (20:26 +0000)]
2008-06-23  Matthew Allum  <mallum@openedhand.com>

        * NEWS:
        Add a quick note on fruity multiple deivce support.
        * README:
        Add multiple device support details and some tweaks on
        Clutter requirements (i.e GdkPixbuf).

16 years ago2008-06-23 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 23 Jun 2008 18:58:33 +0000 (18:58 +0000)]
2008-06-23  Matthew Allum  <mallum@openedhand.com>

        Bug 987 - clutter-event.c c99 variable declaration

        * clutter/clutter-event.c:
        Remove c99ism.

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 16:54:43 +0000 (16:54 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-sections.txt: Remove clutter_actor_get_paint_area()
and add clutter_actor_allocate_preferred_size().

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 16:44:33 +0000 (16:44 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

* configure.ac: Post release bump to 0.7.3.

16 years agoFixes for distcheck
Emmanuele Bassi [Mon, 23 Jun 2008 16:43:49 +0000 (16:43 +0000)]
Fixes for distcheck

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 15:56:30 +0000 (15:56 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/subclassing-ClutterActor.sgml: Remove mention of the
get_paint_area() function and virtual function.

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 15:31:12 +0000 (15:31 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-texture.c:
(clutter_texture_get_preferred_width),
(clutter_texture_get_preferred_height),
(clutter_texture_set_property),
(clutter_texture_get_property),
(clutter_texture_class_init),
(clutter_texture_init): Add the new :keep-aspect-ratio property
to ClutterTexture; when set to TRUE the texture will return a
preferred width maintaining the aspect ratio with the given height
and a preferred height maintaining the aspect ratio with the
given width. This allows to set the width or the height and have
the texture automatically request the height or the width respectively
while maintaining the aspect ratio of the original image.

* tests/test-script.json: Update to test the new :keep-aspect-ratio
property.

16 years ago Bug 918 - Group doesn't clip if it's children are clipped
Neil Roberts [Mon, 23 Jun 2008 14:57:36 +0000 (14:57 +0000)]
Bug 918 - Group doesn't clip if it's children are clipped

* clutter/cogl/common/cogl-clip-stack.h:
* clutter/cogl/common/cogl-clip-stack.c: Added functions to
maintain a stack of clipping rectangles.

* clutter/cogl/gles/cogl.c:
* clutter/cogl/gl/cogl.c: The cogl_clip_set and unset functions
have moved into cogl-clip-stack.c which calls back to cogl.c to
set the actual rectangles. Multiple clip rectangles are combined
by merging the stencil buffers.

* clutter/cogl/gles/cogl-primitives.c (_cogl_path_fill_nodes):
* clutter/cogl/gl/cogl-primitives.c (_cogl_path_fill_nodes): Merge
the stencil buffer with the contents of the clipping stack after
drawing the path.

* clutter/cogl/gles/cogl-context.h (CoglContext):
* clutter/cogl/gl/cogl-context.h (CoglContext): Store the number
of available stencil bits.

* clutter/cogl/common/Makefile.am
(libclutter_cogl_common_la_SOURCES): Added cogl-clip-stack.c

16 years ago2008-06-23 Robert Bragg <bob@o-hand.com>
Robert Bragg [Mon, 23 Jun 2008 13:09:08 +0000 (13:09 +0000)]
2008-06-23  Robert Bragg  <bob@o-hand.com>

* clutter/eglx/clutter-stage-egl.c: Makes sure the eglx backend
passes the EGL_OPENGL_ES2_BIT surface attrib when using
GLES2.0 under cogl

16 years ago * clutter/x11/clutter-event-x11.c: (convert_xdevicekey_to_xkey),
Chris Lord [Mon, 23 Jun 2008 12:45:20 +0000 (12:45 +0000)]
    * clutter/x11/clutter-event-x11.c: (convert_xdevicekey_to_xkey),
        (translate_key_event), (event_translate):
        Change the xinput event handling to use translate_key (fixes modifier
        handling with xinput key events)

16 years ago* clutter/subclassing-ClutterActor.sgml: added missing call to
Øyvind Kolås [Mon, 23 Jun 2008 12:22:16 +0000 (12:22 +0000)]
* clutter/subclassing-ClutterActor.sgml: added missing call to
cogl_push_matrix ()

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 11:01:30 +0000 (11:01 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 982 - __COGL_GET_CONTEXT MS compiler issue (Haakon Sporsheim)

* clutter/cogl/common/cogl-handle.h:
* clutter/cogl/common/cogl-primitives.c: Remove C99-isms.

* clutter/cogl/gl/cogl-fbo.c:
* clutter/cogl/gl/cogl-primitives.c:
* clutter/cogl/gl/cogl-texture.c:
* clutter/cogl/gl/cogl.c: Ditto as above.

* clutter/cogl/gles/cogl-fbo.c:
* clutter/cogl/gles/cogl-primitives.c:
* clutter/cogl/gles/cogl-texture.c: Ditto as above.

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 10:37:43 +0000 (10:37 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 984 - pango_clutter_render_layout() declared void, but
          returns (Haakon Sporsheim)

* clutter/pango/pangoclutter-render.c:
(pango_clutter_render_layout): Do not use a return statement.

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 10:32:43 +0000 (10:32 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 905 - Paint cursor directly (Xan López)

* clutter/clutter-entry.c:
(clutter_entry_paint_cursor),
(clutter_entry_init),
(clutter_entry_set_color): Directly paint the cursor on the
entry instead of using an actor.

16 years agoFix emacs breaking the ChangeLog
Emmanuele Bassi [Mon, 23 Jun 2008 10:06:33 +0000 (10:06 +0000)]
Fix emacs breaking the ChangeLog

16 years ago2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Mon, 23 Jun 2008 10:06:02 +0000 (10:06 +0000)]
2008-06-23  Emmanuele Bassi  <ebassi@openedhand.com>

Bug 981 - clutter_stage_read_pixels temprow fix (Haakon Sporsheim)

* clutter/clutter-stage.c (clutter_stage_read_pixels): Allocate
the temporary row data used to flip the buffer from glReadPixels()
in order to fix compilation under MSVC. Also validate the input
parameters to avoid random segfaults.

16 years ago2008-06-23 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 23 Jun 2008 09:55:42 +0000 (09:55 +0000)]
2008-06-23  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        * clutter/clutter-event.c:
        * clutter/clutter-event.h:
        * clutter/clutter-main.c:
        * clutter/clutter-main.h:
        * clutter/clutter-private.h:
        * clutter/eglx/clutter-stage-egl.c:
        * clutter/fruity/clutter-backend-fruity.c:
        * clutter/fruity/clutter-backend-fruity.h:
        * clutter/fruity/clutter-fruity.c:
        * clutter/glx/clutter-stage-glx.c:
        * clutter/x11/clutter-backend-x11.c:
        * clutter/x11/clutter-backend-x11.h:
        * clutter/x11/clutter-event-x11.c:
        * clutter/x11/clutter-stage-x11.h:
        * clutter/x11/clutter-x11.h:
        * configure.ac:
        * tests/Makefile.am:
        * tests/test-devices.c:
        Merge of 'xinput' branch giving initial basic support of
        multiple input devices.

16 years ago2008-06-23 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 23 Jun 2008 09:08:27 +0000 (09:08 +0000)]
2008-06-23  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        * clutter/clutter-group.c:
        Remove uneeded (at least for now) paint_area method (#970)

16 years ago2008-06-19 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Thu, 19 Jun 2008 20:45:28 +0000 (20:45 +0000)]
2008-06-19  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-script.c: Be more explicit about the fact that
the script id is not the name of an actor, and that it is retrieved
by using clutter_get_script_id().

16 years ago2008-06-17 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 17 Jun 2008 15:59:08 +0000 (15:59 +0000)]
2008-06-17  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
(clutter_actor_allocate_preferred_size): Add more documentation
and notes on where it's appropriate to call this function.

16 years ago * clutter/clutter-texture.c: (clutter_texture_get_preferred_width),
Chris Lord [Tue, 17 Jun 2008 14:45:33 +0000 (14:45 +0000)]
    * clutter/clutter-texture.c: (clutter_texture_get_preferred_width),
        (clutter_texture_get_preferred_height):
        Maintain aspect ratio with natural width/height when for_width/height
        are specified

16 years ago2008-06-17 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Tue, 17 Jun 2008 13:49:40 +0000 (13:49 +0000)]
2008-06-17  Matthew Allum  <mallum@openedhand.com>

        * clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        Clean up of parenting code (see #972)
        Doc updates to section intro.
        Add clutter_actor_allocate_preferred_size () utility call

        * clutter/clutter-group.c: (clutter_fixed_layout_allocate):
        Use clutter_actor_allocate_preferred_size ()

        * doc/clutter-actor-invariants.txt:
        Add some more notes

16 years ago2008-06-17 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 17 Jun 2008 12:39:37 +0000 (12:39 +0000)]
2008-06-17  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c:
(clutter_actor_set_parent): Do not emit ::parent-set when
reparenting.

(clutter_actor_unparent): Ditto, as above.

(clutter_actor_reparent): Emit ::parent-set with the old
parent and set the IN_REPARENT flag unconditionally.

16 years ago2008-06-17 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 17 Jun 2008 10:47:37 +0000 (10:47 +0000)]
2008-06-17  Emmanuele Bassi  <ebassi@openedhand.com>

* doc/clutter-actor-invariants.txt: Document the flags, the
invariants, the state changes and the minimum requirements for
actor implementations. Needs to be tweaked and fleshed out
before 0.8.0, and we obviously need to enforce the invariants.

16 years ago2008-06-17 Emmanuele Bassi <ebassi@openedhand.com>
Emmanuele Bassi [Tue, 17 Jun 2008 09:33:18 +0000 (09:33 +0000)]
2008-06-17  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.c:
(clutter_actor_set_parent): Document and maintain the invariant
that after setting a realized parent on an actor, the actor is
also going to be realized.

(clutter_actor_unparent): Change the invariant that an unparented
actor is also unrealized: the paint is fast enough to avoid
unrealizing, since it also causes more problems that what it's
worth.

* tests/test-invariants.c (test_show_on_set_parent): Update the
invariants test because we changed the invariants.

16 years ago * clutter/clutter-score.c (clutter_score_append):
Jussi Kukkonen [Tue, 17 Jun 2008 08:55:54 +0000 (08:55 +0000)]
* clutter/clutter-score.c (clutter_score_append):
initialize "marker" string and "complete_id" signal id when creating a
ClutterScoreEntry.

16 years ago2008-06-16 Matthew Allum <mallum@openedhand.com>
Matthew Allum [Mon, 16 Jun 2008 16:31:08 +0000 (16:31 +0000)]
2008-06-16  Matthew Allum  <mallum@openedhand.com>

        * cogl/cogl-docs.sgml:
        Add an intro.