Query GdkWindow reference only if available
commit3966ba8c4b2656c12bed7a5bf96a39eadc49d5a7
authorEnrico Tröger <enrico.troeger@uvena.de>
Sun, 12 Oct 2014 14:35:46 +0000 (12 16:35 +0200)
committerEnrico Tröger <enrico.troeger@uvena.de>
Sun, 12 Oct 2014 14:35:46 +0000 (12 16:35 +0200)
tree24258b3adb49c7cc83cbc621d761d9514ab4bf13
parent75ab7103f1b8d5e48a07474a09e0542d2a449f04
Query GdkWindow reference only if available

On startup, the Geany main window doesn't have a GdkWindow yet
(probably because it is not yet mapped). This causes many
'gdkdrawable-win32.c:2013 drawable is not a pixmap or window'
warnings when resolving shortcuts on Windows.
Since we pass the SLR_NO_UI to the Windows API, we probably
don't need the parent hWnd reference at all.
src/win32.c