| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This fixes a memory leak when someone creates a stage and then immediately
destroys it.
(cherry picked from commit 6c4abde369b015489d98d07c7c24d5a8bf870d5f)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
| |
The dispose sequence will keep the object alive, and we need to release
the last reference held by the StageManager before releasing control to
GObject.
(cherry picked from commit ab88511133188ef8965ffb3ab4342bd1da27c2e8)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
| |
Use Clutter.ActorBox.clamp_to_pixel() to do it properly.
(cherry picked from commit 0ba2d1df93d4083e721d934ed400446ba76af1d3)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
| |
We use floorf() for the allocation origin, and ceilf() for the
allocation size. Swapping the two introduces rounding errors if
the original allocation is not clamped to the nearest pixel.
(cherry picked from commit 2bec43c3c232eebd3ce12b9222fedf3a2a6f88a3)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
|
| |
Scroll events are generated on ButtonPress only in the core event
handling, so it should happen the same if we use XInput.
https://bugzilla.gnome.org/show_bug.cgi?id=680088
(cherry picked from commit 2a31a93c5e63f3a6e3e4a82622e5fbab0e25e5f1)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
| |
Ensure that resizing transitions smoothly when switching between major
axis; the allocation aspect ratio is not important: it's the size of the
allocation that dictates the major axis.
(cherry picked from commit b9533cb397d1b272c7975c6e904fcd46894022fa)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
| |
|
|
|
|
|
|
| |
Apparently the update for supporting building the GDK backend broke the
"installation" process of the compiled binaries, so fix that up by grouping
the binaries as either Release or Debug.
|
|
|
|
|
|
|
|
| |
* clutter/clutter-cairo-texture.c (clutter_cairo_texture_emit_draw):
Always update the Cogl texture after emitting ::draw, since we control
the dynamic extent in which drawing should happen on the cairo_t.
Fixes #677966.
|
|
|
|
|
|
|
| |
Use the CLUTTER_WINDOWING_X11 define to protect platform-specific calls
like clutter_x11_enable_xinput().
https://bugzilla.gnome.org/show_bug.cgi?id=678423
|
|
|
|
|
|
|
| |
Calling clutter_x11_* API should be done only under the platform
specific guards we provide with Clutter.
https://bugzilla.gnome.org/show_bug.cgi?id=678423
|
|
|
|
|
|
| |
The draw_touches() function must return a boolean value.
https://bugzilla.gnome.org/show_bug.cgi?id=678391
|
| |
|
| |
|
| |
|
|
|
|
| |
We need ClutterActor's implementation to run as well.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=677778
|
|
|
|
|
|
| |
The compute() method will cache the result, to avoid multiple
allocations and copies; this means, though, that we need to unset the
GValue when destroying the Interval.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=677921
|
| |
|
|
|
|
| |
Use instead a hash table to link touch sequences to colors.
|
|
|
|
| |
ClutterPoint was added in 1.12
|
|
|
|
| |
This removes the need to conditionally run the test.
|
|
|
|
|
|
|
|
|
|
|
| |
For now, it just generates a simple horizontal slide (by writing
to /dev/uinput) and checks that the stage gets the events at the
expected coordinates.
The test won't run if it doesn't have read/write permissions to
/dev/uinput.
It also adds OS_LINUX to config.h.
|
|
|
|
|
| |
Conflicts:
tests/interactive/Makefile.am
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The z coordinate of the origin should be checked against the same
coordinate of the vertex behind it. Given that most actors are flat
surfaces, this check should always succeed.
https://bugzilla.gnome.org/show_bug.cgi?id=675396
|
|
|
|
| |
Add allow-none annotations where appropriate
|
|
|
|
|
|
| |
This fixes drop_action_unregister() to not call g_object_get_data()
on priv->stage if not yet resolved. This can happen if the action's
actor was destroyed before ever being mapped.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Passing a NULL buffer to clutter_text_set_text() does not behave the same
way as passing an empty string "" (as specified in the documentation).
This was working as expected previously, but somehow the behaviour changed
at some point and created 2 new issues:
- Passing a NULL pointer will not reset the string
- If the ClutterText is editable, it will segfault in strcmp
Validations have been added to prevent this.
https://bugzilla.gnome.org/show_bug.cgi?id=675890
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When creating a FlowLayout container, setting a specific size on it, and
adding a child to it, as per the attached testcase, it crashes. The line
on the backtrace doesn't really make sense, but from looking over it, it
appears that it's probably because priv->line_natural is NULL. The
attached patch makes it so in this case, priv->line_natural is
allocated.
https://bugzilla.gnome.org/show_bug.cgi?id=676068
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
|
|
|
|
|
| |
-Fix up faulty Visual C++ 2010 Release_GDK configs
-Copy clutter-gdk.h as well when Clutter is also built with the GDK backend
|
|
|
|
|
|
|
|
|
|
| |
-Don't include unistd.h and stdint.h unconditionally as not all Windows
compilers have them around.
-Only include cogl/cogl-xlib.h when it is really supported by Cogl and GDK.
-sys/ioctl.h is not available on Windows (MinGW/MSVC).
-Correct the call to cogl_renderer_set_winsys_id:
(backend_cogl->cogl_renderer, COGL_WINSYS_ID_WGL) ->
(renderer, COGL_WINSYS_ID_WGL)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
-Add configuration in Clutter projects to add option to build Clutter with
the GDK3 backend in addition to the Win32 backend
-Add another preconfigured clutter-config.h.win32_GDK which contains
backend configs for both GDK3 and Win32 windowing and input.
(Cherry-picked from commit 37e9215521a26e51c87fcafdc183633ee3227b60)
(Cherry-picked from commit ee72d9b4af62d91dc16f853ff8165bba20169f52)
|
|
|
|
| |
This reverts commit b13a54ab0fd9571572ae2aae1c7a3fa49e6d23ab.
|
|
|
|
|
| |
This is split from the commit for the update to the other project files as
GIT does not like a patch that deals with files with different EOLs.
|
|
|
|
| |
Fix the location where clutter-win32.h is "installed"
|
|
|
|
|
| |
Some Windows-specific APIs were not exported during the build due to use
of a wrong macro. Fix that.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When getting touch events, the device manager would try
to pass an invalid device to translate_axes().
clutter_event_set_device() will only update event->touch.device
for touch events, not event->motion.device, as used.
Fixes Totem crashing on mouse motion/button press when using
a touchpad.
https://bugzilla.gnome.org/show_bug.cgi?id=675371
|