Re: [gtk-list] dynamic menus with GtkItemFactory (or without)?



Hello,
   I have this working with the bookmarks menu in gftp
(http://gftp.seul.org/). Most of the code you'll want to look for is in
the bookmarks.c file. If you have any questions about the code, feel
free to let me know. 

Brian

On Wed, 17 Nov 1999, Vadim Zeitlin wrote:

>  Hello all,
> 
>  Is it possible to have "dynamic" menus in the program using
> GtkItemFactory - i.e. insert/delete/append items to menu(bar)s
> during run-time? From just looking at the headers, I can't find
> anything like this, but may be I'm looking in a wrong place?
> 
>  If not, what is the best way to do it? Apparently, there are no
> principal problems doing this with the "normal" menu functions
> like gtk_menu_append/insert(), but I'd then need to rewrite
> all GtkItemFactory code (hotkey and accelerator support mainly)
> in my own app which would be quite a big work, so is there some
> smart way to avoid doing it? Or may be someone has already done
> this before (and could share the code :-)?
> 
>  Thanks in advance for any suggestions!
> VZ
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 



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