GtkClist in 1.0 Help!
- From: Sergei Naumov <serge astro unc edu>
- To: gtk-list redhat com
- Subject: GtkClist in 1.0 Help!
- Date: Fri, 24 Apr 1998 11:30:04 -0400
Hi!
I just found that after compiling my program with gtk 1.0 GtkCList stops
working. It is rather strange: it creates the widget but whenever I want to
do gtk_clist_append(), it throws "sigint caught" to me.
Here is a piece of code that is relevant:
# define CLIST_TITLES 7
...
linetable = gtk_clist_new_with_titles(CLIST_TITLES,titles);
...
char *entry[CLIST_TITLES];
entry[0] = (char *) malloc(4*sizeof(char));
gtk_clist_clear(GTK_CLIST(linetable));
for(i=0;i<Nl;i++) {
sprintf(entry[0],"%d",i+1);
srow = mysql_fetch_row(sresult);
for(j=1;j<CLIST_TITLES;j++) entry[j] = srow[j-1];
gtk_clist_append(GTK_CLIST(linetable),entry);
}
What got changed in the 1.0 (in comparison to 0.99.10) that gtk_clist_append()
in my case could stop working?
Thanks much,
Sergei
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]