Re: dynamically building option menu



Thomas J Lewis wrote:

how can an option menu be dynamically rebuilt?

basically need to find out how many items currently are on the list,
delete those items then rebuild the list.


Hi Thomas, you can do this just by setting a new menu ... when you call gtk_option_set_menu(), it'll unref the old one (usually deleteing it), and ref your new one.

(erm, I think this doesn't leak)

John




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