Re: Changing label of an existing button



    Dani> Is there a simple way to change the label of an existing button???

Not necessarily "simple," but this works:

  gtk_label_set_text(GTK_LABEL(GTK_BIN(button)->child), "New Text");
-----------------------------------------------------------------------------
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]