Re: using winapi in gtk



Daniel K. O. wrote:
Allin Cottrell wrote:

Personally, I use the native win32 file open/save dialogs in the win32 port of my gtk app, because they are familiar to Windows users while the gtk versions are not.

Unfortunately it freezes the rest of the GTK gui while the user doesn't close the dialog. If it's a networking program, this is usually not acceptable.

I get around this by calling GetOpenFileName (or similar) in a new
thread and passing the results back to the gtk mainloop using g_idle_add.

--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]