gears.surface: Update required lgi version

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-06-22 23:22:58 +02:00
parent 65de8a7ab5
commit 4b049c310d
1 changed files with 3 additions and 1 deletions

View File

@ -9,8 +9,10 @@ local type = type
local capi = { awesome = awesome } local capi = { awesome = awesome }
local cairo = require("lgi").cairo local cairo = require("lgi").cairo
-- This checks for '<= 0.5' because there are git versions after 0.6 which still
-- identify themselves as 0.6 but already have the needed cairo support
if tonumber(string.match(require('lgi.version'), '(%d%.%d)')) <= 0.5 then if tonumber(string.match(require('lgi.version'), '(%d%.%d)')) <= 0.5 then
error("lgi too old, need at least version 0.7 (not yet released?) or recent git") error("lgi too old, need at least version 0.6.1")
end end
-- gears.surface -- gears.surface