Re: Common widget for choosing file formats
- From: Xavier Bestel <xavier bestel free fr>
- To: Mathias Hasselmann <mathias hasselmann gmx de>
- Cc: "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: Re: Common widget for choosing file formats
- Date: Tue, 22 May 2007 17:11:19 +0200
On Tue, 2007-05-22 at 16:34 +0200, Mathias Hasselmann wrote:
> Am Dienstag, den 22.05.2007, 14:51 +0200 schrieb Xavier Bestel:
> > 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).
>
> Definitly didn't have this case in mind, and maybe its out of scope for
> a _common_ widget
Agreed. After all applications needing to choose a codec will want to
specify a bitrate and some other settings, way out of scope for your
generic widget. A simple format name with an optional icon should be ok.
Xav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]