[Glade-users] Re: [Glade-devel] togglebutton group
- From: genaud icps u-strasbg fr (Stéphane Genaud)
- Subject: [Glade-users] Re: [Glade-devel] togglebutton group
- Date: Fri, 13 Oct 2000 11:38:04 +0200
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
GTKBUTTON ?
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)
printf("active\n");
}
S.G.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]