Re: Common widget for choosing file formats



On Tue, 2007-05-22 at 14:43 +0200, Mathias Hasselmann wrote:
> Applications supporting multiple file formats needs a file-format
> chooser in
> their file saving dialog. Several GNOME apps implement very similiar
> file-format choosers - so it makes sense to me, to add this widget to
> GTK+.
> 
> The widget would be used like this:
> 
>     GtkWidget *format_chooser = egg_file_format_chooser_new();
>     gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(dialog),
> format_chooser);
> 
>     EggFileFormat *format;
> 
>     format = egg_file_format_new (_("Scalable Vector Graphics (SVG)"), "svg", NULL);
>     egg_file_format_chooser_add_format(EGG_FILE_FORMAT_CHOOSER(format_chooser), format);

That may be a bit short for container formats, which must handle
subformats (e.g. AVI with different audio/video codecs).

	Xav





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