Re: [gtk-list] Gtk-CRITICAL **: - messages



the problem is that the tutorial _says_ that you can leave it
NULL, but gtk+ whines when you actually do.

see http://www.gtk.org/tutorial/gtk_tut-11.html#ss11.5

it says:

We can add rows in two ways. They can be appended at the end to the list
using 

    gint gtk_clist_append( GtkCList *clist,
                           gchar    *text[] );

or we can insert a row at a given place using 

    void gtk_clist_insert( GtkCList *clist,
                           gint      row,
                           gchar    *text[] );

In both calls we have to provide a collection of pointers that are the
texts we want to put in the columns. The number of pointers should equal
the number of columns in the list. If the text[] argument is NULL, then
there will be no text in the columns of the row. This is useful, for
example, if we want to add pixmaps instead (something that has to be
done manually). 


i usually just make an array w/ " " in it so that it won't gripe.

-l

-- 
He has not acquired a fortune; the fortune has acquired him.
		-- Bion



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