How to use gtk_list_store_newv()



I need to build grids at runtime dynamically from XML.  Apparently
gtk_list_store_newv(gint n_columns, GType *types) is what I need instead
of the vararg version.  However, I'm completely confused by the 2nd
argument.

I tried looking for examples, but the few I found didn't explain how to
generate the array of GTypes needed.  I've tried everything I can think
of but continue to get:

warning: passing arg 2 of `gtk_list_store_newv` from incompatible
pointer type

I'm so lost on this I can't even post what I'm trying since it is just
guesses at this point.  Can anyone point me in the right direction?




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