bonobo-text-plain



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?

--- 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;






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