From 07cff557463d13bbd1baa970f609c8dbb13e16a8 Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Wed, 4 Oct 2023 20:59:45 +0300 Subject: Update for opaque and other Hare changes --- cmd/demo/main.ha | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/demo/main.ha') 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")); -- cgit 1.3.0-6-gf8a5