Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Gtk-Gnutella (Linux/Unix/Mac OSX/Windows) (https://www.gnutellaforums.com/gtk-gnutella-linux-unix-mac-osx-windows/)
-   -   gyk programming (https://www.gnutellaforums.com/gtk-gnutella-linux-unix-mac-osx-windows/26053-gyk-programming.html)

pantera June 9th, 2004 06:04 AM

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??


All times are GMT -7. The time now is 06:24 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.