Re: bonobo-text-plain
- From: Ali Abdin <aliabdin aucegypt edu>
- To: Dave Camp <dave helixcode com>
- Cc: gnome-components-list gnome org
- Subject: Re: bonobo-text-plain
- Date: Sat, 06 Jan 2001 23:14:25 -0200
On 06 Jan 2001 14:59:56 -0500, Dave Camp wrote:
> The oafinfo file for the bonobo-text-plain lists text/* as a supported
> mime type, but the pstream_load function fails if the content type is
> not text/plain. The following patch changes pstream_load to accept any
> text content type. Is this ok to commit?
This is bad I think. The thing is, do we want the bonobo-text-plain
component to handle things like "text/html" ? (i.e. I think these would
be handled by a html component)
> --- components/text-plain/bonobo-text-plain.c 2000/11/11 11:20:05
> 1.61
> +++ components/text-plain/bonobo-text-plain.c 2001/01/06 19:54:47
> @@ -482,7 +482,7 @@
> Bonobo_Stream_iobuf *buffer;
> size_t pos;
>
> - if (*type && g_strcasecmp (type, "text/plain") != 0) {
> + if (*type && g_strncasecmp (type, "text/", 5) != 0) {
> CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
> ex_Bonobo_Persist_WrongDataType,
> NULL);
> return;
>
>
>
> _______________________________________________
> gnome-components-list mailing list
> gnome-components-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-components-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]