summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added Occitan translationclutter-1.12Cédric Valmary2016-03-081-0/+2888
|
* Initial Hungarian translationBalázs Úr2013-09-261-0/+2786
|
* actor: Revert the Transition/Actor leak fixEmmanuele Bassi2013-03-051-4/+7
| | | | | | | | | | | | | | | | | | The original code inside ClutterActor that dealt with Transitions stopping was written for the ::completed signal, thus the code was correctly handling the lifetime of the instances; when we moved to the ::stopped signal, we assumed that it worked in the same way - with less conditions to be checked, obviously, but fundamentally similar to the ::completed signal. Sadly, I screwed up the signal definition, and the signal ended up calling our handlers, but not the default one that did the cleanup and released references on the Animatable instance. After fixing the Timeline::stopped signal, we can go back to the previous code. Thanks to Craig Hughes for the help in tracking down this mess. https://bugzilla.gnome.org/show_bug.cgi?id=695158
* timeline: Use the right function pointer offsetEmmanuele Bassi2013-03-051-1/+1
| | | | | | | A copy and paste thinko: the ::stopped signal is using the ClutterTimelineClass.completed slot instead of the .stopped one, thus preventing sub-classes of ClutterTimeline from overriding the signal's default closure.
* Fix a typo in ClutterEventType documentationKouhei Sutou2013-03-041-1/+1
| | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=691651 (cherry picked from commit c9cb463409932735c9c6f74f265d7cf1b1ee76d6) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* x11/device-manager-xi2: Fix slave to master associationRui Matos2013-03-041-2/+2
| | | | | | | | | A slave is associated to a master device, not the other way around. https://bugzilla.gnome.org/show_bug.cgi?id=692971 (cherry picked from commit 83f2f03c252f5b1af52a0718f9233279b49cc647) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* xi2: Fix access beyond array boundariesYanko Kaneti2013-03-041-3/+3
| | | | | | (cherry picked from commit 673e7c10d8c008ddf88af4746423e7897690ebe9) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* settings: Don't reload config for fontconfig if there's no fontmapNeil Roberts2013-03-041-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | If anything in the system changes the config for fontconfig then an XSetting will be set to record the last timestamp of the config file. This is presumably so that applications can be notified that it has changed and can reload the configuration. However once this setting is set it will remain set for the lifetime of the X server. This causes Clutter to handle the setting during the initialisation of the backend. Previously this would cause problems because Clutter would end up creating the default PangoFontMap before the backend has created the CoglContext. The PangoFontMap would in turn cause the default CoglContext to be created. Clutter will then later create its own CoglContext which means there will be two and the first one will be leaked. Cogl currently can't really cope with multiple contexts being created so it falls apart. This patch fixes it to skip reloading the config for fontconfig if there isn't a default font map yet. The config will presumably naturally be read with the latest values when it is finally created anyway so it doesn't need to be read immediately. https://bugzilla.gnome.org/show_bug.cgi?id=693696 (cherry picked from commit 4b92d656c2b63570b91105f05b863c4efed32134) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* actor: Use the correct return valueJosselin Mouette2013-03-041-1/+1
| | | | | | | | | | | | The get_z_rotation_gravity() method returns an enumeration value, not a floating point value. Signed-off-by: Emmanuele Bassi <ebassi@gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=694187 (cherry picked from commit e4598a9e527174fbbdee7341381a681b48ac762f) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Fix compiler warnings by initializing variablesEmmanuele Bassi2013-03-041-2/+2
| | | | | | (cherry picked from commit e317ca11fc27d83d9eb06634136d48f355d71562) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* actor: Fix clutter_actor_allocate_align_fill for partially-filled actorsJasper St. Pierre2013-03-041-25/+21
| | | | | | | | | | | If we pass TRUE for x_align and FALSE for y_align, the full available width should be passed to clutter_get_preferred_height, and the same should be true in the other dimension. https://bugzilla.gnome.org/show_bug.cgi?id=694237 (cherry picked from commit 50f6b2ac2cd2612627c7b728befd3553f46cf2f6) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* x11/clutter-keymap-x11: Honor XkbNewKeyboardNotify eventsRui Matos2013-03-041-0/+1
| | | | | | | | | | We already select for XkbNewKeyboardNotify events but are not acting on them. Start doing so. https://bugzilla.gnome.org/show_bug.cgi?id=694267 (cherry picked from commit b01469c8f3d400bccc389d5420af02b79949bdb7) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* actor: Release a reference on the implicit TransitionsEmmanuele Bassi2013-03-041-3/+6
| | | | | | | | | When stopping the transition we need to release the reference we maintain while removing the Transition from the hash table inside an actor. If we fail to do so, the Transition is never released, which means we leak the Animatable instance we tied to it. https://bugzilla.gnome.org/show_bug.cgi?id=695158
* text: Clean up the set_font_description_internal() semanticsEmmanuele Bassi2013-03-041-8/+7
| | | | | | | The current semantics are ridiculous, and clearly a case of (mistaken) premature optimization. All setters should copy, not transfer ownership. https://bugzilla.gnome.org/show_bug.cgi?id=695119
* test-interactive-clutter.vc(x)projin: Fix includesChun-wei Fan2012-12-282-8/+8
| | | | We need to include the gdk-pixbuf headers as well...
* Fix Clutter Visual C++ projectsChun-wei Fan2012-12-282-8/+8
| | | | | Fix the *_GDK configs as GDK headers will include GDK-Pixbuf headers as well.
* Visual C++ property sheets: Fix header "install"Chun-wei Fan2012-12-242-37/+45
| | | | The headers to "install" was out of date, so fix that.
* actor: rollback pivot translation even on explicit transformsEmanuele Aina2012-12-173-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | When setting an explicit transform with clutter_actor_set_transform() and a non (0,0) pivot-point, clutter_actor_apply_transform() will fail to roll back the pivot-point translation done before multiplying the transformation matrix due to the "out:" label being slightly misplaced in clutter_actor_real_apply_transform(). This works properly: clutter_actor_set_pivot_point (actor, 0.5, 0.5); clutter_actor_set_rotation_angle (actor, CLUTTER_Z_AXIS, 30); This results in the actor being moved to the pivot-point position: clutter_actor_set_pivot_point (actor, 0.5, 0.5); clutter_matrix_init_identity(&matrix); cogl_matrix_rotate (&matrix, 30, 0, 0, 1.0); clutter_actor_set_transform (actor, &matrix); This also add a conformance test checking that even when using a pivot-point, no matter how a rotation is set the resulting transformation matrix will be the same. https://bugzilla.gnome.org/show_bug.cgi?id=690214
* Visual C++ projects: Use MultiByte character setChun-wei Fan2012-12-1738-76/+76
| | | | | Use MultiByte character set for all projects and configs, to avoid any inconsistencies that may arise.
* clutter/clutter-rotate-action.c: Use G_PI instead of M_PIChun-wei Fan2012-12-141-1/+1
| | | | ...because M_PI is not universally available
* Update Clutter MSVC projectsChun-wei Fan2012-12-142-8/+8
| | | | | We now link to gdk-3.0.lib, not gdk-win32-3.0.lib, so that we are more consistent to the autotools builds.
* Fix Visual C++ 2010 property sheetsChun-wei Fan2012-12-141-2/+2
| | | | | Fix up the paths where glib-mkenums and glib-genmarshal is called. Somehow this slipped by earlier checks :|
* ally: remove an outdated commentAlejandro Piñeiro2012-12-101-7/+0
|
* actor: fix allocate_align_fill() to maintain the child preferred sizeLionel Landwerlin2012-11-261-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When trying to clamp to pixel a box that is exactly in between 2 pixels, the clutter_actor_box_clamp_to_pixel() function changes the size of the box. Here is an example : ClutterActorBox box = { 10.5, 10, 20.5, 20}; g_message ("%fx%f -> %fx%f", box.x1, box.y1, box.x2, box.y2); clutter_actor_box_clamp_to_pixel (&box); g_message ("%fx%f -> %fx%f", box.x1, box.y1, box.x2, box.y2); Here is what you get : ** Message: 10.500000x10.000000 -> 20.500000x20.000000 ** Message: 10.000000x10.000000 -> 21.000000x20.000000 That is because of the properties of the ceilf and floorf function used to do the clamping. For example, ceil(0.5) is 1.0, and ceil(-0.5) is 0.0. And, floor(0.5) is 0.0, and floor(-0.5) is -1.0. To work around that problem this patch retains the distance between x and y coordinates and apply that difference before calling ceilf() on x2 and y2. https://bugzilla.gnome.org/show_bug.cgi?id=689073
* wayland: Port to new protocolRob Bradford2012-11-125-27/+26
| | | | (cherry picked from commit cbab0a62ad7eb162bc5f195f5e199fc6279d6751)
* Umlaut fixedWolfgang Stöggl2012-11-061-1/+1
|
* [l10n] Updated German translationWolfgang Stöggl2012-11-061-182/+225
|
* Updated Norwegian bokmål translationKjartan Maraas2012-10-221-595/+755
|
* Post-release version bump to 1.12.3Emmanuele Bassi2012-10-171-2/+2
|
* Release Clutter 1.12.2 (stable)1.12.2Emmanuele Bassi2012-10-172-2/+31
|
* build: Fix distcheck in the cookbookEmmanuele Bassi2012-10-171-9/+10
| | | | | | | | Someday, somebody will have to explain to me how not touching anything for a whole release cycle ends up breaking the build. Adding the top_srcdir/doc/cookbook path to the includes fixes the distcheck.
* wayland: Add wayland-client to pkg-config flagsRob Bradford2012-10-131-2/+2
| | | | | | (cherry picked from commit 4316592c2f7ba69f0c9d41ca899b2d897e6bda7d) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* wayland: Initialise the repeat key to the expected default valueRob Bradford2012-10-131-0/+1
| | | | | | | | The code for handling key repeats (and in particular stopping on focus loss) assumes that the repeat key is set to XKB_KEYCODE_INVALID in the default case. (cherry picked from commit eb61e372b072400c419967c020b117af48357f79) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* wayland: Use wl_cursor_theme to provide a buffer for the Wayland cursorRob Bradford2012-10-132-156/+22
| | | | | | | | | | | This change switches to the new mechanism for loading a cursor into a buffer. It no longer relies on having a PNG stored in a known location and instead loads from the Wayland cursor theme. Signed-off-by: Rob Bradford <rob@linux.intel.com> (cherry picked from commit fce43c420e4fff2b8cbed5eee4dce740689df637) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* abicheck: Add CLUTTER_WINDOWING_WAYLANDDaniel Stone2012-10-131-0/+6
| | | | | | | Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit d4c7f2ecf4986517b890ef2b76cb1b6bbcb026fa) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* clutter.symbols: Update for Wayland changesDaniel Stone2012-10-131-1/+3
| | | | | | | | | make check now passes under Wayland. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit dab6b3916a2233b607e7b6f46d694715f2c1c902) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Hide clutter_input_device_wayland and clutter_stage_wayland typesDaniel Stone2012-10-134-4/+9
| | | | | | | | | | By prefixing them with an underscore, so they don't get exported as part of public ABI. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit a33d84234f516599a888a8eb798f9f45d3c4cdc5) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Wayland: Set default font DPI to 96Daniel Stone2012-10-131-0/+2
| | | | | | | | | Otherwise the units test fails, since the default DPI is set to -1. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit 978202aa49fc7a16bec4438a95466d6071c9dfb1) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Wayland: Add key repeatDaniel Stone2012-10-132-0/+63
| | | | | | | | | | | | Add support for repeating keys to the Wayland input backend. Unfortunately the repeat delay/interval is hardcoded into the Clutter backend, as Wayland doesn't yet tell clients what the global values should be. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit 1c7a740385abf4abed9dce162797653331f93615) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Port to new Wayland and xkbcommon APIsDaniel Stone2012-10-1310-231/+394
| | | | | | | | | | | | | | | | For Wayland, this is mostly the input protocol having changed, although there's also the SHM pool API, the cursor API, as well as fullscreen and ping. Also port to the new (months-old) xkbcommon API, as used by Weston 0.95. This involves having xkbcommon manage the state for us, where appropriate. Fans of multi-layout keyboards (or just caps lock) will no doubt appreciate these changes. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit 8f4e39b6d716876bdd386c832ede3a33bc76c042) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* EGL: Include cogl-egl.h for prototypesDaniel Stone2012-10-131-0/+2
| | | | | | | | | | | Looks like we need to include this directly, but also need to include cogl/cogl.h to get COGL_HAS_EGL_SUPPORT, since cogl-egl.h doesn't include cogl-defines.h first. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit a158d66abb76315277f171ef3ba656b08cc257a4) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* test: Only run X11-specific code when using X11Daniel Stone2012-10-131-4/+5
| | | | | | | | | | | | The X11-specific windowing checks were hidden behind an #ifdef, however if the tests were run under Wayland, they would execute uncondionally and cause assertion failures. Fix this by also hiding them behind a check that the current backend is indeed X11. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit 13d889814c410ed7f0ead8e9fac4b6086b9f2f8e) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* actor: Place coordinate of the pivot point in the right pointerTomeu Vizoso2012-10-131-1/+1
| | | | | | (cherry picked from commit 36c2343001e311df47452d89557571ea250db4ef) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* gesture-action: Make _cancel() callable after the gesture has startedEmanuele Aina2012-10-101-1/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=685554
* docs: Fix ClutterPanAction signal annotationEmmanuele Bassi2012-10-081-2/+2
| | | | | Signals are defined as <ClassName>::<signal-name>; a single colon is used for properties.
* main: Do not release the lock if it hasn't been acquiredEmmanuele Bassi2012-10-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On various systems, trying to release a mutex that hasn't been acquired will result in a run-time error. In order to avoid this, we trylock() the Big Clutter Lock™ and immediately unlock() it, regardless of the result; if the lock was already acquired, trylock() will immediately fail, and we can release it; if the lock was not acquired, trylock() will succeed, and we can release the lock immediately. This is necessary to maintain binary compatibility and invariants for Clutter applications doing: clutter_init() clutter_threads_enter() ... clutter_main() ... clutter_threads_leave() instead of the correct: clutter_init() clutter_threads_enter() ... clutter_threads_leave() clutter_main() clutter_threads_enter() ... clutter_threads_leave() With Clutter ≥ 1.12, the idiomatic form is: clutter_init() ... clutter_main() given that the public Big Clutter Lock™ acquire/release API has been deprecated, and nobody should take the lock outside of Clutter itself. https://bugzilla.gnome.org/show_bug.cgi?id=679439
* Updated Czech translationMarek Černocký2012-10-031-780/+1068
|
* [l10n] Updated Italian translation.Milo Casagrande2012-09-291-1029/+1567
|
* [l10n] Update Japanese translationNishio Futoshi2012-09-281-60/+28
|
* Update Visual C++ projectsChun-wei Fan2012-09-285-180/+191
| | | | | | | | -Make things a bit cleaner by generating clutter.def in the intermediate build folder -Fix the include paths as config.h is now in clutter/ -Make things a little bit more consistent between vs9 and vs10 in terms of the "install" stage