Re: How to access to a check button label



Hi,

"Germano Rizzo" <manomano ciaoweb it> writes:

>     I'm using a gtk_check_button... the API dox say that if I use
> gtk_check_button_new_with_label("*"), it creates a label next to the button.
> Well, that's true; but how can I change its text? I tried with
> gtk_label_set_text(GTK_CHECK_BUTTON(mywid)->label),
> gtk_label_set_text(GTK_LABEL(mywid)), and all I can think about, but...
> alas! No luck! :(

You need to use a little extra knowledge about the internals of the
GtkCheckButton:

 label = GTK_BIN (check_button)->child;


Salut, Sven




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