gyk programming i have two message boxes in my gui code using
p = gtk_entry_new ();
m = gtk_entry_new ();
i tried to send theim both to a function called button_clicked using
g_signal_connect (G_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC(button_clicked), p);
g_signal_connect (G_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC(button_clicked), m);
but the problem is in button_clicked
const char *p = gtk_entry1_get_text (GTK_ENTRY ((GtkWidget *) data));
will give me the value of only p not m.......
how can i send both the value of p and m and retrive it in button_clicked individually?? |