Re: Ataching data to a widget
- From: Owen Taylor <otaylor redhat com>
- To: gtk-list redhat com
- Subject: Re: Ataching data to a widget
- Date: 03 Jun 1999 12:37:54 -0400
Alan Shutko <ats@acm.org> writes:
> Sven LUTHER <luther@maxime.u-strasbg.fr> writes:
>
> > Better would be to use gtk_object_set_user_data and
> > gtk_object_get_user_data, isn't it ?
>
> Why is that? I've been using gtk_object_get_data and
> gtk_object_set_data, which are nice because you can set multiple
> pieces of data with string names. Am I doing something wrong?
No.
gtk_object_set_user_data() is basically just there for
compatibility with (very) old versions of GTK+ that
only allowed setting a single piece of data per-widget.
Using gtk_object_set_data() is the preferred method.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]