Fix clean rebuild.

This commit is contained in:
Daiki Ueno
2010-06-11 06:09:40 +09:00
parent 43fdb5e960
commit 5f0c22b125
6 changed files with 24 additions and 45 deletions

View File

@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
INCLUDES = -I$(top_srcdir) $(CLUTTER_CFLAGS) $(GOBJECT2_CFLAGS) $(SIMPLE_CFLAGS) $(XKB_CFLAGS)
INCLUDES = -I$(top_srcdir) $(CLUTTER_CFLAGS) $(GOBJECT2_CFLAGS) $(GTK2_CFLAGS) $(XKB_CFLAGS)
TESTS = eek-simple-test eek-xkb-test
noinst_PROGRAMS = $(TESTS)

View File

@ -19,6 +19,9 @@
*/
#include "eek-xkb.h"
/* For gdk_x11_display_get_xdisplay(). See main(). */
#include <gtk/gtk.h>
static void
test_create (void)
{
@ -44,7 +47,7 @@ main (int argc, char **argv)
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
gtk_init (&argc, &argv);
gtk_init (&argc, &argv); /* for gdk_x11_display_get_xdisplay() */
g_test_add_func ("/eek-xkb-test/create", test_create);
return g_test_run ();
}