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

Re: autoresize of ctree?



On Sun, Feb 06, 2000 at 02:58:40PM +0100, Erik Mouw wrote:
> On Sun, 06 Feb 2000 14:27:05 +0100, lists@nuts.netplace.de wrote:
> > got here a little problem with my directory-browser (implemented as ctree)
> > (Gtk 1.2.6)
> > 
> > 
> > Can anybody give me a pointer how to put a ctree in a scrolled window
> > to make the scrollbars works as expected?
> > 

> You can make a directory browser by using a standard file selection dialog
> with the file_list hidden:
> 
>   GtkWidget *dirbrowser;
> 
>   dirbrowser = gtk_file_selection_new("Directory browser");
> 
>   /* hide the files */
>   gtk_widget_hide(GTK_FILE_SELECTION(dirbrowser)->file_list);
> 
>   /* connect signals */
>   /* show widget */
>   gtk_widget_show(dirbrowser);

Hmm...thanx for this suggestion, but it does not help me.
My directory browser looks MUCH better than the gtk-file-dialog and
is much more flexible. It must be a tree - handling a plain clist
is trivial...there I do not have any problems.
Getting the directory info is also no problem..just the horizontal
scrollbar.

I am just wondering why auto-resize works so nice with clist, but not
all with ctree. 

Anyone else got an idea?

Thank,

Thomas

  ___ ___
 /   |   \  ___________   | REAL   : Thomas Niederreiter: Munich, Germany
/    ~    \/  _ \_  __ \  | EMAIL  : tn@rz.fh-muenchen.de
\    Y    (  <_> )  | \/  | WEB    : www.xcdroast.org
 \___|_  / \____/|__|     |
       \/ All I want is a warm bed and a kind word and unlimited power
                      -- Ashleigh Brilliant



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