aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_print_events.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-01 19:35:58 +0200
committerDavid Robillard <d@drobilla.net>2020-04-01 19:41:37 +0200
commitfcddc7933dbff47754b8e4acea7406b77df1bf21 (patch)
tree8d82bc731b5e86b10e28acc85654d9be86ff321a /examples/pugl_print_events.c
parent3f71daba7d92c50f7fd31e8775fc58d3ebf3900d (diff)
downloadpugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.tar.gz
pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.tar.bz2
pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.zip
Replace puglShowWindow() with puglRealize()
Diffstat (limited to 'examples/pugl_print_events.c')
-rw-r--r--examples/pugl_print_events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c
index 9c81033..52b58c4 100644
--- a/examples/pugl_print_events.c
+++ b/examples/pugl_print_events.c
@@ -57,11 +57,12 @@ main(void)
app.view = puglNewView(app.world);
puglSetClassName(app.world, "Pugl Print Events");
+ puglSetWindowTitle(app.view, "Pugl Event Printer");
puglSetBackend(app.view, puglStubBackend());
puglSetHandle(app.view, &app);
puglSetEventFunc(app.view, onEvent);
- if (puglCreateWindow(app.view, "Pugl Event Printer")) {
+ if (puglRealize(app.view)) {
return logError("Failed to create window\n");
}