Re: Help with the "gpointer"



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]