Skip to content

gtk/gtkaccelgroup.c: Fix build on Visual Studio

Chun-wei Fan requested to merge master.struct.msvc into master

Hi,

From the commit message:

Visual Studio does not allow one to initialize structure members with non-constant expressions, so fix this by using strlen() directly when computing the name length.

I am aware the original code is done as an optimization technique, so please let me know if there is any better way to preserve this better without breaking the build on Visual Studio.

With blessings, thank you!

Merge request reports