Re: dynamically building option menu
- From: John Cupitt <john cupitt ng-london org uk>
- To: Thomas J Lewis <tjlewis link com>
- Cc: gtk-list gnome org
- Subject: Re: dynamically building option menu
- Date: Fri, 09 Nov 2001 11:24:17 +0000
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]