diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-04-08 16:25:39 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-04-08 16:25:39 +0000 |
| commit | ae6c7381272f84c0fd398f6d3e496f571ba42ec8 (patch) | |
| tree | ec91cb5e52dbbdcd8097c0fc02ee250f245edf19 /puzzles.h | |
| parent | ea13d39a1780406421d2e9aa01c4caeca100c9eb (diff) | |
| download | puzzles-ae6c7381272f84c0fd398f6d3e496f571ba42ec8.zip puzzles-ae6c7381272f84c0fd398f6d3e496f571ba42ec8.tar.gz puzzles-ae6c7381272f84c0fd398f6d3e496f571ba42ec8.tar.bz2 puzzles-ae6c7381272f84c0fd398f6d3e496f571ba42ec8.tar.xz | |
New feature in midend.c which allows us to ask for the number of the
currently selected preset, if any. I've used this in the GTK front
end to have the Type menu mark the currently selected menu item.
(After considerable beating of GTK with sticks, I might add. Grr.)
Currently the same UI feature is not yet supported on Windows or
MacOS, but I hope to do those too at some point if it's feasible.
[originally from svn r7980]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -235,6 +235,7 @@ void midend_timer(midend *me, float tplus); int midend_num_presets(midend *me); void midend_fetch_preset(midend *me, int n, char **name, game_params **params); +int midend_which_preset(midend *me); int midend_wants_statusbar(midend *me); enum { CFG_SETTINGS, CFG_SEED, CFG_DESC, CFG_FRONTEND_SPECIFIC }; config_item *midend_get_config(midend *me, int which, char **wintitle); |