MCPcopy Create free account
hub / github.com/WayfireWM/wf-shell / update_icon

Method update_icon

src/panel/widgets/battery.cpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void WayfireBatteryInfo::update_icon()
74{
75 Glib::Variant<Glib::ustring> icon_name;
76 display_device->get_cached_property(icon_name, ICON);
77
78 WfIconLoadOptions options;
79 options.invert = invert_opt;
80 options.user_scale = button.get_scale_factor();
81 set_image_icon(icon, icon_name.get(), size_opt, options);
82}
83
84static std::string state_descriptions[] = {
85 "Unknown", // 0

Callers

nothing calls this directly

Calls 1

set_image_iconFunction · 0.85

Tested by

no test coverage detected