aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar/pango_markup.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
commitcd1b32453a9296c18b28bff71607aeb22987b5cd (patch)
treec653c6d525b471914c01a9d7ae543f521b6138ed /sway/commands/bar/pango_markup.c
parent8e06985cc1b479724446fba752e0fecfb998e87b (diff)
parent5785170421dc38437acde8bb61068cd16fda716c (diff)
Merge branch 'wlroots'
Diffstat (limited to 'sway/commands/bar/pango_markup.c')
-rw-r--r--sway/commands/bar/pango_markup.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/commands/bar/pango_markup.c b/sway/commands/bar/pango_markup.c
index f69e882f..480af724 100644
--- a/sway/commands/bar/pango_markup.c
+++ b/sway/commands/bar/pango_markup.c
@@ -8,19 +8,20 @@ struct cmd_results *bar_cmd_pango_markup(int argc, char **argv) {
if ((error = checkarg(argc, "pango_markup", EXPECTED_EQUAL_TO, 1))) {
return error;
}
-
if (!config->current_bar) {
return cmd_results_new(CMD_FAILURE, "pango_markup", "No bar defined.");
}
-
if (strcasecmp("enabled", argv[0]) == 0) {
config->current_bar->pango_markup = true;
- sway_log(L_DEBUG, "Enabling pango markup for bar: %s", config->current_bar->id);
+ wlr_log(L_DEBUG, "Enabling pango markup for bar: %s",
+ config->current_bar->id);
} else if (strcasecmp("disabled", argv[0]) == 0) {
config->current_bar->pango_markup = false;
- sway_log(L_DEBUG, "Disabling pango markup for bar: %s", config->current_bar->id);
+ wlr_log(L_DEBUG, "Disabling pango markup for bar: %s",
+ config->current_bar->id);
} else {
- error = cmd_results_new(CMD_INVALID, "pango_markup", "Invalid value %s", argv[0]);
+ error = cmd_results_new(CMD_INVALID, "pango_markup",
+ "Invalid value %s", argv[0]);
return error;
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);