[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: autoresize of ctree?
- From: u07ih abdn ac uk
- To: gtk-app-devel-list redhat com
- Subject: Re: autoresize of ctree?
- Date: Sun, 6 Feb 2000 20:51:19 +0000 (GMT)
> I tried several things and the only a call like:
>
> gtk_clist_set_column_auto_resize(GTK_CLIST(ctree),0,TRUE);
> (this seems to be missing for ctrees)
>
> has the desired effect - but this produces a lot of
>
> Gdk-CRITICAL **: file gdkfont.c: line 304 (gdk_string_width): assertion `string != NULL' failed.
>
> errors...
To use gtk_clist_set_column_auto_resize the c[list|tree] has to be realised
otherwise it goes funny (with columns being set to only a few pixels wide).
However your error is possibly because you're using a seperate column to do the
tree bit.
As I've not really explained it too well, heres a diagram
---------------------------
| Col 0| Col 1 |
| [-]--| / |
| + --| usr |
Doing it that way will generate the gdk_font error. The way to solve it is
---------------------------
| Col 0 |Col 1 |
| [-]-- / | |
| [+]-- usr | |
IE putting text in the same column as the tree stuff.
Hope that helps.
iain
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]