sway/common
Ryan Dwyer 10ef118e09 Fix pango escaping and refactor escape_markup_text
Fixes #2674.

The cause of the issue was in get_pango_layout. When we call
pango_parse_markup, `text` is the escaped string, and the unescaped
string is then computed and written to `buf`. We were then passing the
unescaped string to pango_layout_set_markup, but this function needs the
escaped string. `buf` is not needed and has been removed.

The other part of this PR refactors escape_markup_text to remove the
dest_length argument and removes the -1 return value on error. It now
assumes that you've allocated dest to the correct length.
2018-09-22 18:33:28 +10:00
..
background-image.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
cairo.c Address review comments 2018-03-28 14:43:23 -04:00
ipc-client.c prevent ub caused by misaligned stores/loads 2018-09-02 17:07:12 -07:00
list.c Use list_find in more places and refactor/fix workspace prev_next functions 2018-08-15 15:14:35 +10:00
log.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
meson.build Add password buffer, refactor rendering/surfaces 2018-04-04 18:47:48 -04:00
pango.c Fix pango escaping and refactor escape_markup_text 2018-09-22 18:33:28 +10:00
readline.c swaybar: rewrite protocol determination 2018-09-18 11:36:33 +01:00
stringop.c Allow reload command to exist anywhere in the command string 2018-09-01 11:45:48 +10:00
unicode.c utf8_size: fix loop boundary 2018-07-02 08:03:41 +09:00
util.c Remove layout.c 2018-08-26 12:05:16 +10:00