From ea53890cd0249b6563b71f0f10aa951f04217f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 4 Jun 2018 11:41:35 +0200 Subject: [PATCH] Move delete-event signal connect from glade to C-File --- glade/main.glade | 1 - main.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/glade/main.glade b/glade/main.glade index 83e25ee..72e69ec 100644 --- a/glade/main.glade +++ b/glade/main.glade @@ -6,7 +6,6 @@ 250 True False - header diff --git a/main.c b/main.c index 1027cf8..2e455d5 100644 --- a/main.c +++ b/main.c @@ -246,6 +246,9 @@ int main(int argc, char **argv) open_data.main_window = GTK_WINDOW(gtk_builder_get_object(main_builder, "main-window")); g_signal_connect(GTK_WIDGET(gtk_builder_get_object(main_builder, "button-load-gds")), "clicked", G_CALLBACK(on_load_gds), (gpointer)&open_data); + + /* Connect delete-event */ + g_signal_connect(GTK_WIDGET(open_data.main_window), "delete-event", G_CALLBACK(on_window_close), NULL); /* Connect Convert button */