Is there a way to use Pango Markup in GtkTextBuffer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to use Pango Markup in GtkTextBuffer

Douglas Vechinski

Is there any convenient way to insert text using the Pango Markup
language into a GtkTextBuffer.  Such functions exist for GtkLabel and
GtkCellView but I haven't seen any for GtkTextBuffer.  If none exist, is
there a reason they don't?  Seems like such functions would aid in
inserting text with attributes into a buffer easier than using and
defining all the necessary tags.

_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to use Pango Markup in GtkTextBuffer

Tim-Philipp Müller
On Tue, 2005-11-15 at 15:33 -0600, Douglas Vechinski wrote:

> Is there any convenient way to insert text using the Pango Markup
> language into a GtkTextBuffer.  Such functions exist for GtkLabel and
> GtkCellView but I haven't seen any for GtkTextBuffer.  If none exist, is
> there a reason they don't?  Seems like such functions would aid in
> inserting text with attributes into a buffer easier than using and
> defining all the necessary tags.

There's code for that in bugzilla:

 http://bugzilla.gnome.org/show_bug.cgi?id=59390

Cheers
 -Tim


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