all repos — tint2 @ 23ce5df0571131b64958cb8ae32c4d0fadd8e08e

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Refactored text size computation (missed a change for the battery)
o9000 mrovi9000@gmail.com
commit

23ce5df0571131b64958cb8ae32c4d0fadd8e08e

parent

da066912924e4f5c5b0fe433c1ecbda4c8f988bd

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/battery/battery.csrc/battery/battery.c

@@ -258,6 +258,8 @@ // draw layout

pango_layout_set_font_description(layout, bat1_font_desc); pango_layout_set_width(layout, battery->area.width * PANGO_SCALE); pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER); + pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR); + pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_NONE); pango_layout_set_text(layout, buf_bat_percentage, strlen(buf_bat_percentage)); cairo_set_source_rgba(c, battery->font.color[0], battery->font.color[1], battery->font.color[2], battery->font.alpha);