Re: Help with the "gpointer"
- From: <pavel klebanov ne mediaone net>
- To: Mark Leisher <mleisher crl nmsu edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Help with the "gpointer"
- Date: Thu, 21 Dec 2000 14:51:10 -0500 (EST)
Just curious.. Why?
If campos is (void **) then campos[i] is the appropriate (void *) and
gtk_entry_set_text() should do the correct cast...
On Thu, 21 Dec 2000, Mark Leisher wrote:
Your function should work like this:
void
on_limpar_activate(GtkMenuItem *menuitem, gpointer user_data)
{
GtkWidget **campos;
gint i;
campos = (GtkWidget **) user_data;
for(i=0;i<5;i++) gtk_entry_set_text(campos[i],"");
}
-----------------------------------------------------------------------------
Mark Leisher
Computing Research Lab Cinema, radio, television, magazines are a
New Mexico State University school of inattention: people look without
Box 30001, Dept. 3CRL seeing, listen without hearing.
Las Cruces, NM 88003 -- Robert Bresson
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]