From c64484c6ed8ab38b840786d76e986cf622d56ece Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 12 Jan 2015 00:43:42 +0000 Subject: Renamed titlebar preference --- src/command/commands.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/command/commands.c') 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 -- cgit 1.4.1-2-gfad0