W32: Use correct hinstance values
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 16 Jun 2018 18:24:56 +0000 (18:24 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 16 Jun 2018 18:24:56 +0000 (18:24 +0000)
commit8a1106c6394805bfdd6d5a7e39d2f37a40959d61
tree050bc9119dd36e6eba135759135a92add4badbc0
parent6e085b3bf136997e27f69ab7eb45fdf83037f536
W32: Use correct hinstance values

According to the old new thing[0], we should use the instance handle
of the GDK/GTK DLL when registering GDK-specific types in the system.
Using the instance handle for the whole application in these circumstances
is not an error, but can potentially clash with the types registered
by the application itself.

Also, extract window class icons from the GDK/GTK DLL, not from the
application executable.

[0]: https://blogs.msdn.microsoft.com/oldnewthing/20050418-59/?p=35873
gdk/win32/gdksurface-win32.c