Re: ANNOUNCE gtksourceview 0.0.1 (alpha)



Andy Kahn <ackahn netapp com> writes:
> On Mon, Jan 22, 2001 at 10:57:43AM -0500, Havoc Pennington wrote:
> > 
> > Andy Kahn <ackahn netapp com> writes:
> > > 
> > > What does gtksourceview provide that the new GtkTextView/GtkTextBuffer
> > > widgets does not?
> > 
> > It's a subclass that adds syntax highlighting, line numbers, and other
> > programming-editor features.
> 
> But doesn't the combination of GtkTextView/GtkTextBuffer provide
> exactly these features?

GtkTextView has a way to make colored text, and a way to draw stuff
like line numbers and breakpoints in a sidebar, but it doesn't know
how to parse C code in order to color the text, and it doesn't
actually draw the line numbers.

GtkTextView is a general-purpose widget you could use for lots of
different editing tasks, GtkSourceView specializes it for a code
editor.

Havoc





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