wayland-surface: Make _set_surface api public
authorRobert Bragg <robert@linux.intel.com>
Mon, 9 Jan 2012 19:14:09 +0000 (19:14 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 1 Mar 2012 11:41:51 +0000 (11:41 +0000)
commit83b94ec27d3073cbfaec92e9f1b4c7568081d568
tree5e0940c1c59fdd4dd12874ff773b3c5919adb0dc
parent862eebceb6f0a3faa407e953e69eeb9ccc133036
wayland-surface: Make _set_surface api public

This exposes a clutter_wayland_surface_set_surface() function. The
implementation ignores requests to re-set the same surface and since now
has code to cleanup old surface state before setting the new surface.
(previously the surface was construct only so this wasn't necessary)

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/wayland/clutter-wayland-surface.c
clutter/wayland/clutter-wayland-surface.h