Passing widgets in signals



Hi,

I have a splendid piece of code... apart from the fact it seg faults!

I do the following:

  list = gtk_clist_new_with_titles(1, title);
<work magic>
  gtk_widget_show(list);

  enter = gtk_entry_new ();
  gtk_signal_connect(GTK_OBJECT(enter), "activate",
GTK_SIGNAL_FUNC(xmark_process), &list);

void xmark_process(GtkEditable *enter, gpointer *data)
{
  <more magic>
  gtk_clist_insert( GTK_CLIST(data), number, p);
}

I know "number" and "p" are OK as I can add it to a global clist I have just
fine, however I cannot add it to data.

Help!

Rich



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