[gnome-settings-daemon] keyboard: Add test app



commit 09251c78c60155dcb9b90109b2f85beb5e127891
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 26 17:21:40 2012 +0100

    keyboard: Add test app

 plugins/keyboard/Makefile.am     |   13 +++++++++++++
 plugins/keyboard/test-keyboard.c |    6 ++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/plugins/keyboard/Makefile.am b/plugins/keyboard/Makefile.am
index da59e83..2241d30 100644
--- a/plugins/keyboard/Makefile.am
+++ b/plugins/keyboard/Makefile.am
@@ -49,6 +49,19 @@ libkeyboard_la_LIBADD  = 	\
 	$(KEYBOARD_LIBS)	\
 	$(NULL)
 
+noinst_PROGRAMS = test-keyboard
+test_keyboard_SOURCES =		\
+	test-keyboard.c		\
+	gsd-keyboard-manager.h	\
+	gsd-keyboard-manager.c	\
+	gsd-keyboard-xkb.h	\
+	gsd-keyboard-xkb.c	\
+	delayed-dialog.h	\
+	delayed-dialog.c
+test_keyboard_CFLAGS = $(libkeyboard_la_CFLAGS)
+test_keyboard_CPPFLAGS = $(libkeyboard_la_CPPFLAGS) -I$(top_srcdir)/plugins/common
+test_keyboard_LDADD = $(libkeyboard_la_LIBADD) $(top_builddir)/gnome-settings-daemon/libgsd.la
+
 plugin_in_files = 		\
 	keyboard.gnome-settings-plugin.in	\
 	$(NULL)
diff --git a/plugins/keyboard/test-keyboard.c b/plugins/keyboard/test-keyboard.c
new file mode 100644
index 0000000..de7af9a
--- /dev/null
+++ b/plugins/keyboard/test-keyboard.c
@@ -0,0 +1,6 @@
+#define NEW gsd_keyboard_manager_new
+#define START gsd_keyboard_manager_start
+#define MANAGER GsdKeyboardManager
+#include "gsd-keyboard-manager.h"
+
+#include "test-plugin.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]