[clutter/fosdem-2012] wayland-surface: Adds _get_surface function
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/fosdem-2012] wayland-surface: Adds _get_surface function
- Date: Mon, 9 Jan 2012 19:18:30 +0000 (UTC)
commit 961de949c73c87891906a729d617b9e97c5f7ec0
Author: Robert Bragg <robert linux intel com>
Date: Mon Jan 9 19:16:21 2012 +0000
wayland-surface: Adds _get_surface function
This adds a clutter_wayland_surface_get_surface() function for querying
the struct wl_surface * associated with a ClutterWaylandSurface.
clutter/wayland/clutter-wayland-surface.c | 9 ++++++++-
clutter/wayland/clutter-wayland-surface.h | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c
index b3a8b27..abf7f29 100644
--- a/clutter/wayland/clutter-wayland-surface.c
+++ b/clutter/wayland/clutter-wayland-surface.c
@@ -213,7 +213,14 @@ set_size (ClutterWaylandSurface *self,
}
}
-static void
+struct wl_surface *
+clutter_wayland_surface_get_surface (ClutterWaylandSurface *self)
+{
+ ClutterWaylandSurfacePrivate *priv = self->priv;
+ return priv->surface;
+}
+
+void
clutter_wayland_surface_set_surface (ClutterWaylandSurface *self,
struct wl_surface *surface)
{
diff --git a/clutter/wayland/clutter-wayland-surface.h b/clutter/wayland/clutter-wayland-surface.h
index d06eb73..3786b54 100644
--- a/clutter/wayland/clutter-wayland-surface.h
+++ b/clutter/wayland/clutter-wayland-surface.h
@@ -81,6 +81,7 @@ GType clutter_wayland_surface_get_type (void) G_GNUC_CONST;
ClutterActor *clutter_wayland_surface_new (struct wl_surface *surface);
void clutter_wayland_surface_set_surface (ClutterWaylandSurface *self,
struct wl_surface *surface);
+struct wl_surface *clutter_wayland_surface_get_surface (ClutterWaylandSurface *self);
gboolean clutter_wayland_surface_attach_buffer (ClutterWaylandSurface *self,
struct wl_buffer *buffer,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]