Re: How do I know what signal triggered a callback?



"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]