Re: [gtk-list] Re: another question



Aaron Walker wrote:

> 
> ok, this is what I have:
> 
>  gtk_clist_freeze(GTK_CLIST(clist));
>  while((fgets(line, sizeof line, results)) != NULL)
>  {
>       ptr = (gchar *)&line;
>       gtk_clist_append(GTK_CLIST(clist), &ptr);
>  }
>  gtk_clist_thaw(GTK_CLIST(clist));
> 
> FILE *results is a 2000-something line file.
> 
> I tried using gtk_clist_prepend also, but no luck
> 
> any ideas?

Ok, I saw your proggy on Freshmeat :) Seems your problem is:

gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window),clist);

I use such sequence:

  found_words_clist = gtk_clist_new (1);
  gtk_widget_show (found_words_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3),
found_words_clist);

Hope that helps.

In fact, that was written for me by Glade. Use it - Glade rulez :)
I could have never done my pretty window without Glade. It helps
alot really. Especially for newbie, like me :)

Leon.



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