printing GtkTextView contents



Hello,
is there an easy way to get the contents of a GtkTextView so that i
can draw it on a gtkPrintOperation surface?

Currently i think think the simplest way is to subclass GtkTextView and
add a method for drawing its content on a arbitrary GdkDrawable
(call GtkTextDisplays gtk_text_layout_draw func with the TextLayout
slightly changed for printing).

Though i think i must have missed something, is there really no
api way to do this?

emanuel


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