diff options
author | James Booth <boothj5@gmail.com> | 2015-01-12 00:43:42 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-12 00:43:42 +0000 |
commit | c64484c6ed8ab38b840786d76e986cf622d56ece (patch) | |
tree | 0df8003b47ab29466145632c139dda6c57651544 /src/command/commands.c | |
parent | e4d703f91437cf8e6285d75327473c7cc09e0b41 (diff) | |
download | profani-tty-c64484c6ed8ab38b840786d76e986cf622d56ece.tar.gz |
Renamed titlebar preference
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 21b3a567..f72a6047 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -3252,10 +3252,14 @@ cmd_states(gchar **args, struct cmd_help_t help) gboolean cmd_titlebar(gchar **args, struct cmd_help_t help) { - if (g_strcmp0(args[0], "off") == 0) { + if (g_strcmp0(args[0], "show") != 0) { + cons_show("Usage: %s", help.usage); + return TRUE; + } + if (g_strcmp0(args[1], "off") == 0) { ui_clear_win_title(); } - return _cmd_set_boolean_preference(args[0], help, "Titlebar", PREF_TITLEBAR); + return _cmd_set_boolean_preference(args[1], help, "Titlebar show", PREF_TITLEBAR_SHOW); } gboolean |