anna328p
anna328p

Reputation: 139

Writing a Stack Exchange chat application in GTK+ 3, what should I use to display messages?

I am writing an application for Stack Exchange chat using GTK+ 3. I was wondering what components are generally used and recommended to use for actually displaying messages.

My options right now are WebKit (for easy HTML rendering), a GtkListBox (for easy list management), or something else. What would be the best choice to make in this case?

Upvotes: 2

Views: 643

Answers (2)

theGtknerd
theGtknerd

Reputation: 3745

Have you considered a Treeview ? A Treeview and a ListStore are pretty easy to setup and manage and have all the capabilities of a Listbox in your case.

Upvotes: 1

Jussi Kukkonen
Jussi Kukkonen

Reputation: 14587

Adding potentially tens of thousands of widgets (in the case of a ListBox) is usually not a great idea. Take a look at the text widgets (TextView, TextBuffer, etc): The powerful formatting gives you quite a lot rendering possibilities and it'll perform fairly well even with tens of thousands of messages. See chatview in Polari IRC client for an example (also screenshots).

Upvotes: 2

Related Questions