RE: GtkSwitch =?UTF-8?Q?=E2=80=94?= lack of specific signal
- From: Tadej BorovÅak <tadeboro gmail com>
- To: John Lumby <johnlumby hotmail com>
- Cc: gtk-app-devel maillist <gtk-app-devel-list gnome org>
- Subject: RE: GtkSwitch â lack of specific signal
- Date: Sat, 05 Mar 2011 02:50:05 +0100
Hello.
Thanks both. I tried notify::active and it works as well as event-after but still the data pointer
argument is bad on entry to the callback(it's not zero but not a valid GTK_WIDGET either). I don't
know why - maybe something related to GtkSwitch or maybe a mistake in my code somewhere.
Cheers, John Lumby
Are you sure your functions has the right prototype? GObject::notify
signal handlers should have callbacks defined like this:
void
notify_callback (GObject *obj,
GParamSpec *pspec,
gpointer *data)
{
/* La la la */
}
Cheers,
Tadej
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]