diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/AUTHORS | 0 | ||||
-rw-r--r-- | tests/ChangeLog | 10 | ||||
-rw-r--r-- | tests/Makefile.am | 38 | ||||
-rw-r--r-- | tests/NEWS | 0 | ||||
-rw-r--r-- | tests/README | 0 | ||||
-rwxr-xr-x | tests/autogen.sh | 3 | ||||
-rw-r--r-- | tests/configure.ac | 56 | ||||
-rw-r--r-- | tests/test-pango-layout.c | 5 |
8 files changed, 110 insertions, 2 deletions
diff --git a/tests/AUTHORS b/tests/AUTHORS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/AUTHORS diff --git a/tests/ChangeLog b/tests/ChangeLog new file mode 100644 index 0000000..d3b789e --- /dev/null +++ b/tests/ChangeLog @@ -0,0 +1,10 @@ +2005-01-28 mallum,,, <mallum@openedhand.com> + + * Makefile.am: + * autogen.sh: + * configure.ac: + Autofooify + + * test-pango-layout.c: (main): + Turn off double buffering + diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..c666ee0 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,38 @@ +AM_CFLAGS = @GCC_FLAGS@ + +bin_PROGRAMS= test-fb \ + test-gdk \ + test-pango-layout \ + test-x \ + test-freetype \ + test-pango \ + test-xft + + +test_fb_SOURCES = test-fb.c + +test_gdk_SOURCES = test-gdk.c +test_gdk_LDADD = @GTK_LIBS@ +test_gdk_CFLAGS = @GTK_CFLAGS@ + +test_pango_layout_SOURCES = test-pango-layout.c +test_pango_layout_LDADD = @GTK_LIBS@ +test_pango_layout_CFLAGS = @GTK_CFLAGS@ + +test_x_SOURCES = test-x.c +test_x_LDADD = @XLIBS_LIBS@ +test_x_CFLAGS = @XLIBS_CFLAGS@ + +test_freetype_SOURCES = test-freetype.c +test_freetype_LDADD = @FREETYPE_LIBS@ +test_freetype_CFLAGS = @FREETYPE_CFLAGS@ + +test_pango_SOURCES = test-pango.c +test_pango_LDADD = @PANGO_LIBS@ +test_pango_CFLAGS = @PANGO_CFLAGS@ + +# test_sdl_SOURCES = test-sdl.c + +test_xft_SOURCES = test-xft.c +test_xft_LDADD = @XLIBS_LIBS@ +test_xft_CFLAGS = @XLIBS_CFLAGS@ diff --git a/tests/NEWS b/tests/NEWS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/NEWS diff --git a/tests/README b/tests/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/README diff --git a/tests/autogen.sh b/tests/autogen.sh new file mode 100755 index 0000000..b1376df --- /dev/null +++ b/tests/autogen.sh @@ -0,0 +1,3 @@ +#! /bin/sh +autoreconf -v --install || exit 1 +./configure --enable-maintainer-mode "$@" diff --git a/tests/configure.ac b/tests/configure.ac new file mode 100644 index 0000000..1019804 --- /dev/null +++ b/tests/configure.ac @@ -0,0 +1,56 @@ +AC_PREREQ(2.53) +AC_INIT([fstests], 0.0, [mallum@o-hand.com]) +AC_CONFIG_SRCDIR([test-x.c]) + +AM_INIT_AUTOMAKE() + +AM_CONFIG_HEADER([config.h]) + +# Checks for programs. +AC_PROG_CC + +AC_ARG_WITH(freetype-config, [ --with-freetype-config=PROG Use FreeType configuration program PROG], freetype_config=$withval, freetype_config=yes) + +if test "$freetype_config" = "yes"; then + AC_PATH_PROG(ft_config,freetype-config,no) + if test "$ft_config" = "no"; then + AC_MSG_ERROR([You must have freetype installed; see http://www.freetype.org/]) + fi +else + ft_config="$freetype_config" +fi + +FREETYPE_CFLAGS="`$ft_config --cflags`" +FREETYPE_LIBS="`$ft_config --libs`" + +AC_SUBST(FREETYPE_LIBS) +AC_SUBST(FREETYPE_CFLAGS) + +#PKG_CHECK_MODULES(X11, x11, [have_libx11pc="yes"], [have_libx11pc="no"]) + +# Very lazy check, possibly do old way aswell, but damage will be needed +# whatever so likely will need autoconfed ( fd.o ) xlibs. +PKG_CHECK_MODULES(XLIBS, x11 xext xft) + +AC_SUBST(XLIBS_CFLAGS) +AC_SUBST(XLIBS_LIBS) + +PKG_CHECK_MODULES(PANGO, pango pangoxft) + +AC_SUBST(PANGO_CFLAGS) +AC_SUBST(PANGO_LIBS) + +PKG_CHECK_MODULES(GTK, gtk+-2.0) + +AC_SUBST(GTK_CFLAGS) +AC_SUBST(GTK_LIBS) + + +if test "x$GCC" = "xyes"; then + GCC_FLAGS="-g -Wall" +fi + +AC_SUBST(GCC_FLAGS) + +# Checks for header files. +AC_OUTPUT([Makefile]) diff --git a/tests/test-pango-layout.c b/tests/test-pango-layout.c index 513a695..4bd8b64 100644 --- a/tests/test-pango-layout.c +++ b/tests/test-pango-layout.c @@ -180,10 +180,11 @@ main(int argc, char **argv) gtk_window_maximize(GTK_WINDOW(window)); /* fullscreen */ gtk_container_set_border_width(GTK_CONTAINER(window), 0); - - + darea = gtk_drawing_area_new(); + gtk_widget_set_double_buffered (darea, FALSE); + gtk_container_add(GTK_CONTAINER(window), darea); g_signal_connect(G_OBJECT(darea), "expose_event", |