Alexandru Harsanyi <[EMAIL PROTECTED]> writes:
> I started to look in the files that implement the Gnome GUI and noticed
> that every widget that is created is also added to the top widget via a
> gtk_object_set_data() call.
>
> >From what I know, gtk_object_set_data() is only used if one wants to
> colect some data from the widgets in a dialog-box or window . So what is
> the need to setting data for frames and boxes?
If the code hasn't changed too much from when I originally wrote it (I
haven't looked there recently), the set_data call was used to
associate the actual Account pointer with each of the GUI entries in
the list box (or CTree in this case) representing that account. That
way, when someone clicks on the item or whatever, and the callback
gets called, you're handed the actual Account pointer in the data
argument of the callback. Clean, and convenient.
--
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body