tree-wide: use markup only when an accelerator is defined with _

This commit is contained in:
Alex Chernika 2026-04-15 00:15:12 +02:00
parent 58fa089749
commit c6681876b5
No known key found for this signature in database
GPG key ID: 6029FAD8ABFB076A
8 changed files with 23 additions and 23 deletions

View file

@ -27,6 +27,7 @@ struct menuitem {
struct menu *parent;
struct menu *submenu;
bool selectable;
bool use_markup;
enum menuitem_type type;
int native_width;
struct wlr_scene_tree *tree;

View file

@ -15,6 +15,7 @@ struct scaled_font_buffer {
/* Private */
char *text;
bool use_markup;
int max_width;
float color[4];
float bg_color[4];
@ -71,6 +72,6 @@ scaled_font_buffer_create_for_titlebar(struct wlr_scene_tree *parent,
*/
void scaled_font_buffer_update(struct scaled_font_buffer *self, const char *text,
int max_width, struct font *font, const float *color,
const float *bg_color);
const float *bg_color, bool use_markup);
#endif /* LABWC_SCALED_FONT_BUFFER_H */