Thread: gyk programming
View Single Post
  #1 (permalink)  
Old June 9th, 2004
pantera pantera is offline
Novicius
 
Join Date: June 9th, 2004
Posts: 1
pantera is flying high
Default 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??
Reply With Quote