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 /examples/pugl_management_demo.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 'examples/pugl_management_demo.c')
-rw-r--r-- | examples/pugl_management_demo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pugl_management_demo.c b/examples/pugl_management_demo.c index ec2805b..30a026e 100644 --- a/examples/pugl_management_demo.c +++ b/examples/pugl_management_demo.c @@ -118,7 +118,7 @@ toggleDialog(DemoApp* const app) puglSetViewHint(app->dialogView.view, PUGL_RESIZABLE, true); puglSetViewHint( app->dialogView.view, PUGL_VIEW_TYPE, PUGL_VIEW_TYPE_DIALOG); - puglSetWindowTitle(app->dialogView.view, "Dialog"); + puglSetViewString(app->dialogView.view, PUGL_WINDOW_TITLE, "Dialog"); } return puglShow(app->dialogView.view, PUGL_SHOW_RAISE); @@ -228,7 +228,7 @@ main(int argc, char** argv) app.world = puglNewWorld(PUGL_PROGRAM, 0); puglSetWorldHandle(app.world, &app); - puglSetClassName(app.world, "PuglDemoApp"); + puglSetWorldString(app.world, PUGL_CLASS_NAME, "PuglDemoApp"); app.mainView.view = puglNewView(app.world); app.mainView.label = "Main: "; @@ -243,7 +243,7 @@ main(int argc, char** argv) puglSetViewHint(app.mainView.view, PUGL_IGNORE_KEY_REPEAT, true); puglSetViewHint(app.mainView.view, PUGL_RESIZABLE, true); puglSetViewHint(app.mainView.view, PUGL_VIEW_TYPE, PUGL_VIEW_TYPE_NORMAL); - puglSetWindowTitle(app.mainView.view, "Main Window"); + puglSetViewString(app.mainView.view, PUGL_WINDOW_TITLE, "Main Window"); PuglStatus st = PUGL_SUCCESS; if ((st = puglRealize(app.mainView.view))) { |