diff options
author | David Robillard <d@drobilla.net> | 2023-01-12 10:30:10 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-14 11:53:28 -0500 |
commit | bd4f79646f623e929e6aa22bea028952b515aeef (patch) | |
tree | e2dcc2635bb2b12b9c552755b35a0343005ce88a /test/test_remote_copy_paste.c | |
parent | 786a28e4a2bc9fce95a8d2e6cd1a4c76d2ae1a0f (diff) | |
download | pugl-bd4f79646f623e929e6aa22bea028952b515aeef.tar.gz pugl-bd4f79646f623e929e6aa22bea028952b515aeef.tar.bz2 pugl-bd4f79646f623e929e6aa22bea028952b515aeef.zip |
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.
Diffstat (limited to 'test/test_remote_copy_paste.c')
-rw-r--r-- | test/test_remote_copy_paste.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |