Re: GObject patch
- From: Eric Lemings <elemings users sourceforge net>
- To: gtk-devel-list gnome org
- Subject: Re: GObject patch
- Date: Fri, 27 Oct 2000 22:11:25 -0600
Whoops. Kinda got the object and subject mixed up. Here's the patch to
the patch. ;)
@@ -209,19 +187,19 @@
+
+ pspec = g_param_spec_hash_table_lookup (param_spec_hash_table,
+ param_name,
-+ G_OBJECT_TYPE (object),
++ G_OBJECT_TYPE (subject),
+ TRUE, NULL);
+ if (!pspec)
+ g_warning ("%s: object class `%s' has no parameter named `%s'",
+ G_STRLOC,
-+ G_OBJECT_TYPE_NAME (object),
++ G_OBJECT_TYPE_NAME (subject),
+ param_name);
+ else
+ {
+ GObjectClass *class = G_OBJECT_GET_CLASS (object);
+ GClosure *closure = g_cclosure_new_swap
(class->dispatch_param_changed,
-+ subject, NULL);
-+ handler_id = g_signal_connect_closure (object,
++ object, NULL);
++ handler_id = g_signal_connect_closure (subject,
+ object_signals
[PARAM_CHANGED],
+ closure, FALSE);
+ }
And the example should be:
g_object_notify_param_changed (object, "name", subject);
Eric.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]