tests/_client.lua: Don't use GtkApplication
GtkApplication does magic like ensuring that the application ID is unique and there is only a single instance of each application running. We don't want nor need that for the tests. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
bcc7c65f77
commit
e4c3554c22
|
@ -15,17 +15,12 @@ return function(class, title, use_sn)
|
||||||
"local window = Gtk.Window {",
|
"local window = Gtk.Window {",
|
||||||
" default_width = 100,",
|
" default_width = 100,",
|
||||||
" default_height = 100,",
|
" default_height = 100,",
|
||||||
|
" on_destroy = Gtk.main_quit,",
|
||||||
" title = '",title,
|
" title = '",title,
|
||||||
"'};",
|
"'};",
|
||||||
"window:set_wmclass(class, class);",
|
"window:set_wmclass(class, class);",
|
||||||
"local app = Gtk.Application {",
|
"window:show_all();",
|
||||||
" application_id = 'org.awesomewm.tests.",class,
|
"Gtk:main{...}"
|
||||||
"'};",
|
|
||||||
"function app:on_activate()",
|
|
||||||
" window.application = self;",
|
|
||||||
" window:show_all();",
|
|
||||||
"end;",
|
|
||||||
"app:run {''}"
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
return spawn(cmd, use_sn)
|
return spawn(cmd, use_sn)
|
||||||
|
|
Loading…
Reference in New Issue