[Glade-users] Re: [Glade-devel] togglebutton group

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??,
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

Just test the state of the button.
Let's say you an array of nb_buttons called b_radio[], it 's just simple
as :

for (i=0;i<nb_buttons;i++) {
    if (GTK_TOGGLE_BUTTON(b_radio[i])->active)


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