calling gtk_list_store_clear on empty list



This may be an elementary question - The API reference doesn't say
anything about it, but just to be sure..

Is there any harm in calling gtk_list(or tree)_store_clear() upon an
empty list_store?  I have an app which loads a file into a list_store,
and had been using the filename stored in a structure as a flag, but now
I have it where it can pipe data from an app.  It would be no problem to
add another field with a specific IsLoaded flag, but if just simply
calling the "clear" unconditionally would suffice, it would save a bit
of extra baggage.

Thanks.



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