mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
src/menu: add support for scalable menu icons
This commit is contained in:
parent
060b59f7ed
commit
1fa4070025
3 changed files with 72 additions and 13 deletions
|
|
@ -23,6 +23,7 @@ struct menuitem {
|
|||
char *execute;
|
||||
char *id; /* needed for pipemenus */
|
||||
char *text;
|
||||
char *icon_name;
|
||||
const char *arrow;
|
||||
struct menu *parent;
|
||||
struct menu *submenu;
|
||||
|
|
@ -41,6 +42,7 @@ struct menuitem {
|
|||
struct menu {
|
||||
char *id;
|
||||
char *label;
|
||||
char *icon_name;
|
||||
struct menu *parent;
|
||||
struct menu_pipe_context *pipe_ctx;
|
||||
|
||||
|
|
@ -57,6 +59,7 @@ struct menu {
|
|||
struct wlr_scene_tree *scene_tree;
|
||||
bool is_pipemenu;
|
||||
bool align_left;
|
||||
bool has_icons;
|
||||
|
||||
/* Used to match a window-menu to the view that triggered it. */
|
||||
struct view *triggered_by_view; /* may be NULL */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue