summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-08-29 16:05:40 +0300
committerAlon Levy <alevy@redhat.com>2013-08-29 16:23:57 +0300
commitd867788044fbb6f56b5b0f5bc4d9feb18da594fb (patch)
treee027551a162f95624d978f91767fb0d460805fef /client
parentd0a1346fda20f205837c9d178a63a96a2683b38b (diff)
downloadspice-d867788044fbb6f56b5b0f5bc4d9feb18da594fb.tar.gz
spice-d867788044fbb6f56b5b0f5bc4d9feb18da594fb.tar.xz
spice-d867788044fbb6f56b5b0f5bc4d9feb18da594fb.zip
client: add some missing USE_GUI define guards
Diffstat (limited to 'client')
-rw-r--r--client/gui/gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/gui/gui.cpp b/client/gui/gui.cpp
index 6dd4ceab..4bf7ac89 100644
--- a/client/gui/gui.cpp
+++ b/client/gui/gui.cpp
@@ -440,9 +440,11 @@ void GUI::Dialog::handle_message_click(int id)
application().push_event(*event);
}
+#ifdef USE_GUI
if (_close_on_message_click) {
application().hide_gui();
}
+#endif
}
void GUI::Dialog::pre_destroy()
@@ -861,7 +863,9 @@ public:
bool SettingsDialog::handle_close(const CEGUI::EventArgs& e)
{
DBG(0, "");
+#ifdef USE_GUI
application().hide_gui();
+#endif
return true;
}