Re: example apps that use cscHTML?



-
some examples from some of my code:


                        mv->view_widget = csc_html_new();
                        csc_html_enable_debug(CSC_HTML(mv->view_widget),TRUE);
                       
csc_html_allow_selection(CSC_HTML(mv->view_widget),TRUE);
                        break;


                        text =
pronto_message_get_htmlbody(mv->message,&length);
                       
csc_html_load_from_string(CSC_HTML(mv->view_widget),text,length);


static void csc_html_load_from_string(CscHTML *html,const gchar *str,gint len)
{
        CscHTMLStream *stream;

        stream = csc_html_begin (html);
        csc_html_write (html, stream, str, (len == -1) ? strlen (str) : len);
        csc_html_end (html, stream, CSC_HTML_STREAM_OK);

        return;
}



the header files provides quite a bit of information as well.



[Mon, 29 Jan 2001 15:46:21 +0100 (CET)] <jens j.>

-----BEGIN PGP SIGNED MESSAGE-----
 
 Hi everybody.
 
 I'm currently developing an app that should be able to display html-files. So I
 looked a bit around and thought that cscHTML would be a nice thing to use.
 Has anybody already used this? 
 I would like to get some example-code, suggestions or so...
 The only examples I found were a mail-tool and a browser. One in perl and the
 other in python. But I would like to see some C-code. Because I still got no
 experience with including non-standard widgets within gtk+-programs.
 
 thanks a lot.
 
 jens
 
 - -- 
 jens j. <jan0sch gmx net> , 29-Jan-2001 , 15:40:14
 Homepage : http://www.informatik.uni-rostock.de/~jahnke/index.html
 PGP-Fingerprint = 3F E9 70 B7 4C C5 72 A9  D2 A2 05 A5 16 50 D8 20
 A fool and his honey are soon parted.
 
 
 
 -----BEGIN PGP SIGNATURE-----
 Version: 2.6.3i
 Charset: noconv
 
 iQEVAwUBOnWCOkK2snmJZmBPAQEUEgf7BlfRaL6ta7WZA8RhtXnDcsMEBHdyG9Gp
 kfh4TmeRwcJWgFV7ZdONFnjI1Q6zHxuXqUL3Ntqs84XLjoH6o4DY+VqFVdFmeQUZ
 X+ggss50pfIliRtbEcN2CIBY0t7YqcTsGa8dIyK/bxBlxVptzqJsU1vHVTt9Rmkm
 GcTKN9ZB7ROzgD6K2FTP7ZyE8OsiMYLPzqxAFKjbKG5+glczGJeCrRC/c6esDnwi
 JIhrTMHnb/eEBrbtOzB2iYSQkVIPEnvPcCKfExQodNVpt6EyFSry25QL+Z2Hiizt
 nIoK78f8Vt+WDlW7riZgHF0/Sr+ak7HvWlQUp4nioGWZVR1/8nir3g==
 =+r2c
 -----END PGP SIGNATURE-----
 
 _______________________________________________
 gtk-app-devel-list mailing list
 gtk-app-devel-list gnome org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 
 

-- 
Charlie Schmidt - ishamael themes org





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