aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-21 18:13:15 -0500
committerDavid Robillard <d@drobilla.net>2025-01-21 18:13:22 -0500
commit3c87f1f1fd3b7a58d29e343641d35bb1382cfac8 (patch)
treed092eb192f8724794c10e01d26feaf4235d931a1 /src
parent0452a367a89ac415c647831880485a55eaddbe35 (diff)
downloadpugl-3c87f1f1fd3b7a58d29e343641d35bb1382cfac8.tar.gz
pugl-3c87f1f1fd3b7a58d29e343641d35bb1382cfac8.tar.bz2
pugl-3c87f1f1fd3b7a58d29e343641d35bb1382cfac8.zip
Use a consistent naming scheme for parent functions
These could be combined into a hint-like general get/set mechanism, but currently there's only two window relationships and no immediate plans to add more, so that feels a bit over-engineered. So, just rename for consistency with puglSetTransientParent().
Diffstat (limited to 'src')
-rw-r--r--src/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index 46b2f3d..8c2268b 100644
--- a/src/common.c
+++ b/src/common.c
@@ -316,14 +316,14 @@ puglGetFrame(const PuglView* view)
}
PuglStatus
-puglSetParentWindow(PuglView* view, PuglNativeView parent)
+puglSetParent(PuglView* view, PuglNativeView parent)
{
view->parent = parent;
return PUGL_SUCCESS;
}
PuglNativeView
-puglGetParentWindow(const PuglView* const view)
+puglGetParent(const PuglView* const view)
{
return view->parent;
}