aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-04-08 16:25:39 +0000
committerSimon Tatham <anakin@pobox.com>2008-04-08 16:25:39 +0000
commitae6c7381272f84c0fd398f6d3e496f571ba42ec8 (patch)
treeec91cb5e52dbbdcd8097c0fc02ee250f245edf19 /puzzles.h
parentea13d39a1780406421d2e9aa01c4caeca100c9eb (diff)
downloadpuzzles-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/puzzles.h b/puzzles.h
index 2a9f517..1c5342d 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -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);