summaryrefslogtreecommitdiffstats
path: root/source/dialogs/script.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-03-31 22:45:02 +0200
committerDave Davenport <qball@gmpclient.org>2015-03-31 22:45:02 +0200
commit0d87cf12a37c8bba53376edb1f2cd1b869839acc (patch)
tree2b05ad23d512073792d8be93f7c66456c1745028 /source/dialogs/script.c
parent56a888da6fba68da4fb4ec78a026d049eef27fe4 (diff)
Add combi viewer, where (selected) modi can be combined.
- Add active window highlighter.
Diffstat (limited to 'source/dialogs/script.c')
-rw-r--r--source/dialogs/script.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c
index 96334ed1..576dee6d 100644
--- a/source/dialogs/script.c
+++ b/source/dialogs/script.c
@@ -163,6 +163,11 @@ static void script_mode_destroy ( Switcher *sw )
sw->private_data = NULL;
}
}
+static const char *mgrv ( unsigned int selected_line, void *sw, G_GNUC_UNUSED int *state )
+{
+ ScriptModePrivateData *rmpd = ( (Switcher *) sw )->private_data;
+ return rmpd->cmd_list[selected_line];
+}
Switcher *script_switcher_parse_setup ( const char *str )
{
@@ -189,6 +194,7 @@ Switcher *script_switcher_parse_setup ( const char *str )
sw->result = script_mode_result;
sw->destroy = script_mode_destroy;
sw->token_match = token_match;
+ sw->mgrv = mgrv;
return sw;
}