mono / gtk-sharp

Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono
http://www.mono-project.com/GtkSharp
Other
428 stars 140 forks source link

Correct use of sizeof method in gtk/ColorSelection.custom #180

Closed pshulga-dev closed 7 years ago

pshulga-dev commented 7 years ago

If compiling gtk-sharp using mono 4.8.0 on debian 8 I get error like:

generated/ColorSelection.custom(47,20): error CS0233: `Gdk.Color' does not have a predefined size, therefore sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf)

monojenkins commented 7 years ago

Hello! I'm the build bot for the Mono project.

I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done.

Contributors can ignore this message.

Therzok commented 7 years ago

Thank you!