On Sun, 11 Jan 2009 12:42:41 +0100 Rudolfo Pinewood <rudolfo.pinew...@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 _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list