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_remote_copy_paste.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_remote_copy_paste.c') diff --git a/test/test_remote_copy_paste.c b/test/test_remote_copy_paste.c index 2fe55fe..a9f079e 100644 --- a/test/test_remote_copy_paste.c +++ b/test/test_remote_copy_paste.c @@ -142,8 +142,8 @@ main(int argc, char** argv) // Set up copier view app.copierView = puglNewView(app.world); - puglSetClassName(app.world, "PuglTest"); - puglSetWindowTitle(app.copierView, "Pugl Copy Test"); + puglSetWorldString(app.world, PUGL_CLASS_NAME, "PuglTest"); + puglSetViewString(app.copierView, PUGL_WINDOW_TITLE, "Pugl Copy Test"); puglSetBackend(app.copierView, puglStubBackend()); puglSetHandle(app.copierView, &app); puglSetEventFunc(app.copierView, onCopierEvent); @@ -152,8 +152,8 @@ main(int argc, char** argv) // Set up paster view app.pasterView = puglNewView(app.world); - puglSetClassName(app.world, "PuglTest"); - puglSetWindowTitle(app.pasterView, "Pugl Paste Test"); + puglSetWorldString(app.world, PUGL_CLASS_NAME, "PuglTest"); + puglSetViewString(app.pasterView, PUGL_WINDOW_TITLE, "Pugl Paste Test"); puglSetBackend(app.pasterView, puglStubBackend()); puglSetHandle(app.pasterView, &app); puglSetEventFunc(app.pasterView, onPasterEvent); -- cgit v1.2.1