"drawable" doesn't sound like the main window, but I'm not a GTK/GDK expert. You may want to use Spy++ to see exactly what's going on (if you
Calling (HWND)gdk_win32_drawable_get_handle((GdkDrawable*)parent->gobj()) function is what Inkscape did, but I am not sure where its argument 'parent' came from. Let me look at the source code of Inkscape in more detail, to see where its argument 'parent' comes from.
But thanks for your kind help first! ^_^
Bruce Cheng --
-----Original Message----- From: Jasper van de Gronde [mailto:th.v.d.gronde@...528...] Sent: Thursday, July 15, 2010 5:15 PM To: Bruce Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] How to create a Windows Style file selection modally using GTK?
Bruce wrote:
I set hwndOwner to the main window, using function
(HWND)gdk_win32_drawable_get_handle((GdkDrawable*)parent->gobj()), but still cannot make the dialog modal.
"drawable" doesn't sound like the main window, but I'm not a GTK/GDK expert. You may want to use Spy++ to see exactly what's going on (if you don't have it and can't find it, mail me personally).