Move experimental branch of gtk+3.0 to unstable

This commit is contained in:
Michael Biebl
2013-05-23 13:17:54 +00:00
25 changed files with 507 additions and 149 deletions

42
debian/tests/build vendored Normal file
View File

@ -0,0 +1,42 @@
#!/bin/sh
# autopkgtest check: Build and run a program against GTK, to verify that the
# headers and pkg-config file are installed correctly
# (C) 2012 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
set -e
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat <<EOF > gtktest.c
#include <glib.h>
#include <gtk/gtk.h>
static gboolean
do_quit (gpointer user_data)
{
gtk_main_quit ();
}
int main(int argc, char **argv)
{
GtkWidget *dialog;
gtk_init (&argc, &argv);
dialog = gtk_dialog_new_with_buttons ("Test dialog", NULL,
GTK_DIALOG_MODAL,
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
NULL);
gtk_widget_show_all (dialog);
g_timeout_add_seconds (1, do_quit, NULL);
gtk_main();
return 0;
}
EOF
gcc -o gtktest gtktest.c `pkg-config --cflags --libs gtk+-3.0`
echo "build: OK"
[ -x gtktest ]
xvfb-run ./gtktest
echo "run: OK"

2
debian/tests/control vendored Normal file
View File

@ -0,0 +1,2 @@
Tests: build python3-gi
Depends: libgtk-3-dev, build-essential, xvfb, python3-gi, gir1.2-gtk-3.0

16
debian/tests/python3-gi vendored Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
xvfb-run 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