diff options
author | Alexey Yerin <yyp@disroot.org> | 2023-10-04 20:59:45 +0300 |
---|---|---|
committer | Alexey Yerin <yyp@disroot.org> | 2023-10-04 20:59:45 +0300 |
commit | 07cff557463d13bbd1baa970f609c8dbb13e16a8 (patch) | |
tree | 5ed04987ffde8fd18f7e58886cdb3e7e57465609 /cmd/demo | |
parent | a3f09a04518ce9ed7cb93719149f75c36ad02856 (diff) |
Update for opaque and other Hare changes
Diffstat (limited to 'cmd/demo')
-rw-r--r-- | cmd/demo/main.ha | 4 |
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")); |