mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 02:30:19 +00:00
icons: add system_icon_name API, make gtkutil fall back via resolver registry
This commit is contained in:
@@ -235,6 +235,17 @@ icon_resolver_menu_action_from_custom (const char *custom_icon_name, int *action
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
const char *
|
||||
icon_resolver_system_icon_name (IconResolverRole role, int item)
|
||||
{
|
||||
const IconRegistryEntry *entry = icon_registry_find (role, item);
|
||||
|
||||
if (!entry)
|
||||
return NULL;
|
||||
|
||||
return entry->system_icon_name;
|
||||
}
|
||||
|
||||
IconResolverThemeVariant
|
||||
icon_resolver_detect_theme_variant (void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user