| 71 | } |
| 72 | |
| 73 | void 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 | |
| 84 | static std::string state_descriptions[] = { |
| 85 | "Unknown", // 0 |
nothing calls this directly
no test coverage detected