summaryrefslogtreecommitdiff
path: root/clutter
Commit message (Collapse)AuthorAgeFilesLines
* clutter-stage.c: Avoid returning value in a void functionChun-wei Fan2021-10-201-2/+2
| | | | | Eliminate warning C4098 (returning value in a void function), which is considered an error if building against GLib-2.68.x or later.
* clutter/meson.build: Fill in win32 configChun-wei Fan2021-10-201-0/+6
| | | | | We forgot to put into clutter-config.h the Windows items, which means that we would actually build the Win32 parts in vain.
* clutter-event-win32.c: Fix buildChun-wei Fan2021-10-201-1/+1
| | | | Fix a typo.
* wayland: Use CLUTTER_BUTTON_* defines instead of magic numbersJason Gerecke2021-07-154-22/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=783791
* wayland: Fix incorrect button mask in clutter_wayland_handle_buttonJason Gerecke2021-07-151-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=783791
* wayland: Protect against enter events for empty surfacesEmmanuele Bassi2020-03-201-2/+6
| | | | | | | The `leave` handler checks for NULL surfaces, but the `enter` handler does not. Fixes: #17
* build: Fix dependency listsEmmanuele Bassi2020-03-151-2/+2
| | | | | Older versions of Meson do not deal with concatenation between mixed values very well.
* build: Update the pkg-config file generationEmmanuele Bassi2020-03-151-23/+34
| | | | | | Use non-deprecated syntax to generate the main pkg-config file; then, generate all the backend-specific pkg-config files by simply depending on clutter-1.0.
* build: Remove unnecessary argumentEmmanuele Bassi2020-03-151-2/+0
| | | | | The `install` argument for configure_file() is not needed if set to a `true` constant value while passing `install_dir`.
* build: Fix syntaxEmmanuele Bassi2020-03-151-3/+1
| | | | Cannot go to a new line in the middle of an if.
* Fix coding style issues in MR !10Floris Van den Abeele2019-10-071-10/+10
|
* Handle 8 and 10 bits colour depth in picking code (#11)Floris Van den Abeele2019-10-071-20/+32
|
* transition: Don't split reference counting with actorJonas Ådahl2019-10-072-8/+0
| | | | | | | | | | | | ClutterActor took a reference in its transition 'stopped' handler, aiming to keep the transition alive during signal emission even if it was removed during. This is, however, already taken care of by ClutterTimeline, by always taking a reference during its 'stopped' signal emission, so no need to add another one. This also has the bonus of making reference ownership simpler, as well as avoidance of double free if an actor was destroyed before a transition has finished.
* clutter/actor: Mark implicit transitions as remove-on-completeJonas Ådahl2019-10-041-16/+11
| | | | | | | | | Implicit transitions had a referenced taken while emitting the completion signals, but said reference would only be released if it was had remove-on-complete set to TRUE. Change this to instead remove the 'is_implicit' state and mark all implicit transitions as remove-on-complete.
* gdk: Ensure surface buffer scale is setSjoerd Simons2019-08-221-1/+8
| | | | | | | | | | | | GDK will only set the buffer scale for the surfaces it creates when attaching an image or when using an egl window window. Neither will happen for native clutter applications, thus directly set the buffer scale from clutter in that case (so it's in sync with the rendering scale) Signed-off-by: Sjoerd Simons <sjoerd@luon.net> https://bugzilla.gnome.org/show_bug.cgi?id=769190
* docs: Fix typo in ClutterLayoutManager docBastien Nocera2019-02-141-1/+1
|
* Fix obsolete API doc for clutter_table_layout_pack()Bastien Nocera2019-02-141-1/+1
| | | | clutter_grid_layout_attach_child() doesn't seem to have ever existed.
* g-i: Annotate "callback" type of clutter_binding_pool_override_action()Rico Tzschichholz2019-01-111-1/+1
|
* meson: Add more Requires to pkg-config filesEmmanuele Bassi2018-07-111-18/+39
| | | | | | | | | | | | Meson-generated pkg-config files are seeded from the shared library object, but that will use the Requires.private field for the library dependencies. Since Clutter exposes types from other libraries, the dependencies should go into the Requires field, to avoid under-linking of dependent projects. Additionally, per-backend pkg-config files should have their own dependencies expressed into the Requires field, if they expose types from those dependencies in the public API.
* build: Fix soname when building with MesonEmmanuele Bassi2018-06-181-1/+1
| | | | The soname needs to be compatible with libtool and gobject-introspection.
* build: Install autocleanups headerEmmanuele Bassi2018-06-181-1/+3
| | | | We need to install it with Meson as well as Autotools.
* build: Install public headersEmmanuele Bassi2018-06-181-0/+5
| | | | Whoopsie, we're missing installing the headers with Meson.
* Merge branch 'wip/piotrdrag/unicode-typography' into 'master'Emmanuele Bassi2018-06-174-15/+15
|\ | | | | | | | | Use Unicode in translatable strings See merge request GNOME/clutter!1
| * Use Unicode in translatable stringswip/piotrdrag/unicode-typographyPiotr Drąg2018-05-304-15/+15
| | | | | | | | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772213
* | build: Generate all pkgconfig filesEmmanuele Bassi2018-06-171-4/+49
| | | | | | | | | | Clutter has various additional pkgconfig files for things like backends and Cally; we need to generate them all.
* | meson: Add rules for generating the documentationEmmanuele Bassi2018-06-172-2/+14
| | | | | | | | | | | | | | | | | | | | | | Both the API reference and the Cookbook. This requires a little bit of surgery on the Autotools build as well, namely that we need to stop generating the main gtk-doc XML file from a template at configuration time; we should, instead, generate and include a gtkdocentities.ent file both for the Meson build (where we generate the file ourselves) and for the Autotools build (where gtk-doc.make does it for us).
* | Rename build directory to build-auxEmmanuele Bassi2018-06-171-12/+12
| | | | | | | | | | | | | | Having a 'build' directory makes is a bit awkward for tools packaging Clutter, and the rapidly coalescing consensus on the GNOME platform, pushed by the port to Meson, is to call the directory for ancillary build files 'build-aux'.
* | gdk: Remove unused variableEmmanuele Bassi2018-06-171-3/+0
| |
* | gdk: Handle all GDK device typesEmmanuele Bassi2018-06-171-0/+6
| | | | | | | | | | We cannot add new device types in Clutter, but we should handle all device types that GDK throws at us.
* | Ignore deprecation warning for g_object_newv()Emmanuele Bassi2018-06-171-0/+2
| | | | | | | | | | We're not going to move to g_object_new_with_properties(), at least for the time being.
* | Drop duplicate const specifierEmmanuele Bassi2018-06-171-1/+1
| | | | | | | | And silence a compiler warning.
* | Update the clutter-config header templateEmmanuele Bassi2018-06-171-5/+2
| | | | | | | | | | Move the single include guard after the include guard, and turn the latter into a 'once' pragma while we're at it.
* | Clean up the generated enumeration type templateEmmanuele Bassi2018-06-171-5/+4
| | | | | | | | | | Use the 'once' pragma, and ensure that we don't mess us reproducible builds by including full paths to file names.
* | Initial port to MesonEmmanuele Bassi2018-06-172-0/+749
|/ | | | | Even if Clutter is an old project, it does not mean it shouldn't receive some build system love.
* gdk: stage: destroy and clear subsurface on unrealize()Olivier Fourdan2017-05-091-0/+9
| | | | | | | | When using a gdk subsurface, destroy it on clutter_stage_gdk_unrealize() to avoid keeping around an old existing subsurface pointing to a parent surface which might be gone. https://bugzilla.gnome.org/show_bug.cgi?id=781975
* Fix a translator commentPiotr Drąg2017-01-261-4/+4
| | | | They need to be exactly one line above a string to show up in .po files.
* gdk: stage: Use gdk for the Wayland subsurfaceOlivier Fourdan2017-01-092-91/+50
| | | | | | | | GDK has all the bits required to deal with the subsurface, by using the GDK Wayland API instead of the Wayland API directly, we can save a few lines of code. https://bugzilla.gnome.org/show_bug.cgi?id=774546
* backend: check for wayland before x11Marc-Antoine Perennou2016-11-301-3/+3
| | | | | | | | | | this way, clutter-gtk applications work fine on wayland without the need of exporting CLUTTER_BACKEND=wayland as gtk+ checks for wayland and x11 in the same order https://bugzilla.gnome.org/show_bug.cgi?id=762888 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* clutter-script: Document support for top-level arraysPhilip Withnall2016-11-211-2/+24
| | | | | | | | | Despite being a widely-used feature, it doesn’t seem to be obvious from the documentation that the top-level node in a ClutterScript JSON file can be an object, or an array of objects. Try to clarify that in the documentation. https://bugzilla.gnome.org/show_bug.cgi?id=772412
* clutter-script: Add an example of translation in ClutterScriptPhilip Withnall2016-08-231-0/+24
| | | | | | Document the ‘translatable’ key and friends. https://bugzilla.gnome.org/show_bug.cgi?id=770288
* canvas: fix checking twice for width > 0Gustavo Noronha Silva2016-07-261-1/+1
|
* clutter: Fix typo in docs for ClutterActor::queue-relayoutPhilip Withnall2016-07-171-1/+1
| | | | | | Signed-off-by: Philip Withnall <philip.withnall@collabora.co.uk> https://bugzilla.gnome.org/show_bug.cgi?id=768898
* actor: Clarify that add_effect() sinks floating references on the effectPhilip Withnall2016-07-121-1/+8
| | | | | | | So if you want to reuse a ClutterEffect, make sure to g_object_ref_sink() it yourself first. https://bugzilla.gnome.org/show_bug.cgi?id=768734
* Don't create the Cogl GLib source multiple timesOwen W. Taylor2016-06-301-3/+3
| | | | | | | | | | Since the check for backend->cogl_context was accidentally moved to clutter_backend_do_real_create_context, the Glib source that is created at the end of clutter_backend_do_create_context() is created and added each time create_context() is called, though create_context() is supposed to be idempotent. https://bugzilla.gnome.org/show_bug.cgi?id=768243
* text: Bind <ctrl>A in addition to <ctrl>aFlorian Müllner2016-05-121-0/+4
| | | | | | | | The 'select-all' action is currently only bound to <ctrl>a, which makes it awkward to use when caps-lock is active, and is inconsistent with GTK+. Just accept both upper- and lower-case variants. https://bugzilla.gnome.org/show_bug.cgi?id=766326
* actor: Warn on adding/removing itself as a childEmmanuele Bassi2016-03-291-0/+14
| | | | | | | | ClutterActor should warn if a user tries to add or remove an actor to, and from, itself on the scene graph. Clutter will likely crash, or warn way down the line, but if we can make debugging simpler then we should.
* gdk: Disable deprecation warningsEmmanuele Bassi2016-02-281-0/+6
| | | | | | | | | | | | | | For the GDK backend We're using the GdkDeviceManager API, which maps to Clutter's own device manager API. GDK has now moved to a per-seat device management model, and deprecated the device manager singleton one. In order to avoid the deprecation warnings, we'd have to implement a model similar to the GDK one inside the generic Clutter API, but that would also require moving all the others backend to it, which is pretty pointless. Instead, we can disable deprecation warnings for the ClutterDeviceManager implementation inside the GDK backend.
* clutter/config.h.win32.in: Keep in sync with autotools buildsChun-wei Fan2016-02-271-24/+3
| | | | | | This updates config.h.win32.in to be in-sync with the entries that are in the config.h.in that is generated by the autotools builds. In particular, for Visual Studio builds, we default to enable all available drivers ("*").
* cally: Avoid clone spamming state changesEmmanuele Bassi2016-02-241-0/+7
| | | | | | | Clones may generate a temporary map/unmap on their source when painting; this, in turn, will generate unnecessary ATK state changes. https://bugzilla.gnome.org/show_bug.cgi?id=756371
* actor: Expand is_in_clone_paint() checkEmmanuele Bassi2016-02-241-1/+21
| | | | | | | | The function should return true not only if the actor is being painted by a ClutterClone, but also if it's inside a sub-graph being painted by a ClutterClone. https://bugzilla.gnome.org/show_bug.cgi?id=756371