mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
GtkApplication: Prevent more crashes around shutdown
gtk_application_shutdown clears the impl member, so all callbacks, signal handlers, etc that might still be triggered between a shutdown call and the return from the mainloop better be prepared to deal with impl being NULL.
This commit is contained in:
parent
efd3758f6a
commit
7603b52790
@ -1780,14 +1780,16 @@ void
|
|||||||
gtk_application_handle_window_realize (GtkApplication *application,
|
gtk_application_handle_window_realize (GtkApplication *application,
|
||||||
GtkWindow *window)
|
GtkWindow *window)
|
||||||
{
|
{
|
||||||
gtk_application_impl_handle_window_realize (application->priv->impl, window);
|
if (application->priv->impl)
|
||||||
|
gtk_application_impl_handle_window_realize (application->priv->impl, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gtk_application_handle_window_map (GtkApplication *application,
|
gtk_application_handle_window_map (GtkApplication *application,
|
||||||
GtkWindow *window)
|
GtkWindow *window)
|
||||||
{
|
{
|
||||||
gtk_application_impl_handle_window_map (application->priv->impl, window);
|
if (application->priv->impl)
|
||||||
|
gtk_application_impl_handle_window_map (application->priv->impl, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user