Re: GtkTextView horizontal seperators...



On Mon, 2005-05-09 at 05:35, Freddie Unpenstein wrote:

Greetings people of the list...

I was wondering if anyone knows how I could draw a horizontal
red line across a GtkTextView buffer.

I could probably throw in a GtkHSeperator widget, or something,
but it's not a red line.

I could throw in an image which is a red line, but how would I
get it to stretch right across the width of the page?  (At the moment,
I'm using a 250 pixel wide line, which only goes a short way).


I'm sure there's numerous ways to do it, and they probably have
various pros and cons.  So the more the merrier...  :)

Since version 2.6 there is 
  gtk_tree_view_set_row_separator_func()
Don't know whether it fits your needs, but i doubt the separator will be
red by default. And it might not render nicely in fixed-height-mode, but
as i didn't use that feature yet, i really don't know.

Markus.









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