Oddities w/a clist



I've used clists many times in the past with no problem, but
for some reason, when I run the following code:


tmp = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(tmp),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_usize(tmp, 1, 100);
gtk_box_pack_start(GTK_BOX(vbox2), tmp, TRUE, TRUE, 0);
gtk_widget_show(tmp);

ilist = gtk_clist_new_with_titles(3, titles);
gtk_clist_set_column_width(GTK_CLIST(ilist), 0, 100);
gtk_clist_set_column_width(GTK_CLIST(ilist), 1, 300);
gtk_clist_set_column_width(GTK_CLIST(ilist), 2, 50);
gtk_clist_set_sort_type(GTK_CLIST(ilist), GTK_SORT_ASCENDING);
gtk_clist_set_auto_sort(GTK_CLIST(ilist), TRUE);
gtk_clist_set_sort_column(GTK_CLIST(ilist), 1);
gtk_container_add(GTK_CONTAINER(tmp), ilist);
gtk_widget_show(ilist);
gtk_clist_set_text(GTK_CLIST(ilist), 0, 0, "TESTING!");

I cannot get "TESTING!" to appear anywhere in the clist. I
must be forgetting something really obvious, but I'm really
having trouble discerning what that is. If anybody could
offer a suggestion, I would really appreciate it. Thanks!

Oh yeah, the clist and all of the columns and titles are
shown with no problem. I'm using GTK+ 1.2.8

--
Jeff "Shippy" Shipman     E-Mail: shippy cs nmt edu
CS Major / EE Minor       ICQ: 1786493
New Mexico Institute of Mining and Technology
Homepage: http://www.nmt.edu/~shippy





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