Hi, all,
This is the first working version of the Various Preferences tab.
The interface is currently in interface.c only. Somebody with Glade experience and Glade version 2, please create the interface properly. The top part should be the same as in the Keybindings tab, while below the list should be a (hbox? container?) with unbound label on the left, and the Reset button on the right. The widget names are: various_treeview, various_hbox (or _container), various_label and various_button.
---
A short overview of the changes:
StashPref.write_once is renamed to various and used by the "various" stash functions only. No special keyfile load/save.
The various stash groups are included in the prefs_dialog groups: configuration_add_pref_group(group, FALSE) -> TRUE.
prefs_show_dialog() fetches the various_ widgets from the prefs_dialog and passes them to stash_setup_treeview().
msgwin_*_visible are moved from load/save_dialog_prefs() to the hidden prefs in ui_init_pref(), where they belong.
statusbar_template default value is moved from add_statusbar_statistics () to ui_init_prefs(). So "statusbar_template" initialization is the same as for any other setting.
---
What remains:
Minimize the static variable "stv" usage, make it private to stash_setup_treeview() and pass it (or the relevant data) to singals using user_data, other implementation improvements (Nick?)
Create variables for the "build-menu" settings and include them in the dialog.
Cleanup VteConfig *vc usage and include the hidden VTE settings in the dialog.
Add a "Restart required" message.
Check which settings require restart and display the message for them only?
Document the new stash functions.
Your-favorite-wish-here. :)