[gtk+] mir: add public getter for the internal MirSurface
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: add public getter for the internal MirSurface
- Date: Thu, 20 Nov 2014 03:45:30 +0000 (UTC)
commit 99d849412baf14e6cecde7268e1609a411de733d
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Nov 20 04:41:45 2014 +0100
mir: add public getter for the internal MirSurface
gdk/mir/gdkmir.h | 3 +++
gdk/mir/gdkmirwindowimpl.c | 12 ++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gdk/mir/gdkmir.h b/gdk/mir/gdkmir.h
index 92476f6..4339ccc 100644
--- a/gdk/mir/gdkmir.h
+++ b/gdk/mir/gdkmir.h
@@ -40,6 +40,9 @@ GDK_AVAILABLE_IN_3_10
GType gdk_mir_window_get_type (void);
GDK_AVAILABLE_IN_3_16
+MirSurface *gdk_mir_window_get_mir_surface (GdkWindow *window);
+
+GDK_AVAILABLE_IN_3_16
GType gdk_mir_gl_context_get_type (void) G_GNUC_CONST;
#endif /* __GDK_MIR_H__ */
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index aa029f5..57cd70d 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -1519,6 +1519,18 @@ _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window,
return impl->dummy_egl_surface;
}
+MirSurface *
+gdk_mir_window_get_mir_surface (GdkWindow *window)
+{
+ GdkMirWindowImpl *impl;
+
+ g_return_val_if_fail (GDK_IS_WINDOW_MIR (window), NULL);
+
+ impl = GDK_MIR_WINDOW_IMPL (window->impl);
+
+ return impl->surface;
+}
+
static void
gdk_mir_window_impl_class_init (GdkMirWindowImplClass *klass)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]