[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RadioMenuItem
- From: Paolo <prallo gmail com>
- To: donglongchao <donglongchao 163 com>
- Cc: gtk-app <gtk-app-devel-list gnome org>
- Subject: Re: RadioMenuItem
- Date: Mon, 13 Apr 2009 13:06:27 +0200
How can I apply gtk_toggle_button_get_active() function? I have a
radiomenuitem and the function needs a togglebutton
2009/4/13 donglongchao <donglongchao 163 com>
> Hi,
> Because they are in the same group,and if one is selected(or toggled),
>
> then before it send a "toggled" signal,the other one which becomes unselected will also send a "toggled" signal.
>
> So you can use if (gtk_toggle_button_get_active(button)) to check the state of "button" in your callback functions ,
> and then do what you want to do.
>
> Wish You happy.
> Dong
>
> 2009-04-13,Paolo <prallo gmail com> :
>
>
> >How can I get the state of my radiomenuitem inside a callback function? This
> >is the situation: I've a group of two radiomenuitems; each of them holds a
>
> >callbacks function that listen the toggled signal. The signal fires for both
> >radiomenuitems if I push singleradiomenuitem. Why? And how can I fix that?
> >
> >Thanks
> >_______________________________________________
> >gtk-app-devel-list mailing list
> >gtk-app-devel-list gnome org
> >http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
> ------------------------------
> 网易邮箱,中国第一大电子邮件服务商 <http://email.163.com>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]