[gtk+] mir: deprecate gdk_mir_window_get_mir_surface ()
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: deprecate gdk_mir_window_get_mir_surface ()
- Date: Wed, 1 Mar 2017 07:23:08 +0000 (UTC)
commit 54791b65bd510cbe0443f1025d83e41e000bc685
Author: William Hua <william hua canonical com>
Date: Tue Feb 28 09:51:44 2017 -0500
mir: deprecate gdk_mir_window_get_mir_surface ()
gdk/mir/gdkmir.h | 2 +-
gdk/mir/gdkmirwindowimpl.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/mir/gdkmir.h b/gdk/mir/gdkmir.h
index 38cc80c..811a8df 100644
--- a/gdk/mir/gdkmir.h
+++ b/gdk/mir/gdkmir.h
@@ -41,7 +41,7 @@ MirConnection *gdk_mir_display_get_mir_connection (GdkDisplay *display);
GDK_AVAILABLE_IN_3_16
GType gdk_mir_window_get_type (void);
-GDK_AVAILABLE_IN_3_16
+GDK_DEPRECATED_IN_3_22
MirSurface *gdk_mir_window_get_mir_surface (GdkWindow *window);
GDK_AVAILABLE_IN_3_16
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index 5ba232a..b47e4ea 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -2110,12 +2110,17 @@ _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window,
return impl->dummy_egl_surface;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
MirSurface *
gdk_mir_window_get_mir_surface (GdkWindow *window)
{
return _gdk_mir_window_get_mir_window (window);
}
+#pragma GCC diagnostic pop
+
MirWindow *
_gdk_mir_window_get_mir_window (GdkWindow *window)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]