Re: enum/flags list_values values




On Sat, 2008-01-05 at 07:44 +1100, Kevin Ryde wrote:
Is Glib::Type->list_values meant to give back the values from the enum
and flags entries, as well as the names?  (There's no significance in
the order of the returned list or anything, is there.)

While the values do seem to be returned in order, I still think it makes
sense to include the actual value in the hash.  So here's the same patch
with a test.  muppet, what do you think?

-- 
Bye,
-Torsten

Attachment: list_values.patch
Description: Text Data



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