awesome/lib/gears
Uli Schlachter 58ecd92b8e Add better error handling to gears.surface
Previously, a Lua error was thrown when loading a file failed. Most callers are
not prepared for this and the result is less than optimal.

This commit makes the functions print the errors and return nil instead. For
callers that want to handle errors themselves, "_silent" variants of the
functions are introduced which just return errors to the caller.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-01-15 18:38:51 +01:00
..
cache.lua doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
color.lua doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
debug.lua Add timestamps to messages on stderr (#602) 2015-12-31 15:38:17 +01:00
init.lua Add gears.matrix for working with cairo matrices 2015-08-12 10:38:22 +02:00
matrix.lua Merge pull request #454 from psychon/remove_gears.debug.assert 2015-09-21 21:16:36 +02:00
object.lua gears.object:weak_connect_signal: Use a weak-value table (#520) 2015-12-10 23:19:52 +01:00
sort.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
surface.lua Add better error handling to gears.surface 2016-01-15 18:38:51 +01:00
timer.lua Add some documentation to gears.timer 2015-11-01 17:08:20 +01:00
wallpaper.lua Set the wallpaper more intelligently 2015-10-26 23:06:32 +01:00