From bd4f79646f623e929e6aa22bea028952b515aeef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Jan 2023 10:30:10 -0500 Subject: Add general string hint interface This replaces the window title and class name APIs with a more general one that can be easily extended to other things, like icon names, more detailed application hints, and so on. --- test/test_clipboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_clipboard.c') diff --git a/test/test_clipboard.c b/test/test_clipboard.c index a99d150..debe8e3 100644 --- a/test/test_clipboard.c +++ b/test/test_clipboard.c @@ -48,12 +48,12 @@ main(int argc, char** argv) puglParseTestOptions(&argc, &argv), false}; - puglSetClassName(test.world, "PuglTest"); + puglSetWorldString(test.world, PUGL_CLASS_NAME, "PuglTest"); // Set up views for (unsigned i = 0U; i < 2; ++i) { test.views[i] = puglNewView(test.world); - puglSetWindowTitle(test.world, "Pugl Clipboard Test"); + puglSetViewString(test.world, PUGL_WINDOW_TITLE, "Pugl Clipboard Test"); puglSetBackend(test.views[i], puglStubBackend()); puglSetHandle(test.views[i], &test); puglSetEventFunc(test.views[i], onEvent); -- cgit v1.2.1