Passing widgets in signals
- From: rhfreeman <rhfreeman micron com>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: Passing widgets in signals
- Date: Thu, 17 Feb 2000 07:34:10 -0700
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]