vapi: make Gtk.Application.active_window nullable for gtk+-3 and gtk4
Gtk.Application.active_window
is non-nullable in VAPI, but is nullable indeed:
/**
* gtk_application_get_active_window: (attributes org.gtk.Method.get_property=active-window)
* @application: a `GtkApplication`
*
* Gets the “active” window for the application.
*
* The active window is the one that was most recently focused (within
* the application). This window may not have the focus at the moment
* if another application has it — this is just the most
* recently-focused window within this application.
*
* Returns: (transfer none) (nullable): the active window
**/
GtkWindow *
gtk_application_get_active_window (GtkApplication *application)
{
GtkApplicationPrivate *priv = gtk_application_get_instance_private (application);
g_return_val_if_fail (GTK_IS_APPLICATION (application), NULL);
return priv->windows ? priv->windows->data : NULL;
}