Sven wrote:
:On Mon, Jun 07, 1999 at 10:00:51PM -0700, Ron Forrester wrote:
:> On Mon, Jun 07, 1999 at 10:54:38PM -0500, Key, Chris wrote:
:> > background color to this color? The code I have should be doing it
:(no
:> > compile/run errors), but it does not update the row, so I am not
:sure if the
:> > color attribute is being set.
:>
:
:Strange, it woked fine for me, after a lot of effort. What value did you
:give
:for writeable and best_match ?
:
:Friendly,
:
:Sven LUTHER
Found my error. gtk_clist_append() returns a gint. But... in the example:
for ( indx=0 ; indx < 4 ; indx++ )
gtk_clist_append( (GtkCList *) data, drink[indx]);
Nothing is receiving this returned value. Unfortunately, I looked at the example more than I did the actual definition. Here's what I ended up with:
index = gtk_clist_append( (GtkCList *) data, textstr);
gtk_clist_set_background( (GtkCList *) data, index, &color);
Without the index variable receiving the returned gint, gtk_clist_set_background was not setting the color on any rows.
chris