Re: Simple Html-View widget



You mean using a label instead of a text view then?
Or can I use gtk_label_set_markup() together with a text-buffer?

A label can use Pango-Markup language, but I didn't find a way to make a newline using a markup.
When parsing xml, all line-ends are ignored.

regards,
  Arne


Am 11.09.2011 13:45, schrieb Dov Grobgeld:
Just use gtk_label_set_markup().

Regards,
Dov

On Sat, Sep 10, 2011 at 20:35, Craig<craigbakalian verizon net>  wrote:

Hi,

I am not expert on this issue, but isn't Pango the way to go.  I think
you should look up the Pango functions or how gtk deals with the Pango
thing.

Craig Bakalian

Hello,

in my application I store some Text data in xml files.
Some nodes are displayed via a gtk-label or an gtk-entry, others are
displayed via a gtk text-view.

Now I want to extend the text-view (and storage) with the capability to
handle some formated text.
I just need things like bold text, linefeed, maybe headers and colors.
Since I don't want to create a own text storage format and I am using
already xml for text storing
html would be nearby.

Is there some Gtk-Widget like the textview/buffer which can render simple
HTML Tags?
If not, what is your recommendation for my problem.

regards
    Arne


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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