From 7570f3d40a258511fe25f4c239d2f746c97340e0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 16 Dec 2021 20:11:47 -0500 Subject: Rename puglSetTransientFor to puglSetTransientParent --- include/pugl/pugl.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 59b8847..96826a1 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -1024,7 +1024,7 @@ puglSetParentWindow(PuglView* view, PuglNativeView parent); */ PUGL_API PuglStatus -puglSetTransientFor(PuglView* view, PuglNativeView parent); +puglSetTransientParent(PuglView* view, PuglNativeView parent); /** Realize a view by creating a corresponding system view or window. @@ -1456,11 +1456,23 @@ puglInitWindowAspectRatio(PuglView* view, On X11, parent must be a Window. On OSX, parent must be an NSView*. */ -static inline PUGL_DEPRECATED_BY("puglSetTransientFor") +static inline PUGL_DEPRECATED_BY("puglSetTransientParent") void puglInitTransientFor(PuglView* view, uintptr_t parent) { - puglSetTransientFor(view, (PuglNativeWindow)parent); + puglSetTransientParent(view, (PuglNativeWindow)parent); +} + +/** + Set transient parent before creating a window. + + @deprecated Use puglSetTransientParent(). +*/ +static inline PUGL_DEPRECATED_BY("puglSetTransientParent") +PuglStatus +puglSetTransientFor(PuglView* view, uintptr_t parent) +{ + return puglSetTransientParent(view, (PuglNativeWindow)parent); } /** -- cgit v1.2.1