application: Add weak ref to window
This commit is contained in:
@@ -391,6 +391,7 @@ gcal_application_activate (GApplication *application)
|
|||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_signal_connect (self->window, "destroy", G_CALLBACK (gtk_widget_destroyed), &self->window);
|
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);
|
gtk_widget_show (self->window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user