mir: deprecate gdk_mir_window_get_mir_surface ()

This commit is contained in:
William Hua 2017-02-28 09:51:44 -05:00
parent f98e3dd09a
commit 54791b65bd
2 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,7 @@ MirConnection *gdk_mir_display_get_mir_connection (GdkDisplay *display);
GDK_AVAILABLE_IN_3_16 GDK_AVAILABLE_IN_3_16
GType gdk_mir_window_get_type (void); 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); MirSurface *gdk_mir_window_get_mir_surface (GdkWindow *window);
GDK_AVAILABLE_IN_3_16 GDK_AVAILABLE_IN_3_16

View File

@ -2110,12 +2110,17 @@ _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window,
return impl->dummy_egl_surface; return impl->dummy_egl_surface;
} }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
MirSurface * MirSurface *
gdk_mir_window_get_mir_surface (GdkWindow *window) gdk_mir_window_get_mir_surface (GdkWindow *window)
{ {
return _gdk_mir_window_get_mir_window (window); return _gdk_mir_window_get_mir_window (window);
} }
#pragma GCC diagnostic pop
MirWindow * MirWindow *
_gdk_mir_window_get_mir_window (GdkWindow *window) _gdk_mir_window_get_mir_window (GdkWindow *window)
{ {