Re: HTML rendering component
- From: Chris Jones <chris black-sun co uk>
- To: partap yahoo com, gnome-devel-list gnome org
- Subject: Re: HTML rendering component
- Date: Mon, 7 Feb 2000 13:26:04 GMT
Hi
"Gurupartap Davis" <partap@yahoo.com> wrote:
>
> I can't seem to find documentation for this widget, either. Has anyone =
> used it?
I don't think there is any documentation for it, probably because the widget
is going to be replaced in GNOME 2 with the new 'gtkhtml' widget.
Basically, if you want to release your app before GNOME2 is available or you
want it to work on legacy GNOME 1 installations, use gtkxmhtml, otherwise,
check gtkhtml out of CVS and start using that (it's getting quite good now
too).
A quick guide to getting GtkXmHTML up and running:
> GtkWidget *html = gtk_xmhtml_new(); /* Create the GtkXmHTML widget */
> gtk_xmhtml_source (GTK_XMHTML (html), "<html><head><title>Foo</title><body>HTML widget</body></html>"); /* pass a const char * to the HTML widget for displaying */
There are some other calls that can be used to change the style of links
(gtk_xmhtml_set_anchor_underline_type (GTK_XMHTML (html),
GTK_ANCHOR_SINGLE_LINE); will make it look "normal") and a few other things,
but that should be enough to get the widget existing and displaying.
The GNOME Help Browser uses the GtkXmHTML widget and is a fairly good source
of info on the widget, but it is spread all around the code and isn't that
easy to follow.
Does anyone have any links to a SGML/DocBook tutorial of some kind? If so,
I'll knock up a quick entry for GtkXmHTML for the gnomeui docs (it would be
incomplete since I haven't yet used/figured out all the API calls) if that
would be useful.
--
_____ _ _ _____
| __ | |___ ___| |_ ___| __|_ _ ___ Chris "Ng" Jones
| __ -| | .'| _| '_|___|__ | | | | chris@black-sun.co.uk
|_____|_|__,|___|_,_| |_____|___|_|_| www.black-sun.co.uk
S o f t w a r e
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]