Re: Changing which CList columns expands



>>>>> "me" == Roland Roberts <roland astrofoto org> writes:

   me> optimum_width = gtk_clist_optimal_column_width (GTK_CLIST(clist), 0);
   me> gtk_clist_set_column_min_width (GTK_CLIST(clist), 0, optimum_width);
   me> gtk_clist_set_column_max_width (GTK_CLIST(clist), 0, optimum_width);
   me> optimum_width = gtk_clist_optimal_column_width (GTK_CLIST(clist), 2);
                                                                        ^^^

Oops, cut-and-pastitis strikes.

   me> gtk_clist_set_column_width (GTK_CLIST(clist), 1, optimum_width);
   me> gtk_clist_set_column_min_width (GTK_CLIST(clist), 1, optimum_width);
   me> optimum_width = gtk_clist_optimal_column_width (GTK_CLIST(clist), 2);
   me> gtk_clist_set_column_min_width (GTK_CLIST(clist), 2, optimum_width);
   me> gtk_clist_set_column_max_width (GTK_CLIST(clist), 2, optimum_width);

With the above change, I almost get what I expected.  Column three
*still* expands instead of column 2 and column 1 is not actually wide
enough to display the entire string; gtk_clist_optimal_column_width is
not calculating the optimal width correctly.

roland
-- 
		       PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD                             RL Enterprises
roland rlenter com                     76-15 113th Street, Apt 3B
rbroberts acm org                          Forest Hills, NY 11375




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