Re: Question about Callback
- From: Nicola Fontana <ntd entidi it>
- To: gtk-app-devel-list gnome org
- Subject: Re: Question about Callback
- Date: Mon, 12 Jan 2009 00:33:33 +0100
On Sun, 11 Jan 2009 12:42:41 +0100
Rudolfo Pinewood <rudolfo pinewood googlemail com> wrote:
I have several togglebuttons, that are all registered to call one
specific function (ApplyFlags). In this function I actually don't know
which button was activated.
My attempt was giving each button/callback an additional parameter that
should be passed to my ApplyFlags function.
You yet have the caller widget in ApplyFlags(). If you're using
g_signal_connect_swapped(), just use the second arg:
void ApplyFlags(gpointer your_data, GtkWidget *button)
Ciao
--
Nicola
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]