Re: Reloading menu entries
- From: Vincent Manuel Barrilliot <vbarr cme nist gov>
- To: gtk-app-devel-list gnome org
- Subject: Re: Reloading menu entries
- Date: Thu, 1 Mar 2001 15:26:05 -0500 (EST)
Hello Marco,
I have a program which builds menus according to a list that it loads
when it executes. I want to give the user the option to "Refresh" the
contents of the menus by pressing on a button. This should update the
contents of files in a directory. Is there a gtk or maybe a system
signal that will destroy and restart the program/process and thus allow
the menus to be recreated?
I have a program where I have a list that is supposed to reflect the content of
a directory.
When I want to refresh it, I clear it and add entries again. The list is
automatically updated on the screen.
If it doesn't work with menus (it seems that GTK doesn't like updating displayed
objects), what about using gtk_xxxx_new and gtk_widget_destroy ?
If you are using Glade, it automatically creates a create_blah_blah function for
each root of the widget tree (have a look to the main.c file it generates).
Vincent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]