summaryrefslogtreecommitdiffstats
path: root/gtk/spicy.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-06-27 21:33:20 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2011-06-28 19:35:58 +0200
commit1fec772893544d5388dbece7f52fff7b640e3017 (patch)
treef1fabb7958a69cee78b95455e26901365a1b70e1 /gtk/spicy.c
parent66461433ca7b5a22c2fb18a4030b4a6e51000f79 (diff)
downloadspice-gtk-1fec772893544d5388dbece7f52fff7b640e3017.tar.gz
spice-gtk-1fec772893544d5388dbece7f52fff7b640e3017.tar.xz
spice-gtk-1fec772893544d5388dbece7f52fff7b640e3017.zip
gtk/smartcard: make cacard dependency optional without breaking API
Diffstat (limited to 'gtk/spicy.c')
-rw-r--r--gtk/spicy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/spicy.c b/gtk/spicy.c
index b16e3f5..c4cd018 100644
--- a/gtk/spicy.c
+++ b/gtk/spicy.c
@@ -28,6 +28,7 @@
#include "display/gnome-rr-config.h"
#ifdef USE_SMARTCARD
+#include <vreader.h>
#include "smartcard-manager.h"
#endif
@@ -356,7 +357,7 @@ static void enable_smartcard_actions(spice_window *win, VReader *reader,
{
GtkAction *action;
- if ((reader != NULL) && (!spice_smartcard_reader_is_software(reader)))
+ if ((reader != NULL) && (!spice_smartcard_reader_is_software((SpiceSmartCardReader*)reader)))
{
/* Having menu actions to insert/remove smartcards only makes sense
* for software smartcard readers, don't do anything when the event