Files
gtk3/debian/tests/python3-gi
Simon McVittie ddcdefa98c Use the same Xvfb screen configuration as in the upstream GTK+ 4 Gitlab-CI tests
This will hopefully make GLX work (see also #874077)
2018-09-19 10:00:20 +01:00

18 lines
336 B
Bash
Executable File

#!/bin/sh
xvfb-run -a -s "-screen 0 1024x768x24" \
python3 <<EOF
from gi.repository import GLib, Gtk
def do_quit(user_data):
Gtk.main_quit()
dialog = Gtk.Dialog()
dialog.set_title('Test dialog')
dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.ACCEPT)
dialog.show_all()
GLib.timeout_add_seconds(1, do_quit, None)
Gtk.main()
EOF