Aaron S
Aaron S

Reputation: 5323

What are the differences between GtkEntry and GtkTextView?

Apart from GTextView being multiline and able to display text in different styles (font, color etc. using tags), what are other obvious differences between the two?

Upvotes: 0

Views: 716

Answers (2)

Johan Dahlin
Johan Dahlin

Reputation: 26496

Both GtkEntry and GtkTextView can be multiline.

GtkTextView can in addition:

  • Does not store any data, it uses GtkTextBuffer for that
  • Several GtkTextView widgets can display the same content
  • Be serialized to disk as RTF
  • Contain other GtkWidgets
  • Support advanced buffer manipulation through the GtkTextBuffer api

Upvotes: 3

Federico klez Culloca
Federico klez Culloca

Reputation: 27119

I think those are the big differences. They are meant to accomplish different tasks.

Upvotes: 0

Related Questions