22826 Commits

Author SHA1 Message Date
Lionel Landwerlin
d691761985 gesture-action: fix typo
https://bugzilla.gnome.org/show_bug.cgi?id=698668
2013-04-23 17:28:34 +01:00
Neil Roberts
08b0d2d63e examples: Fix the first colour in the triangle_vertices
The first vertex in the triangle vertices used in the cogl-hello
example (which were copied into a few other examples) for some reason
has a semi-transparent alpha component. However the colour needs to be
pre-multiplied and the red component was still 0xff so the colour is
effectively invalid and the transparency isn't shown. This patch just
sets the alpha component to 0xff to make it less confusing.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 461879986ec012556b4e680b73e36d440927faaa)
2013-04-22 13:01:45 +01:00
Neil Roberts
856e9aa5f4 cogland: Try forcing an EGL context
Cogland works a lot better with an EGL context because then Mesa will
automatically set up the wl_drm object and it can accept DRM buffers.
However Cogland is still useful with GLX because it can gracefully
fallback to accepting only SHM buffers. This patch therefore makes it
first try creating and connecting a renderer with the EGL constraint,
but if that doesn't work it will try again without it.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 05ddc7d75e77538b5de22d4336d4a444d122063b)
2013-04-22 13:00:25 +01:00
Neil Roberts
20d64cbb39 cogland: Handle damage events for non-shm buffers too
When a Wayland compositor gets a commit it only needs to redraw the
region specified by the pending damage event. Previously Cogland was
ignoring damage events for non-shm buffers and just always queuing a
redraw after a commit event. This patch changes it to queue a redraw
only in response to a damage event. In practice this doesn't really
make much difference because Cogland doesn't do anything clever to
handle updating a sub-region of the screen, but it more costly matches
the model a compositor should use.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 15f00609e41f689234ee8d5b2f9e95fb74612d12)
2013-04-22 13:00:25 +01:00
Neil Roberts
efa3bd03c5 cogland: Don't leak the shell surface struct if requested twice
If the shell surface is requested twice then Cogland will hit an error
path but it would end up leaking the CoglandShellSurface struct it
allocated.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 622d41b04c2689a8e4fb6e1769aaf887a04242e8)
2013-04-22 13:00:25 +01:00
Neil Roberts
2f3591ace0 cogland: Fix handling the destroy listener for the pending buffer
The handler for the destroy signal on the pending buffer was not
correctly being removed if the same buffer is committed twice to the
surface. It was also not being cleared if the surface is destroyed
before the pending buffer is committed.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 11683476a7a62cd14a10d84fd52f2cb4b47e33a0)
2013-04-22 13:00:25 +01:00
Simon McVittie
c2a9ccb7e2 Let the UI layer (via the core) construct the frame mask
This essentially just moves install_corners() from the compositor, through
the core, into the UI layer where it arguably should have been anyway,
leaving behind stub functions which call through the various layers. This
removes the compositor's special knowledge of how rounded corners work,
replacing it with "ask the UI for an alpha mask".

The computation of border widths and heights changes a bit, because the
width and height used in install_corners() are the
meta_window_get_outer_rect() (which includes the visible borders but not
the invisible ones), whereas the more readily-available rectangle is the
MetaFrame.rect (which includes both). Computing the same width and height
as meta_window_get_outer_rect() involves compensating for the invisible
borders, but the UI layer is the authority on those anyway, so it seems
clearer to have it do the calculations from scratch.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=697758
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
2013-04-17 13:35:06 +01:00
Stef Walter
4608cb6027 Fix use of uninitialized variables
If mutter is going to -Werror by default, then it can play footloose
and fancy free with this sorta stuff.

https://bugzilla.gnome.org/show_bug.cgi?id=698179
2013-04-17 11:58:43 +02:00
Andreas Oberritter
a2168cedb3 cogl-xlib.h: add missing COGL_END_DECLS
Fixes compilation with C++ compiler.

Signed-off-by: Andreas Oberritter <obi@saftware.de>
Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 7b3c6dd7f6810f3c8dec62904daa887c917ab7e2)
2013-04-16 19:50:09 +01:00
Florian Müllner
ad61676af0 Bump version to 3.8.1
Update NEWS.
3.8.1
2013-04-16 20:38:36 +02:00
Simon McVittie
c7c1225393 MetaFrames: factor out MetaUIFrame accessors for borders, corner radiuses
This makes it a bit simpler for other functions on a MetaUIFrame to
get this information.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=697758
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-04-12 17:55:00 +01:00
Rui Matos
c7dc6928a9 keybindings: Fix ungrabbing of keys
XUngrabKey() doesn't work for XI2 grabs and XI2 doesn't provide API
with similar functionality. As such, we have to refactor the code a
bit to be able to call XIUngrabKeycode() for each key binding, then
reload keybindings and finally grab the new ones.

https://bugzilla.gnome.org/show_bug.cgi?id=697003
2013-04-10 10:49:24 +02:00
Gheyret Kenji
7cfaa6a6a8 Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-04-06 18:45:17 +09:00
Piotr Drąg
06bb6f4c18 Updated POTFILES.in 2013-04-05 22:50:36 +02:00
Enrico Nicoletto
76ee3e7671 Updated Brazilian Portuguese translation 2013-04-05 16:51:15 -03:00
Emmanuele Bassi
4d7a2cdcf4 2.0: Update POTFILES.in 2013-04-05 18:48:04 +01:00
Emmanuele Bassi
af2f9857fe 2.0: Update the symbols file 2013-04-05 18:48:04 +01:00
Emmanuele Bassi
25b9fad698 2.0: Clean up the Clutter API reference 2013-04-05 18:48:04 +01:00
Emmanuele Bassi
b0f3192802 2.0: Fix up documentation annotations 2013-04-05 18:48:04 +01:00
Emmanuele Bassi
ca3e1b4d11 2.0: Include clutter headers conditionally in clutter-x11.h
We want to avoid clutter-x11.h leaking Clutter symbols (i.e. you need to
include clutter.h yourself before including clutter-x11.h), but we need
to do so conditionally, so that ancillary stuff like gtk-doc and
g-ir-scanner get the right types while building Clutter itself.
2013-04-05 18:48:03 +01:00
Emmanuele Bassi
b4758c3526 2.0: Fix up the versioning macros 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
08a36c3e28 2.0: Remove unused enumerations 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
93b965f71d 2.0: Remove deprecated symbols from the tree
And fix the fallout.
2013-04-05 18:48:03 +01:00
Emmanuele Bassi
408d29bfde 2.0: Update symbols file 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
5e44d7de08 2.0: Fix up the ignore file 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
2e8eab9db4 2.0: Update cally-atkcomponent-example
Drop the deprecated API; the test has not been re-enabled yet, to allow
for review.
2013-04-05 18:48:03 +01:00
Emmanuele Bassi
0e9709f666 2.0: Disable Cally tests 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
2bb7cafee7 2.0: Prune performance test suite 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
e7f8c27021 2.0: Prune micro-bench test suite 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
9720a59482 2.0: Prune interactive test suite 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
1ff3011cb7 2.0: Prune conformance test suite 2013-04-05 18:48:03 +01:00
Emmanuele Bassi
8d181c46d9 2.0: Remove unused arguments from doc annotations 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
1057223227 2.0: Remove compatibility header from keysyms update script 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
5ec07ec8c5 2.0: Update gitignore file 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
230f871cd6 2.0: Remove backward compat variables from the pkgconfig file 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
4a7ebde571 2.0: Remove unnecessary symbols 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
b4410c5523 2.0: Clean up Clutter's API reference 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
85f4e33443 2.0: Bump down ClutterStageClass padding 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
07630362ae 2.0: Bump up ClutterActorClass padding 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
3f0ac3548f 2.0: Start migrating API references 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
a80da3da53 2.0: Remove unused enumeration types 2013-04-05 18:48:02 +01:00
Emmanuele Bassi
00bee5f173 2.0: Remove CLUTTER_AVAILABLE_IN_1_*
We are starting from scratch.
2013-04-05 18:48:02 +01:00
Emmanuele Bassi
e3259435f2 2.0: Remove all Since: annotations
We're starting from scratch.
2013-04-05 18:48:01 +01:00
Emmanuele Bassi
f1846bcb53 2.0: Remove include directives for deprecated headers 2013-04-05 18:48:01 +01:00
Emmanuele Bassi
03a8e2f7b8 2.0: Remove deprecated symbols from the installed headers 2013-04-05 18:48:01 +01:00
Emmanuele Bassi
0b03a4cb0a 2.0: Remove ClutterGeometry 2013-04-05 18:48:01 +01:00
Emmanuele Bassi
0724b3fb91 2.0: Remove deprecated API from Animatable 2013-04-05 18:48:01 +01:00
Emmanuele Bassi
465a324ecc 2.0: Remove deprecated API from ClutterTableLayout 2013-04-05 18:48:01 +01:00
Emmanuele Bassi
af21fcc734 2.0: Remove deprecated API from clutter-util.c 2013-04-05 18:48:01 +01:00
Emmanuele Bassi
270ceebf8d 2.0: Remove deprecated API from ClutterText 2013-04-05 18:48:01 +01:00