montse wrote:
> 
> Hello every body:
> 
> i have a togglebutton group and i want to know which of all of the
> buttons is the active one.
> is there a function to do that??,

I suppose you mean radio button group, since toggle buttons are independant.

You can get a pointer to any of the radio buttons using lookup_widget().
Then use GTK_RADIO_BUTTON (button)->group to get a pointer to the start
of the list of radio buttons in the group.

You can then iterate over this list and use gtk_toggle_button_get_active()
to find out which one is active.


> how can i look for the CSList in other modul of the programm?,
> lookup_widget returns GtkWidget, is there any macro CSLIST as there is
> GTKBUTTON ?

Do you mean GSList? You use lookup_widget() to get the radio button and
then GTK_RADIO_BUTTON (button)->group to get the group.

Damon



_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to