Re: GtkCTree vs GtkTree?
- From: Alexandre Fayolle <Alexandre Fayolle logilab fr>
- To: learfox furry ao net
- Cc: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: GtkCTree vs GtkTree?
- Date: Tue, 31 Oct 2000 10:50:07 +0100 (CET)
On Tue, 31 Oct 2000 learfox furry ao net wrote:
Say, what's the differance between the gtk tree widget and the ctree
widget? I noticed on the GTK+ tutorial that only the tree widget is
documented.
The header file for the ctree widget seems quite different but
unfortunatly I couldn't find any tutorial for the ctree.
Is there a tutorial for the ctree widget or is this another place where
I would volenteer in (again)? *G*
They do not have much in common actually. The GtkTree widget is said to be
bugged (but I have not encountered them), and each time I've seen people
asking questions about GtkTrees, they've been politely suggested to
consider using GtkCTrees instead.
The main difference is that a GtkTree is a recursive structure, that uses
GtkItems which can hold GtkTrees, etc., whereas a GtkCTree inherits from
GtkCList, and offers a plain view of the tree. It also suffers the CList
limitations, esp. as to which widgets can be used in a cell.
Basically, you define a GtkCTree as you would with a GtkCList, but specify
which column will hold the tree. It is important to note that cells in
this column will not support some calls in the GtkCList API: for instance,
you cannot call get_text() (use node_get_text() instead).
And most of all, a GtkCTree is not MVC, and this is really a pitty. Let's
wait for Gtk2.0...
Alexandre Fayolle
--
http://www.logilab.com
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]