aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 20:19:01 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commitb0ac6dcb492b68404d800fe8ed0c7393d487fa4b (patch)
tree41d0050ef6d33bfe9f2186195168e36f8a8b8f3a /test
parent075c5c5927e511dd03d9608a285ed58ef395120b (diff)
downloadpugl-b0ac6dcb492b68404d800fe8ed0c7393d487fa4b.tar.gz
pugl-b0ac6dcb492b68404d800fe8ed0c7393d487fa4b.tar.bz2
pugl-b0ac6dcb492b68404d800fe8ed0c7393d487fa4b.zip
Add puglSetClassName()
Diffstat (limited to 'test')
-rw-r--r--test/pugl_cairo_test.c2
-rw-r--r--test/pugl_test.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c
index c396dad..52cbbbd 100644
--- a/test/pugl_cairo_test.c
+++ b/test/pugl_cairo_test.c
@@ -206,10 +206,10 @@ main(int argc, char** argv)
}
world = puglNewWorld();
+ puglSetClassName(world, "PuglCairoTest");
PuglRect frame = { 0, 0, 512, 512 };
PuglView* view = puglNewView(world);
- puglInitWindowClass(view, "PuglCairoTest");
puglSetFrame(view, frame);
puglSetMinSize(view, 256, 256);
puglInitWindowHint(view, PUGL_RESIZABLE, resizable);
diff --git a/test/pugl_test.c b/test/pugl_test.c
index 285c5d9..e291df7 100644
--- a/test/pugl_test.c
+++ b/test/pugl_test.c
@@ -314,8 +314,9 @@ main(int argc, char** argv)
app.parent = puglNewView(app.world);
app.child = puglNewView(app.world);
+ puglSetClassName(app.world, "Pugl Test");
+
const PuglRect parentFrame = { 0, 0, 512, 512 };
- puglInitWindowClass(app.parent, "PuglTest");
puglSetFrame(app.parent, parentFrame);
puglSetMinSize(app.parent, borderWidth * 3, borderWidth * 3);
puglSetAspectRatio(app.parent, 1, 1, 16, 9);
@@ -336,7 +337,6 @@ main(int argc, char** argv)
return 1;
}
- puglInitWindowClass(app.child, "PuglTest");
puglSetFrame(app.child, getChildFrame(parentFrame));
puglInitWindowParent(app.child, puglGetNativeWindow(app.parent));