summaryrefslogtreecommitdiff
path: root/pango.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-01-14 23:30:54 -0500
committerBrian Ashworth <bosrsf04@gmail.com>2019-01-14 23:30:54 -0500
commite3935ad1431623b5e3966e95cd75b45e7e00e278 (patch)
tree01a33b3422b9d17ad3b63fb4decb972876210f88 /pango.c
parentfcf1bd4ebea97ae6ecd30e4f4e0c526b405b871a (diff)
Implement logging and remove wlroots dependency
This implements a simpler version of the wlroots logger for swaylock. With this logger, the dependency on wlroots can be dropped. This also adds a debug flag and disables debugging output by default
Diffstat (limited to 'pango.c')
-rw-r--r--pango.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango.c b/pango.c
index a3ed543..097816c 100644
--- a/pango.c
+++ b/pango.c
@@ -6,8 +6,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <wlr/util/log.h>
#include "cairo.h"
+#include "log.h"
static const char overflow[] = "[buffer overflow]";
static const int max_chars = 16384;
@@ -70,8 +70,8 @@ PangoLayout *get_pango_layout(cairo_t *cairo, const char *font,
pango_layout_set_text(layout, buf, -1);
free(buf);
} else {
- wlr_log(WLR_ERROR, "pango_parse_markup '%s' -> error %s", text,
- error->message);
+ swaylock_log(LOG_ERROR, "pango_parse_markup '%s' -> error %s",
+ text, error->message);
g_error_free(error);
markup = false; // fallback to plain text
}