Rather than setting a path to the icons, use lgi to get the current GTK theme
and then look up the icons. Then set the image as a cairo surface by using the
GTK api directly.
With this change, one can modify their GTK icon theme (e.g. with lxappearance),
restart AwesomeWM and have the widget's icon automatically updated.
The latest connman_dbus keeps itself up-to-date with its own signals, this
makes possible to drop the Awesome DBus API completely and simplify the code.
- remove section about installing from source: this requires some juggling and
symlinking, so I will leave it to people who *really* want to do it
- explain how to export the local luarocks path when installint locally with luarocks
The only visible change should be that the tooltip now shows the network
status (e.g. "online") and the WiFi signal (when applicable) in parentheses.
Internally, use the connman_dbus 0.2.x as backend to profit of the improvements
given by the dependency on lgi/GLib instead of ldbus.
The code has also been greatly simplified.
This is a breaking change in the way icons are searched. Instead of
specifying just one path and extension, multiple paths and extensions
can be passed. However the field names have changed from singular to
plural.
Fix an error when service.Type is not a field of service_types and the
code attempts to call a nil value.
Turns out that service.Type can be the string "?", probably because
connman has not identified the type yet.