Import Dialog changed?
Dirk Hohndel
dirk at hohndel.org
Sat Feb 23 11:47:21 PST 2013
Linus Torvalds <torvalds at linux-foundation.org> writes:
> On Sat, Feb 23, 2013 at 11:29 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
>>
>> What's the typical extension used? I thought they were just XML files...
>
> They are xml files, but they use the extension "uddf"
Even on Windows?
Since we read uddf directly this should be straight forward, something
like this:
diff --git a/gtk-gui.c b/gtk-gui.c
index 4120714..b8ccf60 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -123,6 +123,8 @@ static GtkFileFilter *setup_filter(void)
GtkFileFilter *filter = gtk_file_filter_new();
gtk_file_filter_add_pattern(filter, "*.xml");
gtk_file_filter_add_pattern(filter, "*.XML");
+ gtk_file_filter_add_pattern(filter, "*.uddf");
+ gtk_file_filter_add_pattern(filter, "*.UDDF");
#ifdef LIBZIP
gtk_file_filter_add_pattern(filter, "*.sde");
gtk_file_filter_add_pattern(filter, "*.SDE");
Miika - were you planning to provide an XSLT file for uddf? I sent out
email discussing this question yesterday...
> Which reminds me, we probably should discuss the possibility of using
> an extension of our own.
>
> "sbf"? "ssfc"? "ssrf"? "surf"?
>
> Or should we just stay with xml?
I see no huge advantage doing that...
/D
More information about the subsurface
mailing list