GdkWindow - Don't call unimplemented NULL set_startup_id() vfunc on Win32

GdkWindow::set_startup_id() is NULL on Win32 and would cause a segfault
if called.

While the documentation of the main caller of set_startup_id(),
gtk_window_set_startup_id(), mentions that it's not implemented on
Windows it can still be automatically called via Glade and simply doing
nothing on Win32 is going to be less disruptive than a segfault.
This commit is contained in:
Sebastian Dröge 2019-05-07 09:59:10 +03:00
parent 8af587c189
commit 02d4fbe29e

View File

@ -10500,7 +10500,10 @@ void
gdk_window_set_startup_id (GdkWindow *window,
const gchar *startup_id)
{
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_startup_id (window, startup_id);
GdkWindowImplClass *klass = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (klass->set_startup_id)
klass->set_startup_id (window, startup_id);
}
/**