I'm afraid this patch is an inkscape only patch - because the SVG preview pane requires a lot of inkscape specific code. However, the method for making a generic GTK native file dialog from the inkscape code should be fairly straightforward. The main problem is that the GTK dialog allows you to do strange things like add extra controls, and tweak the layout of the dialog - something that clearly can't be replicated with a native dialog. I guess it would be necessary to create a family of GTK classes for native dialogs on different platforms, but with support for layout tweaking, and extra controls removed.
(I believe the present GTK dialog has support for adding a single extra preview widget - there is some chance that it might be possible to host this inside the native Win32 dialog. I don't know)
The real question is: How interested would the GTK folks be in implementing something like this? How would I find out? Also, I'm a bit sick of file dialogs at the moment, after spending 10 months painstakingly ironing out 1000s of tiny little subtle problems. But I'd be happy to show some else what to do!
On Thu, 2008-01-17 at 13:43 +0100, Tobias Jakobs wrote:
Hi!
On Jan 16, 2008 11:50 PM, Joel Holdsworth <joel@...1709...> wrote:
Hi All,
I'm happy to announce, after all this time, that my native file dialogs for windows are now ready.
Is this an Inkscape only dialog or have you added it to gtk? I ask, because I'd like to see other gtk programs with an native dialog too.
Regards, Tobias