application: Add weak ref to window

This commit is contained in:
Georges Basile Stavracas Neto
2021-08-16 19:47:54 -03:00
parent 440bb39498
commit 7bf8d8851b
+1
View File
@@ -391,6 +391,7 @@ gcal_application_activate (GApplication *application)
NULL);
g_signal_connect (self->window, "destroy", G_CALLBACK (gtk_widget_destroyed), &self->window);
g_object_add_weak_pointer (G_OBJECT (self->window), (gpointer*) &self->window);
gtk_widget_show (self->window);
}