mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
desktop-entry: separate icon and app_id icon lookup
This patch splits desktop_entry_icon_lookup() into two separate functions - desktop_entry_load_icon(): load a icon from the configured icon theme - desktop_entry_load_icon_from_app_id(): load a icon name from a .desktop file based on the given app_id and supply it to _load_icon(). The _load_icon() function will be used in a future menu icon implementation whereas the _load_icon_from_app_id() function is used within the SSD titlebar window icon lookup routine.
This commit is contained in:
parent
d53cf642f5
commit
4ecedcdb3b
3 changed files with 51 additions and 35 deletions
|
|
@ -7,8 +7,11 @@ struct server;
|
|||
void desktop_entry_init(struct server *server);
|
||||
void desktop_entry_finish(struct server *server);
|
||||
|
||||
struct lab_img *desktop_entry_icon_lookup(struct server *server,
|
||||
const char *app_id, int size, float scale);
|
||||
struct lab_img *desktop_entry_load_icon_from_app_id(
|
||||
struct server *server, const char *app_id, int size, float scale);
|
||||
|
||||
struct lab_img *desktop_entry_load_icon(
|
||||
struct server *server, const char *icon_name, int size, float scale);
|
||||
|
||||
/**
|
||||
* desktop_entry_name_lookup() - return the application name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue