Ø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 ()
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.
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.
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.
Emmanuele Bassi [Mon, 23 Jun 2008 10:06:33 +0000 (10:06 +0000)]
Fix emacs breaking the ChangeLog
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.
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.
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)
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().
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.
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
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
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.
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.
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.
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.
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.
Tomas Frydrych [Mon, 16 Jun 2008 14:14:19 +0000 (14:14 +0000)]
2008-06-16 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_move_anchor_point_from_gravity):
Fixed incorrect sign of position adjustment (revert of earlier
change).
Emmanuele Bassi [Mon, 16 Jun 2008 13:40:39 +0000 (13:40 +0000)]
2008-06-16 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c (clutter_actor_unparent): Reset the
:show-on-set-parent property to TRUE when unparenting.
* tests/Makefile.am: Add test-invariant to the build.
* tests/test-invariants.c: Test the invariants that we are going
to honour (and document, at some point).
Emmanuele Bassi [Mon, 16 Jun 2008 13:38:46 +0000 (13:38 +0000)]
2008-06-16 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-stage-egl.c: Ignore any size allocation
we receive from the user.
* clutter/fruity/clutter-stage-fruity.c: Ditto as above.
Tomas Frydrych [Mon, 16 Jun 2008 09:27:44 +0000 (09:27 +0000)]
2008-06-16 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_move_anchor_point):
(clutter_actor_move_anchor_pointu):
(clutter_actor_move_anchor_point_from_gravity):
Fixed incorrect sign of position adjustment.
Fixed replace call to _move_by with move_byu in
_move_anchor_pointu.
Stripped trailing whitespace.
Emmanuele Bassi [Sun, 15 Jun 2008 12:50:05 +0000 (12:50 +0000)]
2008-06-15 Emmanuele Bassi <ebassi@openedhand.com>
Bug #967 - Mismatch of Timeline::marker-reached signal signature
* clutter/clutter-marshal.list:
* clutter/clutter-timeline.c:
(clutter_timeline_class_init): Fix the type of the frame_num
argument in the ::marker-reached signal creation to match the
signal class handler. (Armin Burgmeier)
Matthew Allum [Sat, 14 Jun 2008 22:07:23 +0000 (22:07 +0000)]
Revert miscommit of unfinished cogl changes in r2920
Emmanuele Bassi [Sat, 14 Jun 2008 10:27:01 +0000 (10:27 +0000)]
2008-06-14 Emmanuele Bassi <ebassi@openedhand.com>
* README: We depend on PangoCairo, now; also add all the missing
release notes entries and the missing backends configuration notes.
Matthew Allum [Fri, 13 Jun 2008 23:03:45 +0000 (23:03 +0000)]
2008-06-14 Matthew Allum <mallum@openedhand.com>
* README:
Make needed GL version 1.4, note GLES2 support, add some notes
for COGL.
Emmanuele Bassi [Fri, 13 Jun 2008 16:57:17 +0000 (16:57 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Post release bump to 0.7.1.
Emmanuele Bassi [Fri, 13 Jun 2008 16:03:11 +0000 (16:03 +0000)]
Add fake ChangeLog to pass distcheck
Emmanuele Bassi [Fri, 13 Jun 2008 16:02:26 +0000 (16:02 +0000)]
Add fake pot file to pass distcheck
Emmanuele Bassi [Fri, 13 Jun 2008 15:37:58 +0000 (15:37 +0000)]
Remove the "hiding" in the texture description
Emmanuele Bassi [Fri, 13 Jun 2008 15:18:08 +0000 (15:18 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-cogl-offscreen.c:
* tests/test-cogl-primitives.c:
* tests/test-cogl-tex-convert.c:
* tests/test-cogl-tex-foreign.c:
* tests/test-cogl-tex-getset.c:
* tests/test-cogl-tex-tile.c:
* tests/test-layout.c:
* tests/test-pixmap.c:
* tests/test-texture-quality.c: Miscellaneous fixes for distcheck
to pass.
Emmanuele Bassi [Fri, 13 Jun 2008 15:01:34 +0000 (15:01 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
* clutter/clutter-actor.h:
* tests/test-cogl-primitives.c:
* tests/test-events.c:
* tests/test-multistage.c:
* tests/test-textures.c:
* tests/test-timeline.c: Miscellaneous fixes for distcheck to
pass.
Emmanuele Bassi [Fri, 13 Jun 2008 14:58:18 +0000 (14:58 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c:
(clutter_texture_unrealize), (clutter_texture_dispose): Add a
guard against reading back memory during the unrealization on
dispose.
Emmanuele Bassi [Fri, 13 Jun 2008 14:16:22 +0000 (14:16 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
Bug #953 - Actors are not hidden before unrealized or
disposed (Tommi Komulainen)
* clutter/clutter-actor.c:
(clutter_actor_unrealize): Hide a visible actor when unrealizing
it.
(clutter_actor_dispose): Make sure to unrealize an actor when
disposing it.
Emmanuele Bassi [Fri, 13 Jun 2008 13:59:55 +0000 (13:59 +0000)]
Fix attribution of last commit
Emmanuele Bassi [Fri, 13 Jun 2008 13:59:07 +0000 (13:59 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_dispose), (clutter_actor_destroy),
(clutter_actor_unparent): Clean up the actor's destruction
sequence, making sure that every operation is performed
under the CLUTTER_ACTOR_IN_DESTRUCTION internal flag.
Øyvind Kolås [Fri, 13 Jun 2008 10:37:33 +0000 (10:37 +0000)]
* clutter/event-flow.png: fixed typo.
* clutter/event-flow.dia: added source for event-flow.png, this file
is not referred to in Makefile.am and thus not distributed in
tarballs.
Emmanuele Bassi [Fri, 13 Jun 2008 09:10:39 +0000 (09:10 +0000)]
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
Bug #960 - PangoContext creation code should not be duplicated
* clutter/clutter-private.h:
* clutter/clutter-main.c:
(_clutter_context_create_pango_context): Abstract the creation
of the PangoContext inside its own function, to avoid code and
bugs duplication. (Tommi Komulainen)
* clutter/clutter-entry.c (clutter_entry_init): Use the newly
added PangoContext creation function.
* clutter/clutter-label.c (clutter_label_init): Ditto as above.
Emmanuele Bassi [Thu, 12 Jun 2008 17:24:07 +0000 (17:24 +0000)]
2008-06-12 Emmanuele Bassi <ebassi@openedhand.com>
Bug #964 - "unrealized" signal of ClutterActor wrongly named
* clutter/clutter-actor.c (clutter_actor_class_init): Fix typo
in the ::unrealize signal name. (Armin Burgmeier)
Emmanuele Bassi [Thu, 12 Jun 2008 17:21:16 +0000 (17:21 +0000)]
2008-06-12 Emmanuele Bassi <ebassi@openedhand.com>
* doc/reference/cogl/Makefile.am: Ignore cogl/gl and cogl/gles
when building the documentation.
* clutter/cogl/cogl.h.in: Add sections in the header file.
Emmanuele Bassi [Thu, 12 Jun 2008 16:34:50 +0000 (16:34 +0000)]
2008-06-12 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Add more clarifications on the
size and position accessors and the distinction between
transformed and untransformed actor box inside the actor's
description.
Emmanuele Bassi [Thu, 12 Jun 2008 16:20:08 +0000 (16:20 +0000)]
2008-06-12 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Clarify the documentation of the
accessors of the width and height.
Neil Roberts [Thu, 12 Jun 2008 12:12:25 +0000 (12:12 +0000)]
* clutter/win32/clutter-stage-win32.c: Updated to the new layout
API. All code to do with positioning the stage has been removed so
the window is left where Windows wants to put it and it can not be
moved with clutter_actor_set_position.
* clutter/win32/clutter-stage-win32.h (ClutterStageWin32): Remove
win_xpos and win_ypos.
* clutter/win32/clutter-event-win32.c (message_translate): Remove
the handler for WM_MOVE because the stage no longer cares where it
is positioned.
Emmanuele Bassi [Thu, 12 Jun 2008 11:43:25 +0000 (11:43 +0000)]
2008-06-12 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.[ch]: Documentation fixes.
* clutter/clutter-backend.c: Documentation fixes.
* clutter/clutter-container.h: Documentation fixes.
* clutter/clutter-fixed.c (clutter_qdivx): Fix the return
value to be after the description.
* clutter/clutter-texture.[ch]: Documentation fixes.
* clutter/clutter-timeline.c: Documentation fixes.
Emmanuele Bassi [Thu, 12 Jun 2008 11:41:03 +0000 (11:41 +0000)]
2008-06-12 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-docs.sgml: Clean up.
* clutter/clutter-sections.txt: Add missing new symbols.
* clutter/clutter.types: Add ClutterChildMeta type.
Emmanuele Bassi [Wed, 11 Jun 2008 17:34:35 +0000 (17:34 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-layout.c: Take into account the origin of the
parent, if it has changed, and queue a relayout if we are
using the transformed box when computing the layout.
Emmanuele Bassi [Wed, 11 Jun 2008 17:33:30 +0000 (17:33 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/subclassing-ClutterActor.sgml: Add more notes and
remind to relayout when adding children to an actor.
Emmanuele Bassi [Wed, 11 Jun 2008 17:32:22 +0000 (17:32 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-stage-egl.c: Remove a duplicate
get_preferred_width() implementation. (thanks to Iain Holmes)
Neil Roberts [Wed, 11 Jun 2008 17:12:29 +0000 (17:12 +0000)]
* clutter/clutter-actor.c (clutter_actor_allocate): Fixed the
logic when detecting whether the actor has moved.
Iain Holmes [Wed, 11 Jun 2008 16:29:20 +0000 (16:29 +0000)]
2008-06-11 Iain Holmes <iain@openedhand.com>
* configure.ac: Detect the GL headers in flavour=fruity
* clutter/fruity/clutter-stage-fruity.c: Update the Fruity
backend to
use the new size negotiation API.
Emmanuele Bassi [Wed, 11 Jun 2008 16:12:52 +0000 (16:12 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c (clutter_label_allocate): Keep the
layout if the size of the allocation is the same as the last
allocation received by the label.
Emmanuele Bassi [Wed, 11 Jun 2008 15:08:03 +0000 (15:08 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: Notify :x, :y, :width and :height
properties using ClutterUnits, not pixels.
Emmanuele Bassi [Wed, 11 Jun 2008 10:19:02 +0000 (10:19 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-stage-egl.c: Update the EGL native
backend to use the new size negotiation API.
Emmanuele Bassi [Wed, 11 Jun 2008 10:12:44 +0000 (10:12 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/sdl/clutter-stage-sdl.c: Update the SDL backend to
use the new size negotiation API.
Emmanuele Bassi [Wed, 11 Jun 2008 09:45:22 +0000 (09:45 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
Bug #961 - Fails to build on OSX
* clutter/osx/clutter-stage-osx.c: Update the OSX backend to
use the new size negotiation API.
Emmanuele Bassi [Wed, 11 Jun 2008 09:36:35 +0000 (09:36 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* autogen.sh: Force overwriting when glib-gettextize is
invoked by autogen.sh.
Emmanuele Bassi [Wed, 11 Jun 2008 09:26:55 +0000 (09:26 +0000)]
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* autogen.sh: Force overwriting when glib-gettextize is
invoked by autogen.sh.
Neil Roberts [Tue, 10 Jun 2008 21:25:23 +0000 (21:25 +0000)]
* clutter/clutter-main.c: Include <locale.h> for setlocale()
Emmanuele Bassi [Tue, 10 Jun 2008 17:13:52 +0000 (17:13 +0000)]
Update git ignore file for git-svn clones
Emmanuele Bassi [Tue, 10 Jun 2008 17:12:48 +0000 (17:12 +0000)]
2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-sections.txt: Update with the new API.
* clutter/subclassing-ClutterActor.sgml: Update with the new
size negotiation API.
Emmanuele Bassi [Tue, 10 Jun 2008 17:11:14 +0000 (17:11 +0000)]
2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-child-meta.c: Fix section name
* clutter/clutter-container.c:
(clutter_container_child_set_property),
(clutter_container_child_get_property): Fix gtk-doc parameter
name.
* clutter/clutter-container.h: Fix documentation of the
interface vfuncs.
* clutter/clutter-event.h: Fix documentation.
* clutter/clutter-feature.h: Fix documentation.
* clutter/clutter-types.h: Add ClutterRequestMode.
* clutter/x11/clutter-event-x11.c: Fix documentation.
* tests/test-fullscreen.c: Verify that the stage size has been
changed by clutter_stage_fullscreen().
Emmanuele Bassi [Tue, 10 Jun 2008 17:07:52 +0000 (17:07 +0000)]
2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
Bug #815 - Split up request, allocation, and paint box
* clutter/clutter-actor.[ch]: Rework the size allocation,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
Emmanuele Bassi [Tue, 10 Jun 2008 16:51:11 +0000 (16:51 +0000)]
2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
* Makefile.am: Add the po/ directory to the build.
Emmanuele Bassi [Tue, 10 Jun 2008 16:49:39 +0000 (16:49 +0000)]
Update svn:ignore property
Emmanuele Bassi [Tue, 10 Jun 2008 16:47:38 +0000 (16:47 +0000)]
2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
* autogen.sh: Check for, and run glib-gettextize.
* configure.ac: Set up the localization support.
* clutter/clutter-main.c: Do not define the GETTEXT_PACKAGE,
but use the one from the configure script.
* po/POTFILES.in: Template for the translatable files.
Chris Lord [Tue, 10 Jun 2008 14:01:43 +0000 (14:01 +0000)]
* clutter/clutter-main.c: (pre_parse_hook):
Call setlocale on init
* clutter/x11/clutter-event-x11.c: (translate_key_event):
Fix typo and use the same buffer size as xev
Øyvind Kolås [Tue, 10 Jun 2008 11:18:19 +0000 (11:18 +0000)]
* clutter/clutter-texture.c: improved documentation for
clutter_texture_set_filter_quality.
Chris Lord [Tue, 10 Jun 2008 10:57:50 +0000 (10:57 +0000)]
Bug #916 - ClutterKeyEvent:unicode_value is ignored
Bug #950 - AltGr not handled
* clutter/osx/clutter-event-osx.c: (clutter_event_osx_translate):
* clutter/x11/clutter-event-x11.c: (translate_key_event):
* tests/test-events.c: (fill_keybuf), (input_cb):
Apply patch from Tommi Komulainen, fill the unicode_value attribute of
the ClutterKeyEvent struct. Also use XKeycodeToKeysym, as suggested in
bug #950, comment #2
Matthew Allum [Tue, 10 Jun 2008 10:49:21 +0000 (10:49 +0000)]
2008-06-10 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-texture.c:
Minor reformatting cleanups. Emit filter-quality prop on change.
* clutter/glx/clutter-glx-texture-pixmap.c:
Support mipmaps via filter quality prop.
Chris Lord [Tue, 10 Jun 2008 10:17:12 +0000 (10:17 +0000)]
* tests/Makefile.am:
* tests/test-entry-auto.c:
Add automatic test for ClutterEntry, by Tommi Komulainen
Chris Lord [Tue, 10 Jun 2008 10:05:12 +0000 (10:05 +0000)]
* clutter/cogl/common/cogl-primitives.c: (_cogl_path_arc):
Draw as expected when end angle is lower than start angle (i.e. do not
swap the angles). This aligns with cairo behaviour.
Tommi Komulainen [Tue, 10 Jun 2008 06:37:46 +0000 (06:37 +0000)]
7 small miscellaneous fixes
Bug#959 - Multiple minor improvements
* configure.ac: pick up GDKPIXBUF_PREFIX from gdk-pixbuf-2.0
module, not pango
* clutter/clutter-keysyms-table.h: cosmetic fix for ifdef guard
name in the comment (leftover from earlier commit)
* tests/test-textures.c: don't depend on GdkPixbuf as we're not
using any actual features from it, just plain pixel buffer
manipulation
* clutter/clutter-timeline.c
* clutter/clutter-timeline.h (clutter_timeline_list_markers): Use
gsize* to return number of items, not guint*
* tests/test-paint-wrapper.c: use correct type (guint*) in call
to clutter_actor_get_size()
* tests/test-depth.c (janus_group): properly take height2 into
account when calculating needed height for the rectangle
* tests/test-cogl-tex-getset.c: use rowstride, not width*4, when
calculating pixel offsets
* tests/test-cogl-tex-getset.c: Don't assume/force RGBA format,
also support ARGB format (needed with quartz imageloader.)
Tommi Komulainen [Mon, 9 Jun 2008 23:00:31 +0000 (23:00 +0000)]
OSX: print GL_VENDOR, GL_RENDERER, GL_VERSION and GL_EXTENSIONS
* clutter/osx/clutter-backend-osx.c (clutter_backend_osx_post_parse):
Print GL_VENDOR, GL_RENDERER, GL_VERSION and GL_EXTENSIONS to aid
debugging.
Tommi Komulainen [Mon, 9 Jun 2008 21:15:12 +0000 (21:15 +0000)]
cogl: add support for quartz imagebackend
Bug #930 - add support for quartz imagebackend
* clutter/cogl/common/cogl-bitmap-pixbuf.c
(_cogl_bitmap_from_file): When USE_QUARTZ is defined implement
using Core Graphics.
* configure.ac: support --with-imagebackend=quartz and print
which imagebackend is selected. Make quartz default on OSX
Chris Lord [Mon, 9 Jun 2008 16:38:19 +0000 (16:38 +0000)]
* cogl/cogl-sections.txt:
Add missing cogl_path_arc
Øyvind Kolås [Mon, 9 Jun 2008 16:14:06 +0000 (16:14 +0000)]
* clutter/cogl/common/cogl-primitives.c: (cogl_path_rel_curve_to):
fixed naming of implementation of cogl_path_rel_curve_to (it was
called just cogl_rel_curve_to).
Emmanuele Bassi [Mon, 9 Jun 2008 13:29:17 +0000 (13:29 +0000)]
2008-06-09 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Clean up a bit the X11 and X extensions
checks with PKG_CHECK_EXISTS(). Since we are filling up the
X11_CFLAGS and X11_LIBS variables ourselves there is no
point in polluting the Makefiles with unused variables.
* clutter/Makefile.am: Remove the pkg-config variable
evaluation and use the values retrieved from the configure
script.
Chris Lord [Mon, 9 Jun 2008 10:13:20 +0000 (10:13 +0000)]
Bug #914 - ClutterEntry is confused about characters vs. bytes
* clutter/clutter-entry.c: (clutter_entry_ensure_layout),
(clutter_entry_handle_key_event_internal),
(clutter_entry_set_text):
Fix mix-up of character and byte counts, handle unicode correctly.
Use clutter_key_event_unicode() instead of
clutter_keysym_to_unicode().
* clutter/clutter-event.c: (clutter_key_event_unicode):
Don't ignore ClutterKeyEvent.unicode_value
* clutter/clutter-keysyms-table.h:
Rename header define so as not to conflict with clutter-keysyms.h
Patch originally by Emmanuele Bassi, with input from Tommi Komulainen.
Øyvind Kolås [Sat, 7 Jun 2008 15:08:36 +0000 (15:08 +0000)]
amended email address in ChangeLog
Øyvind Kolås [Sat, 7 Jun 2008 15:08:05 +0000 (15:08 +0000)]
* clutter/clutter-texture.c: made the filter-quality proeprty also
control the use of mipmapping.
* clutter/clutter-texture.h: added ClutterTextureQuality enum.
* tests/test-texture-quality.c: new test.
* tests/Makefile.am: added test-texture-quality
Emmanuele Bassi [Fri, 6 Jun 2008 16:22:55 +0000 (16:22 +0000)]
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-texture.c:
(clutter_texture_class_init): Do not unrealize on hide(), and
do not realize() on show. By default, clutter_actor_show() will
realize ourselves, and we don't want to unrealize when hidden
to avoid paying the penalty of reading back the texture data
from the video memory.
* tests/test-actors.c: Show all textures again when pressing
the 'r' key.
Neil Roberts [Fri, 6 Jun 2008 15:41:52 +0000 (15:41 +0000)]
* tests/test-shader.c: Use the special wrapper vars when building
for GLES 2 and automatically cycle the shaders because it's
difficult to right-click.
Emmanuele Bassi [Fri, 6 Jun 2008 15:20:04 +0000 (15:20 +0000)]
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
Bug #927 - Created ports for clutter, clutter-cairo in macports
* clutter/clutter-docs.sgml: Update the OSX build instructions
and mention that the preferred way to build Clutter for developing
applications is via MacPorts. (#927, Idan Gazit)
Neil Roberts [Fri, 6 Jun 2008 15:00:12 +0000 (15:00 +0000)]
* tests/test-shader.c: Fixed to use sampler2D instead of
sampler2DRect now that GL_TEXTURE_RECTANGLE support is disabled in
revision 2834. The ClutterTexture actor now has the
'disable-slicing' property set. The distance in texture
coordinates between pixels is passed in as a uniform so that the
box-blur shader can still work.
Emmanuele Bassi [Fri, 6 Jun 2008 14:56:08 +0000 (14:56 +0000)]
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
Bug #952 - Fix test-textures in trunk
* tests/test-textures.c: Use USE_GDKPIXBUF instead of
USE_PIXBUF. (#952, Gwenole Beauchesne)
Emmanuele Bassi [Fri, 6 Jun 2008 14:49:08 +0000 (14:49 +0000)]
Fix ChangeLog attribution
Emmanuele Bassi [Fri, 6 Jun 2008 14:45:43 +0000 (14:45 +0000)]
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-entry.c (clutter_entry_init): Remove a
variable shadowing another one. (Tommi Komulainen)
Emmanuele Bassi [Fri, 6 Jun 2008 14:44:49 +0000 (14:44 +0000)]
2008-06-06 Emmanuele Bassi <ebassi@openedhand.com>
Bug #955 - ClutterLabel is missing fallback resolution handling
* clutter/clutter-label.c (clutter_label_init): Handle
clutter_backend_get_resolution() return value -1 similar to
ClutterEntry (falling back to 96.0). (#955, Tommi Komulainen)
Neil Roberts [Fri, 6 Jun 2008 14:21:22 +0000 (14:21 +0000)]
* clutter/eglnative/clutter-stage-egl.c
(clutter_stage_egl_realize): Use ES 2 renderable type when
building for GLES 2.
* clutter/eglnative/clutter-event-egl.c (get_backend_time): Added
a NULL for the microseconds parameter of g_timer_elapsed.
* clutter/eglnative/clutter-stage-egl.h:
* clutter/eglnative/clutter-egl.h:
* clutter/eglnative/clutter-backend-egl.h: Include
clutter-egl-headers.h instead of including the GL headers directly
so it can include gl2.h when building for GLES 2.
* clutter/eglnative/clutter-egl-headers.h:
* clutter/eglnative/Makefile.am (libclutter_eglnative_la_SOURCES):
Added clutter-egl-headers.h
* clutter/cogl/gles/cogl-fixed-fragment-shader.glsl: GLES 2
doesn't provide a default precision for floats in the fragment
shader and it will reject the shader if there isn't one.
Matthew Allum [Fri, 6 Jun 2008 13:44:22 +0000 (13:44 +0000)]
2008-06-06 Matthew Allum <mallum@openedhand.com>
Bug #948 - Remove texture rectangle support
* clutter/clutter-feature.c:
* clutter/clutter-feature.h:
* clutter/clutter-texture.c:
* clutter/cogl/gl/cogl.c:
* clutter/glx/clutter-glx-texture-pixmap.c:
Remove support for GL_TEXTURE_RECTANGLE_ARB (now using just regular
2D textures, with optional npots extension). Simplifys code, + makes
mipmap & shader support much more sane.
Øyvind Kolås [Fri, 6 Jun 2008 13:00:48 +0000 (13:00 +0000)]
amend changelog message
Øyvind Kolås [Fri, 6 Jun 2008 12:53:35 +0000 (12:53 +0000)]
* clutter/cogl/common/cogl-bitmap-pixbuf.c:
(_cogl_bitmap_from_file): allocate height×rowstride and not duplicate
gdkpixbuf's strange optimization saving some bytes at the end of the
pixbuf.
Tommi Komulainen [Thu, 5 Jun 2008 21:40:59 +0000 (21:40 +0000)]
cogl: define GL_READ/DRAW_FRAMEBUFFER_EXT if not available
Bug 913 - cogl fails to build on OSX
* clutter/cogl/gl/cogl-fbo.c: define GL_READ_FRAMEBUFFER_EXT and
GL_DRAW_FRAMEBUFFER_EXT if not defined in the build system. The
#ifdef can fail if they're not #defines but variables or enums.
As the values are supposed to be industry standard even then
it shouldn't have ill effects.
Tommi Komulainen [Thu, 5 Jun 2008 21:27:58 +0000 (21:27 +0000)]
OSX: add multistage support
Bug #911 - OSX: add multistage support
* clutter/osx/clutter-backend-osx.{c,h}
(clutter_backend_osx_init_stage, clutter_backend_osx_get_stage,
clutter_backend_osx_redraw, clutter_backend_osx_create_stage,
clutter_backend_osx_ensure_context, clutter_backend_osx_class_init,
clutter_backend_osx_dispose, ClutterGLView:drawRect:):
* clutter/osx/clutter-stage-osx.{c,h} (clutter_stage_osx_realize,
ClutterGLWindow:setFrameSize:):
Adapt to new multistage backend API. Don't keep a pointer to
default stage. Derive from ClutterActor instead of ClutterStage.
Implement ClutterStageWindow interface. Paint, resize and
otherwise manipulate the wrapper rather than self when necessary.
(clutter_backend_post_parse): Create our singleton GL context
here. We could probably create the context when the default
stage is created, but I think this is more clean.
* clutter/osx/clutter-event-osx.c (clutter_event_osx_translate)
* clutter/osx/clutter-stage-osx.c (clutter_stage_osx_state_update,
ClutterGLWindow:windowShouldClose:):
* clutter/osx/clutter-stage-osx.h: Export ClutterGLWindow interface
for clutter-event-osx.c to easily get the stage for NSWindow.
Fill in ClutterEventAny::stage on our events.
Consistently use 'stage_osx' and 'wrapper' as variable names
when referring to ClutterStageOSX and ClutterStage objects
respectively.
Tommi Komulainen [Thu, 5 Jun 2008 21:27:28 +0000 (21:27 +0000)]
OSX: add missing memory pool wrapup
Bug #910 - OSX: missing memory pool
* clutter/osx/clutter-backend-osx.c (clutter_backend_osx_redraw):
Add missing memory pool wrapup.
Tommi Komulainen [Thu, 5 Jun 2008 20:10:00 +0000 (20:10 +0000)]
OSX: handle gracefully NULL title
Bug #909 - OSX: missing NULL pointer handling
* clutter/osx/clutter-stage-osx.c (ClutterGLWindow,
clutter_stage_osx_set_title): NSString:stringWithUTF8String:
does not accept NULL values, use empty string ("") instead.
Avoids potential crash.
Emmanuele Bassi [Thu, 5 Jun 2008 15:07:51 +0000 (15:07 +0000)]
2008-06-05 Emmanuele Bassi <ebassi@openedhand.com>
* tests/Makefile.am:
* tests/test-paint-wrapper.c: Add a test case (merely, a copy
of test-actors.c) that verifies that handlers to the ::paint
signal are called in the right order.
Emmanuele Bassi [Thu, 5 Jun 2008 14:32:18 +0000 (14:32 +0000)]
2008-06-05 Emmanuele Bassi <ebassi@openedhand.com>
Bug #840 - Implement prepare-paint and finish-paint signals.
* clutter/clutter-actor.c:
(clutter_actor_class_init): Add the ::paint, ::realize and
::unrealize signals to ClutterActor. It is possible to
override the paint, realization and unrealization of an
actor without subclassing it. The ::paint signal handlers
have the same limitations of a ClutterActor::paint implementation
inside a subclass.
(clutter_actor_realize),
(clutter_actor_unrealize),
(clutter_actor_paint): Emit the signals instead of calling
the functions from the class vtable.
Emmanuele Bassi [Thu, 5 Jun 2008 13:23:29 +0000 (13:23 +0000)]
2008-06-05 Emmanuele Bassi <ebassi@openedhand.com>
* ChangeLog-ivan: Remove the ChangeLog of the clutter-ivan
branch; the branch already contains it.
Matthew Allum [Thu, 5 Jun 2008 12:05:19 +0000 (12:05 +0000)]
2008-06-05 Matthew Allum <mallum@openedhand.com>
* clutter/glx/clutter-glx-texture-pixmap.h:
Actually export clutter_glx_texture_pixmap_using_extension ()
Chris Lord [Thu, 5 Jun 2008 10:05:01 +0000 (10:05 +0000)]
* clutter/clutter-entry.c:
Correct the documentation for clutter_entry_set_max_length, fixes bug
#915.