forked from AuroraMiddleware/gtk
GdkSurface - Don't call unimplemented NULL set_startup_id() vfunc on Win32
GdkSurface::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:
parent
31cd43a245
commit
2bd6661cd3
@ -4202,7 +4202,10 @@ void
|
||||
gdk_surface_set_startup_id (GdkSurface *surface,
|
||||
const gchar *startup_id)
|
||||
{
|
||||
GDK_SURFACE_IMPL_GET_CLASS (surface->impl)->set_startup_id (surface, startup_id);
|
||||
GdkSurfaceImplClass *klass = GDK_SURFACE_IMPL_GET_CLASS (surface->impl);
|
||||
|
||||
if (klass->set_startup_id)
|
||||
klass->set_startup_id (surface, startup_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user