Re: How do I know what signal triggered a callback?
- From: Federico Mena Quintero <federico helixcode com>
- To: dmg csg uwaterloo ca
- Cc: gnome-devel-list gnome org
- Subject: Re: How do I know what signal triggered a callback?
- Date: 15 Aug 2000 18:00:05 -0400
"Daniel M. German" <dmg@csg.uwaterloo.ca> writes:
> well, I am learning that a selection one of radio button group in a
> menu creates two callbacks: one to unselect the current selection and
> one to select the new one.
>
> I am using GNOMEUIINFO_RADIOITEM_DATA to create the radio button and
> attach automatically the callback.
>
> The question is, can I know what signal triggered the callback? If
> so, how?
static void
my_radio_toggled_callback (GtkToggleButton *toggle, gpointer data)
{
if (!toggle->active)
return;
/* do something */
}
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]