]> git.mdlowis.com Git - proto/labwc.git/commit
desktop-entry: separate icon and app_id icon lookup
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 7 Jan 2025 14:21:30 +0000 (15:21 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Wed, 8 Jan 2025 15:57:06 +0000 (00:57 +0900)
commit4ecedcdb3b63087ab52e674f53aa19da3d802f9b
tree01430648802fdf691e64830768b38d641857b41b
parentd53cf642f5d1e6a9c6143a2d90b3d8460d9db38d
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.
include/desktop-entry.h
src/desktop-entry.c
src/ssd/ssd-titlebar.c