diff options
author | Alon Levy <alevy@redhat.com> | 2013-08-29 16:05:40 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-08-29 16:23:57 +0300 |
commit | d867788044fbb6f56b5b0f5bc4d9feb18da594fb (patch) | |
tree | e027551a162f95624d978f91767fb0d460805fef /client/gui/gui.cpp | |
parent | d0a1346fda20f205837c9d178a63a96a2683b38b (diff) | |
download | spice-d867788044fbb6f56b5b0f5bc4d9feb18da594fb.tar.gz spice-d867788044fbb6f56b5b0f5bc4d9feb18da594fb.tar.xz spice-d867788044fbb6f56b5b0f5bc4d9feb18da594fb.zip |
client: add some missing USE_GUI define guards
Diffstat (limited to 'client/gui/gui.cpp')
-rw-r--r-- | client/gui/gui.cpp | 4 |
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; } |