Re: GtkBuilder Public API - Last call



user_type and user_data which I proposed doesn't make too much sense, it's
also difficult to support since you can't (AFAICT) use a GValue as user data.

It would be marginally useful for providing constant user data like...

* Strings: "oink"
* Translated strings: _("Moo!")
* Integers: GINT_TO_POINTER(12)

Having integer arguments saves you a function if you have, for example, "Up"
and "Down" buttons that are handled almost identically.

M.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]