Re: file type selection



jacob berkman wrote:

> On 31 May 2001 14:05:32 -0400, Michael Meeks wrote:
> >
> >         So, here is my file selector API (roughly):
> >
> >         char *mime_names [] = {
> >                 "application/x-gnumeric",
> >                 "application/x-xbase" };
> >         char *regexps [] = {
> >                 ".*\.xls" };
> >         CORBA_sequence_CORBA_string mime = { 0, 2, mime_names, FALSE };
> >         CORBA_sequence_CORBA_string regexps = { 0, 1, regexps, FALSE };
> >
> >         obj = bonobo_get_object ("bonobo:file_selector");
> >
> >         bonobo_pbclient_setv (
> >                 obj,
> >                 "mime_types", TC_CORBA_sequence_CORBA_string, &mime,
> >                 "regexps", TC_CORBA_sequence_CORBA_string, &regexps,
> >                 "saveas_uri", TC_CORBA_string, "file:/tmp/ILoadedThis",
> >                 "send_events_on_entry_change", TC_CORBA_boolean, FALSE,
> >                 "allow_multi_selection", TC_CORBA_boolean, FALSE,
> >                 "history_app_id", TC_CORBA_string, "MyAppName",
> >                 NULL);
> >
> >         Then perhaps the completion event would give me a status, <cancel>
> > or <selected> and a selection sequence etc. etc.
>
> i've started hooking up some of the directory filtering things, and
> would like a bit of feedback.
>
> does it really make sense to accept both regexps and mime types[1]?

IMO we do not need regexps. And we can add such features later if there is a
real demand for it.

- Dietmar





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