aboutsummaryrefslogtreecommitdiffstats
path: root/swaynag/main.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-12-21 11:19:04 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2022-12-22 17:42:33 +0100
commitbd7466e1b7fa7bf567effeb4fcd7ab6f218dff25 (patch)
treeee69039dd830c86e594f9163dde8df0931e10be3 /swaynag/main.c
parentswaynag: fix NULL font description (diff)
downloadsway-bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25.tar.gz
sway-bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25.tar.zst
sway-bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25.zip
swaynag: drop swaynag_type.font
It's too easy to have this go out of sync with font_description.
Diffstat (limited to 'swaynag/main.c')
-rw-r--r--swaynag/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaynag/main.c b/swaynag/main.c
index 2ce37831..679afbce 100644
--- a/swaynag/main.c
+++ b/swaynag/main.c
@@ -98,7 +98,9 @@ int main(int argc, char **argv) {
98 sway_log(SWAY_DEBUG, "Anchors: %" PRIu32, swaynag.type->anchors); 98 sway_log(SWAY_DEBUG, "Anchors: %" PRIu32, swaynag.type->anchors);
99 sway_log(SWAY_DEBUG, "Type: %s", swaynag.type->name); 99 sway_log(SWAY_DEBUG, "Type: %s", swaynag.type->name);
100 sway_log(SWAY_DEBUG, "Message: %s", swaynag.message); 100 sway_log(SWAY_DEBUG, "Message: %s", swaynag.message);
101 sway_log(SWAY_DEBUG, "Font: %s", swaynag.type->font); 101 char *font = pango_font_description_to_string(swaynag.type->font_description);
102 sway_log(SWAY_DEBUG, "Font: %s", font);
103 free(font);
102 sway_log(SWAY_DEBUG, "Buttons"); 104 sway_log(SWAY_DEBUG, "Buttons");
103 for (int i = 0; i < swaynag.buttons->length; i++) { 105 for (int i = 0; i < swaynag.buttons->length; i++) {
104 struct swaynag_button *button = swaynag.buttons->items[i]; 106 struct swaynag_button *button = swaynag.buttons->items[i];