gtk_clist_append() in 1.0.2 and 1.0.3 ???





Hi!
I was wondering what exactly happened to gtk_clist_append() since 1.0.2. I
have an application that calls gtk_clist_append() in several places. It
worked ok in 1.0.1 but since 1.0.2 it started crushing with sigsegv. This
is is a piece of code that worked before and does not work now.

void AddEw (GtkWidget *widget) {
  char *text[2];

  /* Add a line (wavelength and a eq. width) to the list */
  sprintf(text[0],"%.3f",selected_lambda);
  text[1] = gtk_entry_get_text(GTK_ENTRY(ewentry));
  gtk_clist_freeze(GTK_CLIST(lines));
  gtk_clist_append(GTK_CLIST(lines),text);
  gtk_clist_moveto(GTK_CLIST(lines),GTK_CLIST(lines)->rows-1,0, 1.,0.);
  gtk_clist_thaw(GTK_CLIST(lines));
}

Can anyone explain what might be happening here?

Thanks,
		Sergei





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