The button pops up a path chooser to select a path to GTK files &
writes the path to a file, then refreshes an entrybox & a listbox from that file.
The entrybox refreshes, but the listbox does not, the same methods are used for both.
The listbox reads it's file when the app. is run, but not when it's refreshed.
The clear action command works as the listbox is cleared, but it's not refreshed.
This is a short version of the GTK code:
Code: Select all
export GTK_Tool='
<vbox>
<frame Path to GTK panel files>
<hbox>
<entry>
<variable>Path</variable>
<input>cat ./gtk-tab-tool.path</input>
</entry>
<button>
<label>Pick Path</label>
<action>./gtk-tab-tool getpath \$Path</action>
<action clear>Path</action>
<action>refresh:Path</action>
<action clear>List</action>
<action>refresh:List</action>
</button>
</hbox>
</frame>
<hbox>
<frame New GTK file configuration>
<list>
<variable>List</variable>
<input>cat ./gtk-tab-tool.cfg</input>
<action>echo You selected $List</action>
</list>
</frame>
<frame NEW GTK file control>
<entry>
<variable>Name</variable>
</entry>
<text><label>Name of NEW GTK file</label></text>
<button>
<label>Write GTK File</label>
<action>./gtk-tab-tool -c \$Name</action>
<action clear>List</action>
<action>refresh:List</action>
</button>
<button>
<label>Show GTK File</label>
<action>./gtk-tab-tool showgtk \$Name</action>
<action clear>List</action>
<action>refresh:List</action>
</button>
</frame>
</hbox>
</vbox>
'
gtkdialog --program=GTK_Tool