[aravis] arv-test: don't display snapshot option if cairo is not available.



commit 0a37facbd18829c36ddfcf983e9d0a4f22bedd21
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Jan 2 13:22:43 2011 +0100

    arv-test: don't display snapshot option if cairo is not available.

 tests/arvtest.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/arvtest.c b/tests/arvtest.c
index 98b4fe9..2535838 100644
--- a/tests/arvtest.c
+++ b/tests/arvtest.c
@@ -14,7 +14,9 @@ set_cancel (int signal)
 
 static char *arv_option_camera_name = NULL;
 static char *arv_option_debug_domains = NULL;
+#ifdef ARAVIS_WITH_CAIRO
 static gboolean arv_option_snaphot = FALSE;
+#endif
 static gboolean arv_option_auto_buffer = FALSE;
 static int arv_option_width = -1;
 static int arv_option_height = -1;
@@ -25,8 +27,10 @@ static const GOptionEntry arv_option_entries[] =
 {
 	{ "name",		'n', 0, G_OPTION_ARG_STRING,
 		&arv_option_camera_name,"Camera name", NULL},
+#ifdef ARAVIS_WITH_CAIRO
 	{ "snapshot",		's', 0, G_OPTION_ARG_NONE,
 		&arv_option_snaphot,	"Snapshot", NULL},
+#endif
 	{ "auto",		'a', 0, G_OPTION_ARG_NONE,
 		&arv_option_auto_buffer,	"AutoBufferSize", NULL},
 	{ "width", 		'w', 0, G_OPTION_ARG_INT,



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