highlighting whole line - gtktextview/buffer/tag



hi,

how can i highlight the whole line in GtkTextView/Buffer/Tag?

if i'm using GtkTextTag's background property it highlights only until
the last character even it goes beyond new line char. and if a line
doesn't contain a character it even doesn't get highlighted...

i found some code in gtksourceview with drawing rectangles but there
should be a more simple/native way to do it since while marking multiple
lines it also highlights the lines until the end and not until the last
word and skips empty lines.

i would appreciate any help since i couldn't find anything on this
matter in gtk docs, gtk-demo nor google...

thanks...




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