mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
font: remove arrow character from font buffer
Arrow signs are specific to submenu items, so they would be more natural to be handled in menu.c rather than accepting "arrow" in font_buffer_create(). Also I allowed non-positive numbers for max_width in font_buffer_create(), in which case the natural font width is used as the buffer width.
This commit is contained in:
parent
10fc656c23
commit
01032ef3bd
7 changed files with 28 additions and 43 deletions
|
|
@ -44,11 +44,10 @@ int font_width(struct font *font, const char *string);
|
|||
* @font: font description
|
||||
* @color: foreground color in rgba format
|
||||
* @bg_color: background color in rgba format
|
||||
* @arrow: arrow (utf8) character to show or NULL for none
|
||||
*/
|
||||
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
|
||||
const char *text, struct font *font, const float *color,
|
||||
const float *bg_color, const char *arrow, double scale);
|
||||
const float *bg_color, double scale);
|
||||
|
||||
/**
|
||||
* font_finish - free some font related resources
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue