* Sven Neumann (sven gimp org) wrote: > Hi, > > "Carl B. Constantine" <duckwing duckwing ca> writes: > > > Thanks for the reply. That confirms what I suspected, but IMHO very bad > > design as it creates extra overhead for memory and storage in the > > TreeModel (ListStore in this case) instead of being able to determine > > the property programatically. What if I have a preference setting where > > the user change pick a color so it's not just "red" or "blue" it's > > "between blue and purple"? > > noone said you have to store the color as string. You could for > example have model column that holds a GdkColor which would give you > 16 bit per color channel and I suspect that's more fine-grained than > you'll ever need it to be. ooooohhhh, I like that. I'll take a look at that possibility. I assume the same is true with pango style properties. However, my point is that it's not clear in the docs (API or tutorial since the TreeView stuff isn't written in the tutorial yet. I might submit some text for that section of the tutorial in the near future as I'm understanding the widget more). > > or add multiple attributes to the column with > > gtk_tree_view_column_add_attribute(). But this means I have to add a > > column to the model and then hide it after it's appended to the view > > right? > > > However, I find that interface rather awkward to use in that > > instance, again because it can't be determined programatically or > > you have to change the column the cell looks at "on the fly" which > > is awkward. > > you shouldn't judge on an API that you obviously did not understood. Agreed. And I apologize but it's my persepective as a new GTK programmer (though an experienced Mac programmer). I feel very strongly that a voiced perspective can help clear up things for future developers and will help GTK become even easier to understand and program. -- .''`. Carl B. Constantine : :' : duckwing duckwing ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom
Attachment:
pgpPBmkki3br7.pgp
Description: PGP signature