about summary refs log tree commit diff
path: root/cmd/demo-gtk3/main.ha
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/demo-gtk3/main.ha')
-rw-r--r--cmd/demo-gtk3/main.ha10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/demo-gtk3/main.ha b/cmd/demo-gtk3/main.ha
index a106b5c..7637fcb 100644
--- a/cmd/demo-gtk3/main.ha
+++ b/cmd/demo-gtk3/main.ha
@@ -7,7 +7,7 @@ use rt;
 use types::c;
 
 fn about_clicked(btn: *gtk::Button, data: *opaque) void = {
-	let dialog = gtk::about_dialog_new(): *gtk::AboutDialog;
+	let dialog = gtk::about_dialog_new();
 	const authors: []*c::char = [
 		c::nulstr("Harriet?\0"),
 		null: *c::char,
@@ -30,15 +30,15 @@ fn about_clicked(btn: *gtk::Button, data: *opaque) void = {
 fn activate(app: *gio::Application, data: *opaque) void = {
 	const app = app: *gtk::Application;
 
-	let button = gtk::button_new_with_label(c::nulstr("About\0")): *gtk::Button;
+	let button = gtk::button_new_with_label(c::nulstr("About\0"));
 	gtk::button_connect_clicked(button, &about_clicked, null);
 
-	let headerbar = gtk::header_bar_new(): *gtk::HeaderBar;
+	let headerbar = gtk::header_bar_new();
 	gtk::header_bar_set_title(headerbar, c::nulstr("hare-gi demo\0"));
 	gtk::header_bar_set_show_close_button(headerbar, glib::TRUE);
 	gtk::header_bar_pack_end(headerbar, button);
 
-	let window = gtk::application_window_new(app): *gtk::ApplicationWindow;
+	let window = gtk::application_window_new(app);
 	gtk::window_set_titlebar(window, headerbar);
 	gtk::widget_show_all(window);
 };
@@ -47,7 +47,7 @@ export fn main() void = {
 	let app = gtk::application_new(
 		c::nulstr("hare_gi.example\0"),
 		gio::ApplicationFlags::FLAGS_NONE,
-	): *gtk::Application;
+	);
 	gio::application_connect_activate(app, &activate, null);
 	const status = gio::application_run(
 		app, rt::argc: int, rt::argv: **c::char,