aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-11-10 02:43:31 (GMT)
committervektor <devnull@localhost>2005-11-10 02:43:31 (GMT)
commitbec9a1f3469fd89850835373ea1cb1bad4544414 (patch)
tree5caaa6b2f18dcfacf623acb94e4beda8d4d6aba5
parent6593a60a21fc8d4185ce6a1825518801082aefa1 (diff)
* tvtime/src/utils.h: Add a TVTIME_NOOP command.
* tvtime/src/utils.c: Map "NOOP" to TVTIME_NOOP instead of TVTIME_NOCOMMAND. This allows people to bind keys to noop to null out unwanted keybindings. * tvtime/src/commands.c: Do nothing for a noop. * tvtime/ChangeLog: Note the change. Thanks to Andrew Dalton.
-rw-r--r--ChangeLog2
-rw-r--r--src/commands.c3
-rw-r--r--src/utils.c2
-rw-r--r--src/utils.h1
4 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f5bae75..f2d7432 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
1.0.2 -
+ * vektor: Add a proper TVTIME_NOOP command so that you can remove
+ keybindings. Thanks to Andrew Dalton for the fix.
* vektor: Add back missing translations.
1.0.1 - Thu Sep 8 00:19:31 EDT 2005
diff --git a/src/commands.c b/src/commands.c
index 0d54200..8b13be7 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2128,6 +2128,9 @@ void commands_handle( commands_t *cmd, int tvtime_cmd, const char *arg )
}
switch( tvtime_cmd ) {
+ case TVTIME_NOOP:
+ break;
+
case TVTIME_QUIT:
cmd->quit = 1;
break;
diff --git a/src/utils.c b/src/utils.c
index af56e93..1816ac1 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -486,7 +486,7 @@ static command_names_t command_table[] = {
{ "MIXER_TOGGLE_MUTE", TVTIME_MIXER_TOGGLE_MUTE },
{ "MIXER_UP", TVTIME_MIXER_UP },
- { "NOOP", TVTIME_NOCOMMAND },
+ { "NOOP", TVTIME_NOOP },
{ "OVERSCAN_DOWN", TVTIME_OVERSCAN_DOWN },
{ "OVERSCAN_UP", TVTIME_OVERSCAN_UP },
diff --git a/src/utils.h b/src/utils.h
index 8e70bb0..413de26 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -215,6 +215,7 @@ enum tvtime_commands
TVTIME_TOGGLE_QUIET_SCREENSHOTS,
TVTIME_DISPLAY_MESSAGE,
TVTIME_KEY_EVENT,
+ TVTIME_NOOP,
TVTIME_UP,
TVTIME_DOWN,

Privacy Policy