test(screenshots, spawn): require exact major gtk/gdk versions (#3460)
This commit is contained in:
parent
d487d1010e
commit
aedcd0c05c
|
@ -4,9 +4,9 @@
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
local spawn = require("awful.spawn")
|
local spawn = require("awful.spawn")
|
||||||
local gsurface = require("gears.surface")
|
local gsurface = require("gears.surface")
|
||||||
local lgi = require 'lgi'
|
local lgi = require('lgi')
|
||||||
local cairo = lgi.cairo
|
local cairo = lgi.cairo
|
||||||
local gdk = lgi.Gdk
|
local gdk = lgi.require('Gdk', '3.0')
|
||||||
|
|
||||||
-- Dummy blue client for the client.content test
|
-- Dummy blue client for the client.content test
|
||||||
-- the lua_executable portion may need to get ironed out. I need to specify 5.3
|
-- the lua_executable portion may need to get ironed out. I need to specify 5.3
|
||||||
|
@ -16,8 +16,9 @@ if lua_executable == nil or lua_executable == "" then
|
||||||
end
|
end
|
||||||
local client_dim = 250
|
local client_dim = 250
|
||||||
local tiny_client_code_template = [[
|
local tiny_client_code_template = [[
|
||||||
local Gtk = require('lgi').Gtk
|
local lgi = require('lgi')
|
||||||
local Gdk = require('lgi').Gdk
|
local Gdk = lgi.require('Gdk', '3.0')
|
||||||
|
local Gtk = lgi.require('Gtk', '3.0')
|
||||||
local class = 'client'
|
local class = 'client'
|
||||||
window = Gtk.Window {default_width=%d, default_height=%d, title='title'}
|
window = Gtk.Window {default_width=%d, default_height=%d, title='title'}
|
||||||
window:set_wmclass(class, class)
|
window:set_wmclass(class, class)
|
||||||
|
|
|
@ -18,7 +18,7 @@ local exit_yay, exit_snd = nil, nil
|
||||||
local tiny_client = function(class)
|
local tiny_client = function(class)
|
||||||
return { lua_executable, "-e", [[
|
return { lua_executable, "-e", [[
|
||||||
local lgi = require 'lgi'
|
local lgi = require 'lgi'
|
||||||
local Gtk = lgi.require('Gtk')
|
local Gtk = lgi.require('Gtk', '3.0')
|
||||||
local class = ']]..class..[['
|
local class = ']]..class..[['
|
||||||
|
|
||||||
Gtk.init()
|
Gtk.init()
|
||||||
|
|
Loading…
Reference in New Issue