weak_pointer_location parameter to g_object_add_weak_pointer
- From: Darin Adler <darin bentspoon com>
- To: Gtk Developers <gtk-devel-list gnome org>
- Subject: weak_pointer_location parameter to g_object_add_weak_pointer
- Date: Wed, 06 Feb 2002 12:10:41 -0800
The weak_pointer_location parameter to g_object_add_weak_pointer and
g_object_remove_weak_pointer is gpointer *, but it should really be
gpointer, or else anyone who uses this has to use a cast unless they store
the pointer in a gpointer rather than a GtkWidget * or whatever. I seem to
recall some discussion of this in the past.
Is it too late to fix this? Note that relaxing the parameter type to
gpointer would be unlikely to break any code, unless it involved a pointer
to the g_object_add_weak_pointer function itself.
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]