about summary refs log tree commit diff
path: root/cmd/demo
diff options
context:
space:
mode:
authorAlexey Yerin <yyp@disroot.org>2023-10-04 20:59:45 +0300
committerAlexey Yerin <yyp@disroot.org>2023-10-04 20:59:45 +0300
commit07cff557463d13bbd1baa970f609c8dbb13e16a8 (patch)
tree5ed04987ffde8fd18f7e58886cdb3e7e57465609 /cmd/demo
parenta3f09a04518ce9ed7cb93719149f75c36ad02856 (diff)
Update for opaque and other Hare changes
Diffstat (limited to 'cmd/demo')
-rw-r--r--cmd/demo/main.ha4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/demo/main.ha b/cmd/demo/main.ha
index cf807c6..0926134 100644
--- a/cmd/demo/main.ha
+++ b/cmd/demo/main.ha
@@ -6,7 +6,7 @@ use os;
 use rt;
 use types::c;
 
-fn about_clicked(btn: *gtk::Button, data: *void) void = {
+fn about_clicked(btn: *gtk::Button, data: *opaque) void = {
 	let dialog = gtk::about_dialog_new();
 	const authors: []*c::char = [
 		c::fromstr("Harriet?"),
@@ -28,7 +28,7 @@ fn about_clicked(btn: *gtk::Button, data: *void) void = {
 	gtk::widget_show_all(dialog);
 };
 
-fn activate(app: *gio::Application, data: *void) void = {
+fn activate(app: *gio::Application, data: *opaque) void = {
 	const app = app: *gtk::Application;
 
 	let button = gtk::button_new_with_label(c::fromstr("About"));